|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.parboiled.parserunners.RecoveringParseRunner.Handler
public static class RecoveringParseRunner.Handler
A MatchHandler implementation that recognizes the special Chars.RESYNC character
to overcome InvalidInputErrors at the respective error indices.
| Constructor Summary | |
|---|---|
RecoveringParseRunner.Handler(InvalidInputError currentError)
Creates a new Handler. |
|
| Method Summary | |
|---|---|
protected int |
gobbleIllegalCharacters(MatcherContext context,
java.util.List<Matcher> followMatchers)
|
boolean |
match(MatcherContext<?> context)
Runs the given MatcherContext. |
boolean |
matchRoot(MatcherContext<?> rootContext)
Runs the root MatcherContext. |
protected boolean |
prepareErrorLocation(MatcherContext context)
|
protected boolean |
resynchronize(MatcherContext context)
|
protected boolean |
runTestMatch(MatcherContext context)
|
protected boolean |
willMatchDelError(MatcherContext context)
|
protected boolean |
willMatchInsError(MatcherContext context)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RecoveringParseRunner.Handler(InvalidInputError currentError)
currentError - an optional InvalidInputError whose endIndex is to set during resyncing| Method Detail |
|---|
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
protected boolean prepareErrorLocation(MatcherContext context)
protected boolean willMatchDelError(MatcherContext context)
protected boolean willMatchInsError(MatcherContext context)
protected boolean runTestMatch(MatcherContext context)
protected boolean resynchronize(MatcherContext context)
protected int gobbleIllegalCharacters(MatcherContext context,
java.util.List<Matcher> followMatchers)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||