public static class SequencePattern.ValuePatternExpr extends SequencePattern.PatternExpr
Constructor and Description |
---|
ValuePatternExpr(SequencePattern.PatternExpr expr,
Object value) |
Modifier and Type | Method and Description |
---|---|
protected int |
assignGroupIds(int start)
Assigns group ids to groups embedded in this patterns starting with at the specified number,
returns the next available group id.
|
protected edu.stanford.nlp.ling.tokensregex.SequencePattern.Frag |
build() |
protected SequencePattern.PatternExpr |
copy()
Make a deep copy of the sequence pattern expressions
|
protected SequencePattern.PatternExpr |
optimize()
Returns an optimized version of this pattern - default is a noop
|
protected SequencePattern.PatternExpr |
transform(NodePatternTransformer transformer) |
protected void |
updateBindings(edu.stanford.nlp.ling.tokensregex.SequencePattern.VarGroupBindings bindings)
Updates the binding of group to variable name
|
value
public ValuePatternExpr(SequencePattern.PatternExpr expr, Object value)
protected edu.stanford.nlp.ling.tokensregex.SequencePattern.Frag build()
build
in class SequencePattern.PatternExpr
protected int assignGroupIds(int start)
SequencePattern.PatternExpr
assignGroupIds
in class SequencePattern.PatternExpr
start
- Group id to start withprotected SequencePattern.PatternExpr copy()
SequencePattern.PatternExpr
copy
in class SequencePattern.PatternExpr
protected SequencePattern.PatternExpr optimize()
SequencePattern.PatternExpr
optimize
in class SequencePattern.PatternExpr
protected SequencePattern.PatternExpr transform(NodePatternTransformer transformer)
transform
in class SequencePattern.PatternExpr
protected void updateBindings(edu.stanford.nlp.ling.tokensregex.SequencePattern.VarGroupBindings bindings)
SequencePattern.PatternExpr
updateBindings
in class SequencePattern.PatternExpr