|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.parboiled.parserunners.ReportingParseRunner.Handler
public static class ReportingParseRunner.Handler
A MatchHandler
implementation that reports the InvalidInputError
at a given error index.
For the actual matching this handler relies on another, inner MatchHandler
instance it delegates to.
Constructor Summary | |
---|---|
ReportingParseRunner.Handler(int errorIndex)
Create a new handler that can report the InvalidInputError at the given error index. |
|
ReportingParseRunner.Handler(int errorIndex,
MatchHandler inner)
Create a new handler that can report the InvalidInputError at the given error index. |
Method Summary | |
---|---|
InvalidInputError |
getParseError()
Returns the InvalidInputError instance that was created during the reporting run. |
boolean |
match(MatcherContext<?> context)
Runs the given MatcherContext. |
boolean |
matchRoot(MatcherContext<?> rootContext)
Runs the root MatcherContext. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ReportingParseRunner.Handler(int errorIndex)
InvalidInputError
at the given error index.
It relies on a new BasicParseRunner.Handler
instance for the actual matching.
errorIndex
- the InputLocation of the error to be reportedpublic ReportingParseRunner.Handler(int errorIndex, MatchHandler inner)
InvalidInputError
at the given error index.
It relies on the given MatchHandler
instance for the actual matching.
errorIndex
- the InputLocation of the error to be reportedinner
- the inner MatchHandler to useMethod Detail |
---|
public InvalidInputError getParseError()
InvalidInputError
instance that was created during the reporting run.
public boolean matchRoot(MatcherContext<?> rootContext)
MatchHandler
matchRoot
in interface MatchHandler
rootContext
- the root MatcherContext.
public boolean match(MatcherContext<?> context)
MatchHandler
match
in interface MatchHandler
context
- the MatcherContext
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |