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