|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Matcher
A Matcher instance is responsible for "executing" a specific Rule instance, i.e. it implements the actual
rule type specific matching logic.
Since it extends the GraphNode
interface it can have submatchers.
Method Summary | ||
---|---|---|
|
accept(MatcherVisitor<R> visitor)
Accepts the given matcher visitor. |
|
boolean |
areMismatchesMemoed()
|
|
boolean |
areSubnodesSuppressed()
|
|
java.lang.String |
getLabel()
|
|
MatcherContext |
getSubContext(MatcherContext context)
Creates a context for the matching of this matcher using the given parent context. |
|
java.lang.Object |
getTag()
Retrieves a previously set tag object. |
|
boolean |
hasCustomLabel()
|
|
boolean |
isNodeSkipped()
|
|
boolean |
isNodeSuppressed()
|
|
|
match(MatcherContext<V> context)
Tries a match on the given MatcherContext. |
|
void |
setTag(java.lang.Object tagObject)
Associates an arbitrary object with this matcher. |
Methods inherited from interface org.parboiled.Rule |
---|
label, memoMismatches, skipNode, suppressNode, suppressSubnodes |
Methods inherited from interface org.parboiled.trees.GraphNode |
---|
getChildren |
Method Detail |
---|
java.lang.String getLabel()
boolean hasCustomLabel()
boolean isNodeSuppressed()
boolean areSubnodesSuppressed()
boolean isNodeSkipped()
boolean areMismatchesMemoed()
MatcherContext getSubContext(MatcherContext context)
context
- the parent context
<V> boolean match(MatcherContext<V> context)
context
- the MatcherContext
void setTag(java.lang.Object tagObject)
tagObject
- the tag objectjava.lang.Object getTag()
<R> R accept(MatcherVisitor<R> visitor)
visitor
- the visitor
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |