public final class RegexMatcher extends AbstractMatcher
Note that the operation used to perform the match is Matcher.lookingAt()
, not matches()
or find()
.
Constructor and Description |
---|
RegexMatcher(String regex) |
Modifier and Type | Method and Description |
---|---|
MatcherType |
getType()
Returns the type of this matcher
|
<V> boolean |
match(MatcherContext<V> context)
Tries a match on the given MatcherContext.
|
getLabel, getSubContext, hasCustomLabel, label, toString
getChildren
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getChildren
public RegexMatcher(String regex)
public MatcherType getType()
Matcher
MatcherType
public <V> boolean match(MatcherContext<V> context)
Matcher
context
- the MatcherContext