public static class SequencePattern.RepeatPatternExpr extends SequencePattern.PatternExpr
| Constructor and Description |
|---|
RepeatPatternExpr(SequencePattern.PatternExpr pattern,
int minMatch,
int maxMatch) |
RepeatPatternExpr(SequencePattern.PatternExpr pattern,
int minMatch,
int maxMatch,
boolean greedy) |
| 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
|
java.lang.String |
toString() |
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
|
valuepublic RepeatPatternExpr(SequencePattern.PatternExpr pattern, int minMatch, int maxMatch)
public RepeatPatternExpr(SequencePattern.PatternExpr pattern, int minMatch, int maxMatch, boolean greedy)
protected edu.stanford.nlp.ling.tokensregex.SequencePattern.Frag build()
build in class SequencePattern.PatternExprprotected int assignGroupIds(int start)
SequencePattern.PatternExprassignGroupIds in class SequencePattern.PatternExprstart - Group id to start withprotected void updateBindings(edu.stanford.nlp.ling.tokensregex.SequencePattern.VarGroupBindings bindings)
SequencePattern.PatternExprupdateBindings in class SequencePattern.PatternExprprotected SequencePattern.PatternExpr copy()
SequencePattern.PatternExprcopy in class SequencePattern.PatternExprprotected SequencePattern.PatternExpr optimize()
SequencePattern.PatternExproptimize in class SequencePattern.PatternExprprotected SequencePattern.PatternExpr transform(NodePatternTransformer transformer)
transform in class SequencePattern.PatternExprpublic java.lang.String toString()
toString in class java.lang.Object