|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.parboiled.parserunners.RecordingParseRunner.Handler
public static class RecordingParseRunner.Handler
A MatchHandler implementation keeping track of the furthest match in the current input buffer,
and therefore the first location corresponding to an InvalidInputError.
For the actual matching this handler relies on another, inner MatchHandler instance it delegates to.
| Constructor Summary | |
|---|---|
RecordingParseRunner.Handler()
Creates a new Handler which delegates to a BasicParseRunner.Handler instance. |
|
RecordingParseRunner.Handler(MatchHandler inner)
Creates a new Handler which delegates to the given MatchHandler instance. |
|
| Method Summary | |
|---|---|
int |
getErrorIndex()
Returns the index of the first InvalidInputError in the input text. |
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 RecordingParseRunner.Handler()
BasicParseRunner.Handler instance.
public RecordingParseRunner.Handler(MatchHandler inner)
inner - the inner instance to delegate to| Method Detail |
|---|
public int getErrorIndex()
InvalidInputError in the input text.
public boolean matchRoot(MatcherContext rootContext)
MatchHandler
matchRoot in interface MatchHandlerrootContext - the root MatcherContext.
public boolean match(MatcherContext context)
MatchHandler
match in interface MatchHandlercontext - the MatcherContext
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||