edu.stanford.nlp.ling.tokensregex
Class CoreMapNodePattern.SequenceRegexPattern<T>
java.lang.Object
edu.stanford.nlp.ling.tokensregex.NodePattern<java.util.List<T>>
edu.stanford.nlp.ling.tokensregex.CoreMapNodePattern.SequenceRegexPattern<T>
- Enclosing class:
- CoreMapNodePattern
public static class CoreMapNodePattern.SequenceRegexPattern<T>
- extends NodePattern<java.util.List<T>>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
CoreMapNodePattern.SequenceRegexPattern
public CoreMapNodePattern.SequenceRegexPattern(SequencePattern<T> pattern)
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