public static class ComplexNodePattern.StringAnnotationRegexPattern extends NodePattern<String>
NodePattern.AnyNodePattern<T>, NodePattern.ConjNodePattern<T>, NodePattern.DisjNodePattern<T>, NodePattern.EqualsNodePattern<T>, NodePattern.NegateNodePattern<T>ANY_NODE, CASE_INSENSITIVE, NORMALIZE, UNICODE_CASE| Constructor and Description |
|---|
StringAnnotationRegexPattern(Pattern pattern) |
StringAnnotationRegexPattern(String regex,
int flags) |
| Modifier and Type | Method and Description |
|---|---|
Pattern |
getPattern() |
boolean |
match(String str)
Returns true if the input node matches this pattern
|
Matcher |
matcher(String str) |
Object |
matchWithResult(String str)
Returns result associated with the match
|
String |
toString() |
public StringAnnotationRegexPattern(Pattern pattern)
public StringAnnotationRegexPattern(String regex, int flags)
public Pattern getPattern()
public boolean match(String str)
NodePatternmatch in class NodePattern<String>str - - node to matchpublic Object matchWithResult(String str)
NodePatternmatchWithResult in class NodePattern<String>str - node to match