edu.stanford.nlp.ling.tokensregex
Class NodePattern.DisjNodePattern<T>
java.lang.Object
edu.stanford.nlp.ling.tokensregex.NodePattern<T>
edu.stanford.nlp.ling.tokensregex.NodePattern.DisjNodePattern<T>
- Type Parameters:
T -
- Enclosing class:
- NodePattern<T>
public static class NodePattern.DisjNodePattern<T>
- extends NodePattern<T>
Given a list of patterns p1,...,pn, matches if one of the patterns p1,...,pn matches
|
Method Summary |
boolean |
match(T node)
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 |
NodePattern.DisjNodePattern
public NodePattern.DisjNodePattern(java.util.List<NodePattern<T>> nodePatterns)
match
public boolean match(T node)
- Description copied from class:
NodePattern
- Returns true if the input node matches this pattern
- Specified by:
match in class NodePattern<T>
- Parameters:
node - - 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