edu.stanford.nlp.ling.tokensregex
Class CoreMapNodePattern.NumericAnnotationPattern
java.lang.Object
edu.stanford.nlp.ling.tokensregex.NodePattern<java.lang.Object>
edu.stanford.nlp.ling.tokensregex.CoreMapNodePattern.NumericAnnotationPattern
- Enclosing class:
- CoreMapNodePattern
public static class CoreMapNodePattern.NumericAnnotationPattern
- extends NodePattern<java.lang.Object>
|
Method Summary |
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()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
CoreMapNodePattern.NumericAnnotationPattern
public CoreMapNodePattern.NumericAnnotationPattern(double value,
edu.stanford.nlp.ling.tokensregex.CoreMapNodePattern.NumericAnnotationPattern.CmpType cmpType)
match
public boolean match(java.lang.Object node)
- Description copied from class:
NodePattern
- Returns true if the input node matches this pattern
- Specified by:
match in class NodePattern<java.lang.Object>
- Parameters:
node - - node to match
- Returns:
- true if the node matches the pattern, false otherwise
match
public boolean match(java.lang.Number number)
match
public boolean match(java.lang.String str)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
Stanford NLP Group