Class ZeroOrMoreMatcher
java.lang.Object
org.parboiled.trees.ImmutableGraphNode<Matcher>
org.parboiled.matchers.AbstractMatcher
org.parboiled.matchers.ZeroOrMoreMatcher
A
Matcher that repeatedly tries its submatcher against the input. Always succeeds.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<R> Raccept(MatcherVisitor<R> visitor) Accepts the given matcher visitor.defaultLabel(String defaultLabel) getLabel()booleanbooleanmatch(MatcherContext context) Tries a match on the given MatcherContext.Methods inherited from class AbstractMatcher
areMismatchesMemoed, areSubnodesSuppressed, getSubContext, getTag, isNodeSkipped, isNodeSuppressed, label, memoMismatches, setTag, skipNode, suppressNode, suppressSubnodes, toStringMethods inherited from class ImmutableGraphNode
getChildrenMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface GraphNode
getChildren
-
Field Details
-
subMatcher
-
-
Constructor Details
-
ZeroOrMoreMatcher
-
-
Method Details
-
match
Description copied from interface:MatcherTries a match on the given MatcherContext.- Parameters:
context- the MatcherContext- Returns:
- true if the match was successful
-
accept
Description copied from interface:MatcherAccepts the given matcher visitor.- Parameters:
visitor- the visitor- Returns:
- the value returned by the given visitor
-
getLabel
- Specified by:
getLabelin interfaceMatcher- Overrides:
getLabelin classAbstractMatcher- Returns:
- the label of the matcher (which is identical to the label of the Rule this matcher matches)
-
hasCustomLabel
public boolean hasCustomLabel()- Specified by:
hasCustomLabelin interfaceMatcher- Overrides:
hasCustomLabelin classAbstractMatcher- Returns:
- true if this matcher has been assigned a custom label
-
defaultLabel
-