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