public static class CoreMapNodePattern.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| Constructor and Description |
|---|
NumericAnnotationPattern(double value,
edu.stanford.nlp.ling.tokensregex.CoreMapNodePattern.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() |
matchWithResultpublic NumericAnnotationPattern(double value,
edu.stanford.nlp.ling.tokensregex.CoreMapNodePattern.NumericAnnotationPattern.CmpType cmpType)
public boolean match(java.lang.Object node)
NodePatternmatch 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