public static class ComplexNodePattern.StringAnnotationRegexPattern extends NodePattern<java.lang.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(java.util.regex.Pattern pattern) |
StringAnnotationRegexPattern(java.lang.String regex,
int flags) |
Modifier and Type | Method and Description |
---|---|
java.util.regex.Pattern |
getPattern() |
boolean |
match(java.lang.String str)
Returns true if the input node matches this pattern
|
java.util.regex.Matcher |
matcher(java.lang.String str) |
java.lang.Object |
matchWithResult(java.lang.String str)
Returns result associated with the match
|
java.lang.String |
toString() |
public StringAnnotationRegexPattern(java.util.regex.Pattern pattern)
public StringAnnotationRegexPattern(java.lang.String regex, int flags)
public java.util.regex.Pattern getPattern()
public java.util.regex.Matcher matcher(java.lang.String str)
public boolean match(java.lang.String str)
NodePattern
match
in class NodePattern<java.lang.String>
str
- - node to matchpublic java.lang.Object matchWithResult(java.lang.String str)
NodePattern
matchWithResult
in class NodePattern<java.lang.String>
str
- node to matchpublic java.lang.String toString()
toString
in class java.lang.Object