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