public interface Matcher extends Rule, GraphNode<Matcher>
GraphNode interface it can have submatchers.| Modifier and Type | Method and Description |
|---|---|
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() |
<V> boolean |
match(MatcherContext<V> context)
Tries a match on the given MatcherContext.
|
getChildrenMatcherType getType()
MatcherTypeString getLabel()
boolean hasCustomLabel()
<V> MatcherContext<V> getSubContext(MatcherContext<V> context)
context - the parent context<V> boolean match(MatcherContext<V> context)
context - the MatcherContext