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

java.lang.Object
  extended by edu.stanford.nlp.ling.tokensregex.SequencePattern.PatternExpr
Direct Known Subclasses:
SequencePattern.AndPatternExpr, SequencePattern.BackRefPatternExpr, SequencePattern.GroupPatternExpr, SequencePattern.MultiNodePatternExpr, SequencePattern.NodePatternExpr, SequencePattern.OrPatternExpr, SequencePattern.RepeatPatternExpr, SequencePattern.SequencePatternExpr, SequencePattern.SpecialNodePatternExpr, SequencePattern.ValuePatternExpr
Enclosing class:
SequencePattern<T>

public abstract static class SequencePattern.PatternExpr
extends java.lang.Object

Represents a sequence pattern expressions (before translating into NFA)


Constructor Summary
SequencePattern.PatternExpr()
           
 
Method Summary
protected abstract  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 abstract  edu.stanford.nlp.ling.tokensregex.SequencePattern.Frag build()
           
protected abstract  SequencePattern.PatternExpr copy()
          Make a deep copy of the sequence pattern expressions
protected abstract  void updateBindings(edu.stanford.nlp.ling.tokensregex.SequencePattern.VarGroupBindings bindings)
          Updates the binding of group to variable name
protected  java.lang.Object value()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SequencePattern.PatternExpr

public SequencePattern.PatternExpr()
Method Detail

build

protected abstract edu.stanford.nlp.ling.tokensregex.SequencePattern.Frag build()

assignGroupIds

protected abstract 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

Parameters:
start - Group id to start with
Returns:
The next available group id

copy

protected abstract SequencePattern.PatternExpr copy()
Make a deep copy of the sequence pattern expressions


updateBindings

protected abstract void updateBindings(edu.stanford.nlp.ling.tokensregex.SequencePattern.VarGroupBindings bindings)
Updates the binding of group to variable name

Parameters:
bindings -

value

protected java.lang.Object value()


Stanford NLP Group