public static class ComplexNodePattern.NumericAnnotationPattern extends NodePattern<java.lang.Object>
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 |
---|
NumericAnnotationPattern(double value,
edu.stanford.nlp.ling.tokensregex.ComplexNodePattern.NumericAnnotationPattern.CmpType cmpType) |
Modifier and Type | Method and Description |
---|---|
boolean |
match(java.lang.Number number) |
boolean |
match(java.lang.Object node)
Returns true if the input node matches this pattern
|
boolean |
match(java.lang.String str) |
java.lang.String |
toString() |
matchWithResult
public NumericAnnotationPattern(double value, edu.stanford.nlp.ling.tokensregex.ComplexNodePattern.NumericAnnotationPattern.CmpType cmpType)
public boolean match(java.lang.Object node)
NodePattern
match
in class NodePattern<java.lang.Object>
node
- - node to matchpublic boolean match(java.lang.Number number)
public boolean match(java.lang.String str)
public java.lang.String toString()
toString
in class java.lang.Object