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 anyIErrorParsertoIErrorParserNamed.- 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 Objectclone()booleanequals(Object o)IErrorParsergetErrorParser()StringgetId()StringgetName()booleanprocessLine(String line, ErrorParserManager epm)Finds error or warnings on the given linevoidsetId(String id)Set error parser ID.voidsetName(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:IErrorParserFinds error or warnings on the given line- Specified by:
processLinein interfaceIErrorParser- Parameters:
line- - line to processepm- -ErrorParserManager- Returns:
trueif the parser found a problem reported in output. More accurately,truewill consume the line (prevent other parsers from seeing it) andfalsewon't (the line will be handed to the next parser).
-
getId
public String getId()
- Specified by:
getIdin interfaceIErrorParserNamed- Returns:
- id of error parser
-
getName
public String getName()
- Specified by:
getNamein 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:IErrorParserNamedSet error parser ID.- Specified by:
setIdin interfaceIErrorParserNamed- Parameters:
id- of error parser
-
setName
public void setName(String name)
Description copied from interface:IErrorParserNamedSet error parser name.- Specified by:
setNamein interfaceIErrorParserNamed- Parameters:
name- of error parser
-
clone
public Object clone() throws CloneNotSupportedException
- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-
-