edu.stanford.nlp.ling.tokensregex
Class CoreMapNodePattern

java.lang.Object
  extended by edu.stanford.nlp.ling.tokensregex.NodePattern<CoreMap>
      extended by edu.stanford.nlp.ling.tokensregex.CoreMapNodePattern

public class CoreMapNodePattern
extends NodePattern<CoreMap>

Pattern for matching a CoreMap

Author:
Angel Chang

Nested Class Summary
static class CoreMapNodePattern.AttributesEqualMatchChecker
           
static class CoreMapNodePattern.NilAnnotationPattern
           
static class CoreMapNodePattern.NotNilAnnotationPattern
           
static class CoreMapNodePattern.NumericAnnotationPattern
           
static class CoreMapNodePattern.SequenceRegexPattern<T>
           
static class CoreMapNodePattern.StringAnnotationPattern
           
static class CoreMapNodePattern.StringAnnotationRegexPattern
           
 
Nested classes/interfaces inherited from class edu.stanford.nlp.ling.tokensregex.NodePattern
NodePattern.AnyNodePattern<T>, NodePattern.ConjNodePattern<T>, NodePattern.DisjNodePattern<T>, NodePattern.NegateNodePattern<T>
 
Field Summary
static CoreMapNodePattern.AttributesEqualMatchChecker TEXT_ATTR_EQUAL_CHECKER
           
 
Fields inherited from class edu.stanford.nlp.ling.tokensregex.NodePattern
ANY_NODE
 
Constructor Summary
CoreMapNodePattern()
           
CoreMapNodePattern(java.util.Map<java.lang.Class,NodePattern> annotationPatterns)
           
 
Method Summary
 boolean match(CoreMap token)
           
protected  boolean match(CoreMap token, java.util.Map<java.lang.Class,java.lang.Object> matchResults)
           
 java.lang.Object matchWithResult(CoreMap token)
           
 java.lang.String toString()
           
static CoreMapNodePattern valueOf(Env env, java.util.Map<java.lang.String,java.lang.String> attributes)
           
static CoreMapNodePattern valueOf(Env env, java.lang.String textAnnotationPattern)
           
static CoreMapNodePattern valueOf(java.util.Map<java.lang.String,java.lang.String> attributes)
           
static CoreMapNodePattern valueOf(java.lang.String textAnnotationPattern)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TEXT_ATTR_EQUAL_CHECKER

public static CoreMapNodePattern.AttributesEqualMatchChecker TEXT_ATTR_EQUAL_CHECKER
Constructor Detail

CoreMapNodePattern

public CoreMapNodePattern()

CoreMapNodePattern

public CoreMapNodePattern(java.util.Map<java.lang.Class,NodePattern> annotationPatterns)
Method Detail

valueOf

public static CoreMapNodePattern valueOf(java.lang.String textAnnotationPattern)

valueOf

public static CoreMapNodePattern valueOf(Env env,
                                         java.lang.String textAnnotationPattern)

valueOf

public static CoreMapNodePattern valueOf(java.util.Map<java.lang.String,java.lang.String> attributes)

valueOf

public static CoreMapNodePattern valueOf(Env env,
                                         java.util.Map<java.lang.String,java.lang.String> attributes)

match

public boolean match(CoreMap token)
Specified by:
match in class NodePattern<CoreMap>

matchWithResult

public java.lang.Object matchWithResult(CoreMap token)
Overrides:
matchWithResult in class NodePattern<CoreMap>

match

protected boolean match(CoreMap token,
                        java.util.Map<java.lang.Class,java.lang.Object> matchResults)

toString

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


Stanford NLP Group