edu.stanford.nlp.ling.tokensregex
Class SequencePattern.RepeatPatternExpr

java.lang.Object
  extended by edu.stanford.nlp.ling.tokensregex.SequencePattern.PatternExpr
      extended by edu.stanford.nlp.ling.tokensregex.SequencePattern.RepeatPatternExpr
Enclosing class:
SequencePattern<T>

public static class SequencePattern.RepeatPatternExpr
extends SequencePattern.PatternExpr


Constructor Summary
SequencePattern.RepeatPatternExpr(SequencePattern.PatternExpr pattern, int minMatch, int maxMatch)
           
SequencePattern.RepeatPatternExpr(SequencePattern.PatternExpr pattern, int minMatch, int maxMatch, boolean greedy)
           
 
Method Summary
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  void updateBindings(edu.stanford.nlp.ling.tokensregex.SequencePattern.VarGroupBindings bindings)
          Updates the binding of group to variable name
 
Methods inherited from class edu.stanford.nlp.ling.tokensregex.SequencePattern.PatternExpr
value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SequencePattern.RepeatPatternExpr

public SequencePattern.RepeatPatternExpr(SequencePattern.PatternExpr pattern,
                                         int minMatch,
                                         int maxMatch)

SequencePattern.RepeatPatternExpr

public SequencePattern.RepeatPatternExpr(SequencePattern.PatternExpr pattern,
                                         int minMatch,
                                         int maxMatch,
                                         boolean greedy)
Method Detail

build

protected edu.stanford.nlp.ling.tokensregex.SequencePattern.Frag build()
Specified by:
build in class SequencePattern.PatternExpr

assignGroupIds

protected int assignGroupIds(int start)
Description copied from class: SequencePattern.PatternExpr
Assigns group ids to groups embedded in this patterns starting with at the specified number, returns the next available group id

Specified by:
assignGroupIds in class SequencePattern.PatternExpr
Parameters:
start - Group id to start with
Returns:
The next available group id

updateBindings

protected void updateBindings(edu.stanford.nlp.ling.tokensregex.SequencePattern.VarGroupBindings bindings)
Description copied from class: SequencePattern.PatternExpr
Updates the binding of group to variable name

Specified by:
updateBindings in class SequencePattern.PatternExpr

copy

protected SequencePattern.PatternExpr copy()
Description copied from class: SequencePattern.PatternExpr
Make a deep copy of the sequence pattern expressions

Specified by:
copy in class SequencePattern.PatternExpr

optimize

protected SequencePattern.PatternExpr optimize()
Description copied from class: SequencePattern.PatternExpr
Returns an optimized version of this pattern - default is a noop

Overrides:
optimize in class SequencePattern.PatternExpr

toString

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


Stanford NLP Group