Class NodePattern.DisjNodePattern<T>
- java.lang.Object
-
- edu.stanford.nlp.ling.tokensregex.NodePattern<T>
-
- edu.stanford.nlp.ling.tokensregex.NodePattern.DisjNodePattern<T>
-
- Type Parameters:
T-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- NodePattern<T>
public static class NodePattern.DisjNodePattern<T> extends NodePattern<T>
Given a list of patterns p1,...,pn, matches if one of the patterns p1,...,pn matches- See Also:
- Serialized Form
-
-
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, CASE_INSENSITIVE, NORMALIZE, UNICODE_CASE
-
-
Constructor Summary
Constructors Constructor Description DisjNodePattern(List<NodePattern<T>> nodePatterns)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanmatch(T node)Returns true if the input node matches this patternStringtoString()-
Methods inherited from class edu.stanford.nlp.ling.tokensregex.NodePattern
matchWithResult
-
-
-
-
Constructor Detail
-
DisjNodePattern
public DisjNodePattern(List<NodePattern<T>> nodePatterns)
-
-
Method Detail
-
match
public boolean match(T node)
Description copied from class:NodePatternReturns true if the input node matches this pattern- Specified by:
matchin classNodePattern<T>- Parameters:
node- - node to match- Returns:
- true if the node matches the pattern, false otherwise
-
-