Constructor and Description |
---|
ActionMatcher(Action<?> action) |
Modifier and Type | Method and Description |
---|---|
<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
|
<V> boolean |
match(MatcherContext<V> context)
Tries a match on the given MatcherContext.
|
getLabel, hasCustomLabel, label, toString
getChildren
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getChildren
public ActionMatcher(Action<?> action)
public MatcherType getType()
Matcher
MatcherType
public <V> MatcherContext<V> getSubContext(MatcherContext<V> context)
Matcher
getSubContext
in interface Matcher
getSubContext
in class AbstractMatcher
context
- the parent contextpublic <V> boolean match(MatcherContext<V> context)
Matcher
context
- the MatcherContext