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

java.lang.Object
  extended by edu.stanford.nlp.ling.tokensregex.NodePattern<T>
Direct Known Subclasses:
CoreMapExpressionNodePattern, CoreMapNodePattern, CoreMapNodePattern.NilAnnotationPattern, CoreMapNodePattern.NotNilAnnotationPattern, CoreMapNodePattern.NumericAnnotationPattern, CoreMapNodePattern.SequenceRegexPattern, CoreMapNodePattern.StringAnnotationPattern, CoreMapNodePattern.StringAnnotationRegexPattern, NodePattern.AnyNodePattern, NodePattern.ConjNodePattern, NodePattern.DisjNodePattern, NodePattern.NegateNodePattern

public abstract class NodePattern<T>
extends java.lang.Object

Matches a Node (i.e a Token)

Author:
Angel Chang

Nested Class Summary
static class NodePattern.AnyNodePattern<T>
           
static class NodePattern.ConjNodePattern<T>
           
static class NodePattern.DisjNodePattern<T>
           
static class NodePattern.NegateNodePattern<T>
           
 
Field Summary
static NodePattern ANY_NODE
           
 
Constructor Summary
NodePattern()
           
 
Method Summary
abstract  boolean match(T node)
           
 java.lang.Object matchWithResult(T node)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ANY_NODE

public static final NodePattern ANY_NODE
Constructor Detail

NodePattern

public NodePattern()
Method Detail

match

public abstract boolean match(T node)

matchWithResult

public java.lang.Object matchWithResult(T node)


Stanford NLP Group