Class ErrorParserNamedWrapper
- java.lang.Object
-
- org.eclipse.cdt.core.errorparsers.ErrorParserNamedWrapper
-
- All Implemented Interfaces:
Cloneable
,IErrorParser
,IErrorParserNamed
public class ErrorParserNamedWrapper extends Object implements IErrorParserNamed
Class to wrap anyIErrorParser
toIErrorParserNamed
.- Since:
- 5.2
-
-
Constructor Summary
Constructors Constructor Description ErrorParserNamedWrapper(String id, String name, IErrorParser errorParser)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
clone()
boolean
equals(Object o)
IErrorParser
getErrorParser()
String
getId()
String
getName()
boolean
processLine(String line, ErrorParserManager epm)
Finds error or warnings on the given linevoid
setId(String id)
Set error parser ID.void
setName(String name)
Set error parser name.
-
-
-
Constructor Detail
-
ErrorParserNamedWrapper
public ErrorParserNamedWrapper(String id, String name, IErrorParser errorParser)
Constructor.- Parameters:
id
- - assigned IDname
- - assigned name.errorParser
- - error parser to assign name and ID.
-
-
Method Detail
-
processLine
public boolean processLine(String line, ErrorParserManager epm)
Description copied from interface:IErrorParser
Finds error or warnings on the given line- Specified by:
processLine
in interfaceIErrorParser
- Parameters:
line
- - line to processepm
- -ErrorParserManager
- Returns:
true
if the parser found a problem reported in output. More accurately,true
will consume the line (prevent other parsers from seeing it) andfalse
won't (the line will be handed to the next parser).
-
getId
public String getId()
- Specified by:
getId
in interfaceIErrorParserNamed
- Returns:
- id of error parser
-
getName
public String getName()
- Specified by:
getName
in interfaceIErrorParserNamed
- Returns:
- name of error parser
-
getErrorParser
public IErrorParser getErrorParser()
- Returns:
- original error parser which is being wrapped
-
setId
public void setId(String id)
Description copied from interface:IErrorParserNamed
Set error parser ID.- Specified by:
setId
in interfaceIErrorParserNamed
- Parameters:
id
- of error parser
-
setName
public void setName(String name)
Description copied from interface:IErrorParserNamed
Set error parser name.- Specified by:
setName
in interfaceIErrorParserNamed
- Parameters:
name
- of error parser
-
clone
public Object clone() throws CloneNotSupportedException
- Overrides:
clone
in classObject
- Throws:
CloneNotSupportedException
-
-