Package | Description |
---|---|
org.parboiled | |
org.parboiled.errors | |
org.parboiled.matchers | |
org.parboiled.matchervisitors | |
org.parboiled.parserunners | |
org.parboiled.support |
Modifier and Type | Field and Description |
---|---|
private Matcher |
NodeImpl.matcher |
private Matcher |
MatcherContext.matcher |
private Matcher |
ParserStatistics.root |
Modifier and Type | Method and Description |
---|---|
private <M extends Matcher> |
ParserStatistics.visit(M matcher,
java.util.Set<M> set) |
Modifier and Type | Method and Description |
---|---|
Matcher |
NodeImpl.getMatcher() |
Matcher |
Node.getMatcher()
Returns the matcher that created this node.
|
Matcher |
MatcherContext.getMatcher() |
Matcher |
Context.getMatcher()
Returns the Matcher of this context or null, if this context is not valid anymore.
|
Modifier and Type | Method and Description |
---|---|
private void |
ParserStatistics.countSpecials(Matcher matcher) |
MatcherContext<V> |
MatcherContext.getSubContext(Matcher matcher) |
void |
MatcherContext.setMatcher(Matcher matcher) |
Constructor and Description |
---|
MatcherContext(InputBuffer inputBuffer,
ValueStack<V> valueStack,
java.util.List<ParseError> parseErrors,
MatchHandler matchHandler,
Matcher matcher,
boolean fastStringMatching)
Initializes a new root MatcherContext.
|
NodeImpl(Matcher matcher,
ImmutableLinkedList<Node<V>> children,
int startIndex,
int endIndex,
V value,
boolean hasError) |
ParserStatistics(Matcher root) |
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) |
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
DefaultInvalidInputErrorFormatter.getLabels(Matcher matcher)
Gets the labels corresponding to the given matcher, AnyOfMatchers are treated specially in that their
label is constructed as a list of their contents
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractMatcher
Abstract base class of most regular
Matcher s. |
class |
ActionMatcher
|
class |
AnyMatcher
A
Matcher matching any single character except EOI. |
class |
AnyOfMatcher
A
Matcher matching a single character out of a given Characters set. |
class |
CharIgnoreCaseMatcher
A
Matcher matching a single character case-independently. |
class |
CharMatcher
A
Matcher matching a single given character. |
class |
CharRangeMatcher
A
Matcher matching a single character out of a given range of characters. |
(package private) class |
CustomDefaultLabelMatcher<T extends CustomDefaultLabelMatcher<T>> |
class |
CustomMatcher
Base class of custom matcher implementations.
|
class |
EmptyMatcher
A
Matcher that always successfully matches nothing. |
class |
FirstOfMatcher
A
Matcher trying all of its submatchers in sequence and succeeding when the first submatcher succeeds. |
class |
FirstOfStringsMatcher
A specialized FirstOfMatcher that handles FirstOf(string, string, ...) rules much faster that the regular
FirstOfMatcher.
|
class |
MemoMismatchesMatcher
Special wrapping matcher that performs memoization of the last mismatch of the wrapped sub rule.
|
class |
NothingMatcher
A
Matcher that never matches anything. |
class |
OneOrMoreMatcher
A
Matcher that repeatedly tries its submatcher against the input. |
class |
OptionalMatcher
A
Matcher that tries its submatcher once against the input and always succeeds. |
class |
ProxyMatcher
|
class |
SequenceMatcher
A
Matcher that executes all of its submatchers in sequence and only succeeds if all submatchers succeed. |
class |
StringMatcher
A
SequenceMatcher specialization for sequences of CharMatchers. |
class |
TestMatcher
A special
Matcher not actually matching any input but rather trying its submatcher against the current input
position. |
class |
TestNotMatcher
A special
Matcher not actually matching any input but rather trying its submatcher against the current input
position. |
class |
VarFramingMatcher
Special wrapping matcher that manages the creation and destruction of execution frames for a number of action vars.
|
class |
ZeroOrMoreMatcher
A
Matcher that repeatedly tries its submatcher against the input. |
Modifier and Type | Field and Description |
---|---|
private Matcher |
VarFramingMatcher.inner |
private Matcher |
MemoMismatchesMatcher.inner |
Matcher |
ZeroOrMoreMatcher.subMatcher |
Matcher |
TestNotMatcher.subMatcher |
Matcher |
TestMatcher.subMatcher |
Matcher |
OptionalMatcher.subMatcher |
Matcher |
OneOrMoreMatcher.subMatcher |
private Matcher |
ProxyMatcher.target |
Modifier and Type | Method and Description |
---|---|
private static Matcher[] |
AbstractMatcher.toMatchers(Rule[] subRules) |
static Matcher |
VarFramingMatcher.unwrap(Matcher matcher)
Retrieves the innermost Matcher that is not a VarFramingMatcher.
|
static Matcher |
ProxyMatcher.unwrap(Matcher matcher)
Retrieves the innermost Matcher that is not a ProxyMatcher.
|
static Matcher |
MemoMismatchesMatcher.unwrap(Matcher matcher)
Retrieves the innermost Matcher that is not a MemoMismatchesMatcher.
|
static Matcher |
MatcherUtils.unwrap(Matcher matcher) |
Modifier and Type | Method and Description |
---|---|
java.util.List<Matcher> |
VarFramingMatcher.getChildren() |
java.util.List<Matcher> |
ProxyMatcher.getChildren() |
java.util.List<Matcher> |
MemoMismatchesMatcher.getChildren() |
Modifier and Type | Method and Description |
---|---|
void |
ProxyMatcher.arm(Matcher target)
Supplies this ProxyMatcher with its underlying delegate.
|
static Matcher |
VarFramingMatcher.unwrap(Matcher matcher)
Retrieves the innermost Matcher that is not a VarFramingMatcher.
|
static Matcher |
ProxyMatcher.unwrap(Matcher matcher)
Retrieves the innermost Matcher that is not a ProxyMatcher.
|
static Matcher |
MemoMismatchesMatcher.unwrap(Matcher matcher)
Retrieves the innermost Matcher that is not a MemoMismatchesMatcher.
|
static Matcher |
MatcherUtils.unwrap(Matcher matcher) |
Modifier and Type | Field and Description |
---|---|
private java.util.List<Matcher> |
FollowMatchersVisitor.followMatchers |
private java.util.Set<Matcher> |
DoWithMatcherVisitor.visited |
Modifier and Type | Method and Description |
---|---|
java.util.List<Matcher> |
FollowMatchersVisitor.getFollowMatchers(MatcherContext currentContext) |
Modifier and Type | Method and Description |
---|---|
void |
DoWithMatcherVisitor.Action.process(Matcher matcher) |
Modifier and Type | Field and Description |
---|---|
private Matcher |
ProfilingParseRunner.RuleReport.matcher |
private Matcher |
AbstractParseRunner.rootMatcher |
private Matcher |
RecoveringParseRunner.rootMatcherWithoutPTB |
Modifier and Type | Method and Description |
---|---|
Matcher |
ProfilingParseRunner.RuleReport.getMatcher() |
Matcher |
AbstractParseRunner.getRootMatcher() |
Modifier and Type | Method and Description |
---|---|
private int |
RecoveringParseRunner.Handler.gobbleIllegalCharacters(MatcherContext context,
java.util.List<Matcher> followMatchers) |
Constructor and Description |
---|
RuleReport(Matcher matcher) |
Modifier and Type | Field and Description |
---|---|
private Matcher |
MatcherPosition.matcher |
Matcher |
MatcherPath.Element.matcher |
Modifier and Type | Method and Description |
---|---|
static Predicate<Matcher> |
Filters.preventLoops()
A predicate for rule tree printing.
|
Modifier and Type | Method and Description |
---|---|
static MatcherPosition |
MatcherPosition.at(Matcher matcher,
java.lang.Integer index) |
boolean |
MatcherPath.contains(Matcher matcher)
Determines whether the given matcher is contained in this path.
|
Constructor and Description |
---|
Element(Matcher matcher,
int startIndex,
int level) |
MatcherPosition(Matcher matcher,
java.lang.Integer index) |