| Constructor and Description |
|---|
VarFramingMatcher(Rule inner,
Var<?>[] variables) |
| Modifier and Type | Method and Description |
|---|---|
List<Matcher> |
getChildren()
Returns the sub nodes of this node.
|
String |
getLabel() |
<V> MatcherContext<V> |
getSubContext(MatcherContext<V> context)
Creates a context for the matching of this matcher using the given parent
context.
|
MatcherType |
getType()
Returns the type of this matcher
|
boolean |
hasCustomLabel() |
Rule |
label(String label)
Attaches a label to this Rule.
|
<V> boolean |
match(MatcherContext<V> context)
Tries a match on the given MatcherContext.
|
String |
toString() |
static Matcher |
unwrap(Matcher matcher)
Retrieves the innermost Matcher that is not a VarFramingMatcher.
|
public MatcherType getType()
MatchergetType in interface MatcherMatcherTypepublic <V> boolean match(MatcherContext<V> context)
Matcherpublic List<Matcher> getChildren()
GraphNodegetChildren in interface GraphNode<Matcher>public Rule label(String label)
Rulepublic String getLabel()
public boolean hasCustomLabel()
hasCustomLabel in interface Matcherpublic <V> MatcherContext<V> getSubContext(MatcherContext<V> context)
MatchergetSubContext in interface Matchercontext - the parent context