edu.stanford.nlp.ling.tokensregex
Class NodePattern.EqualsNodePattern<T>

java.lang.Object
  extended by edu.stanford.nlp.ling.tokensregex.NodePattern<T>
      extended by edu.stanford.nlp.ling.tokensregex.NodePattern.EqualsNodePattern<T>
Type Parameters:
T -
Enclosing class:
NodePattern<T>

public static class NodePattern.EqualsNodePattern<T>
extends NodePattern<T>

Matches a constant value of type T using equals()


Nested Class Summary
 
Nested classes/interfaces inherited from class edu.stanford.nlp.ling.tokensregex.NodePattern
NodePattern.AnyNodePattern<T>, NodePattern.ConjNodePattern<T>, NodePattern.DisjNodePattern<T>, NodePattern.EqualsNodePattern<T>, NodePattern.NegateNodePattern<T>
 
Field Summary
 
Fields inherited from class edu.stanford.nlp.ling.tokensregex.NodePattern
ANY_NODE
 
Constructor Summary
NodePattern.EqualsNodePattern(T t)
           
 
Method Summary
 boolean match(T node)
          Returns true if the input node matches this pattern
 java.lang.String toString()
           
 
Methods inherited from class edu.stanford.nlp.ling.tokensregex.NodePattern
matchWithResult
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NodePattern.EqualsNodePattern

public NodePattern.EqualsNodePattern(T t)
Method Detail

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