edu.stanford.nlp.ling.tokensregex
Class CoreMapNodePattern.SequenceRegexPattern<T>

java.lang.Object
  extended by edu.stanford.nlp.ling.tokensregex.NodePattern<java.util.List<T>>
      extended by edu.stanford.nlp.ling.tokensregex.CoreMapNodePattern.SequenceRegexPattern<T>
Enclosing class:
CoreMapNodePattern

public static class CoreMapNodePattern.SequenceRegexPattern<T>
extends NodePattern<java.util.List<T>>


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
CoreMapNodePattern.SequenceRegexPattern(SequencePattern<T> pattern)
           
 
Method Summary
 SequencePattern<T> getPattern()
           
 boolean match(java.util.List<T> list)
          Returns true if the input node matches this pattern
 SequenceMatcher<T> matcher(java.util.List<T> list)
           
 java.lang.Object matchWithResult(java.util.List<T> list)
          Returns result associated with the match
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CoreMapNodePattern.SequenceRegexPattern

public CoreMapNodePattern.SequenceRegexPattern(SequencePattern<T> pattern)
Method Detail

getPattern

public SequencePattern<T> getPattern()

matcher

public SequenceMatcher<T> matcher(java.util.List<T> list)

match

public boolean match(java.util.List<T> list)
Description copied from class: NodePattern
Returns true if the input node matches this pattern

Specified by:
match in class NodePattern<java.util.List<T>>
Parameters:
list - - node to match
Returns:
true if the node matches the pattern, false otherwise

matchWithResult

public java.lang.Object matchWithResult(java.util.List<T> list)
Description copied from class: NodePattern
Returns result associated with the match

Overrides:
matchWithResult in class NodePattern<java.util.List<T>>
Parameters:
list - node to match
Returns:
null if not matched, TRUE if there is a match but no other result associated with the match. Any other value is treated as the result value of the match.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Stanford NLP Group