kmy.regex.tree
Class RSubstNode

java.lang.Object
  |
  +--kmy.regex.tree.RNode
        |
        +--kmy.regex.tree.RSubstNode

public class RSubstNode
extends RNode


Field Summary
 boolean picked
           
 java.lang.String var
           
 
Fields inherited from class kmy.regex.tree.RNode
maxLeft, maxLength, minLeft, minLength, position, prefix, tail
 
Constructor Summary
RSubstNode(int pos, java.lang.String var)
           
 
Method Summary
 void collectReferences(java.util.Dictionary refList, java.util.Dictionary pickList)
           
 java.lang.Object eval(RContext context)
           
 int getNCells()
          Number of variables to be used by this regex.
 RNode markReferenced(java.util.Dictionary refList, java.util.Dictionary pickList, boolean collapse)
           
 
Methods inherited from class kmy.regex.tree.RNode
findPrefix, finishPrepare, hasForks, hasPicks, isEndAnchored, isStartAnchored, maxTotalLength, minTotalLength, prepare, toLowerCase, toString
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

var

public java.lang.String var

picked

public boolean picked
Constructor Detail

RSubstNode

public RSubstNode(int pos,
                  java.lang.String var)
Method Detail

getNCells

public int getNCells()
Description copied from class: RNode
Number of variables to be used by this regex. This should be upper bound, but, of cource, it should be as close as possible to what RCompiler will generate.
Overrides:
getNCells in class RNode

collectReferences

public void collectReferences(java.util.Dictionary refList,
                              java.util.Dictionary pickList)
Overrides:
collectReferences in class RNode

markReferenced

public RNode markReferenced(java.util.Dictionary refList,
                            java.util.Dictionary pickList,
                            boolean collapse)
Overrides:
markReferenced in class RNode

eval

public java.lang.Object eval(RContext context)
Overrides:
eval in class RNode