Package | Description |
---|---|
org.parboiled | |
org.parboiled.errors | |
org.parboiled.parserunners | |
org.parboiled.support |
Modifier and Type | Field and Description |
---|---|
private MatcherPath |
MatcherContext.path |
Modifier and Type | Method and Description |
---|---|
MatcherPath |
MatcherContext.getPath() |
MatcherPath |
Context.getPath()
Returns the
MatcherPath to the currently running matcher. |
Modifier and Type | Field and Description |
---|---|
private MatcherPath |
ActionError.errorPath |
Modifier and Type | Field and Description |
---|---|
private java.util.List<MatcherPath> |
InvalidInputError.failedMatchers |
Modifier and Type | Method and Description |
---|---|
MatcherPath |
ActionError.getErrorPath()
Gets the path to the matcher that caused this error.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<MatcherPath> |
InvalidInputError.getFailedMatchers()
Gets the list of paths to the single character matchers that failed at the error location of this error.
|
Modifier and Type | Method and Description |
---|---|
(package private) static Matcher |
ErrorUtils.findProperLabelMatcher(MatcherPath path,
int errorIndex)
Finds the Matcher in the given failedMatcherPath whose label is best for presentation in "expected" strings
of parse error messages, given the provided lastMatchPath.
|
private static Matcher |
ErrorUtils.findProperLabelMatcher0(MatcherPath path,
int errorIndex) |
Constructor and Description |
---|
ActionError(InputBuffer inputBuffer,
int errorIndex,
java.lang.String errorMessage,
MatcherPath errorPath,
ActionException actionException) |
Constructor and Description |
---|
InvalidInputError(InputBuffer inputBuffer,
int startIndex,
java.util.List<MatcherPath> failedMatchers,
java.lang.String errorMessage) |
Modifier and Type | Field and Description |
---|---|
private MatcherPath |
RecoveringParseRunner.Handler.lastMatchPath |
private MatcherPath |
TracingParseRunner.lastPath |
Modifier and Type | Field and Description |
---|---|
private java.util.List<MatcherPath> |
ErrorReportingParseRunner.failedMatchers |
Modifier and Type | Field and Description |
---|---|
MatcherPath |
MatcherPath.parent |
Modifier and Type | Method and Description |
---|---|
MatcherPath |
MatcherPath.commonPrefix(MatcherPath that)
Returns the common prefix of this MatcherPath and the given other one.
|
Modifier and Type | Method and Description |
---|---|
MatcherPath |
MatcherPath.commonPrefix(MatcherPath that)
Returns the common prefix of this MatcherPath and the given other one.
|
boolean |
MatcherPath.isPrefixOf(MatcherPath that)
Determines whether this path is a prefix of the given other path.
|
private java.lang.StringBuilder |
MatcherPath.print(java.lang.StringBuilder sb,
MatcherPath skipPrefix) |
java.lang.String |
MatcherPath.toString(MatcherPath skipPrefix) |
Constructor and Description |
---|
MatcherPath(MatcherPath.Element element,
MatcherPath parent)
Constructs a new MatcherPath wrapping the given elements.
|