Module com.github.rvesse.airline
Class AbstractCollectingHandler
- java.lang.Object
-
- com.github.rvesse.airline.parser.errors.handlers.AbstractCollectingHandler
-
- All Implemented Interfaces:
ParserErrorHandler
- Direct Known Subclasses:
CollectAll
,FailAll
public abstract class AbstractCollectingHandler extends java.lang.Object implements ParserErrorHandler
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<ParseException>
errors
-
Constructor Summary
Constructors Constructor Description AbstractCollectingHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.List<ParseException>
getCollection()
void
handleError(ParseException e)
Handlers an errorprotected void
resetCollection()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.github.rvesse.airline.parser.errors.handlers.ParserErrorHandler
finished
-
-
-
-
Field Detail
-
errors
protected java.util.List<ParseException> errors
-
-
Method Detail
-
handleError
public void handleError(ParseException e)
Description copied from interface:ParserErrorHandler
Handlers an error- Specified by:
handleError
in interfaceParserErrorHandler
- Parameters:
e
- Error
-
getCollection
protected java.util.List<ParseException> getCollection()
-
resetCollection
protected void resetCollection()
-
-