|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.stanford.nlp.ling.tokensregex.NodePattern<T>
public abstract class NodePattern<T>
Matches a Node (i.e a Token)
| Nested Class Summary | |
|---|---|
static class |
NodePattern.AnyNodePattern<T>
Matches any node |
static class |
NodePattern.ConjNodePattern<T>
Given a list of patterns p1,...,pn, matches if all patterns p1,...,pn matches |
static class |
NodePattern.DisjNodePattern<T>
Given a list of patterns p1,...,pn, matches if one of the patterns p1,...,pn matches |
static class |
NodePattern.EqualsNodePattern<T>
Matches a constant value of type T using equals() |
static class |
NodePattern.NegateNodePattern<T>
Given a node pattern p, a node x matches if p does not match x |
| Field Summary | |
|---|---|
static NodePattern |
ANY_NODE
|
| Constructor Summary | |
|---|---|
NodePattern()
|
|
| Method Summary | |
|---|---|
abstract boolean |
match(T node)
Returns true if the input node matches this pattern |
java.lang.Object |
matchWithResult(T node)
Returns result associated with the match |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final NodePattern ANY_NODE
| Constructor Detail |
|---|
public NodePattern()
| Method Detail |
|---|
public abstract boolean match(T node)
node - - node to match
public java.lang.Object matchWithResult(T node)
node - node to match
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||