kmy.regex.tree
Class RRepeatNode

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

public class RRepeatNode
extends RNode


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

Field Detail

body

public RNode body

min

public int min

max

public int max

greedy

public boolean greedy
Constructor Detail

RRepeatNode

public RRepeatNode(int pos,
                   RNode body)

RRepeatNode

public RRepeatNode(int pos,
                   int min,
                   int max,
                   RNode body,
                   boolean greedy)
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

prepare

public void prepare(int addMaxLeft,
                    int addMinLeft)
Overrides:
prepare in class RNode

findPrefix

public CharSet findPrefix(CharSet tailPrefix)
Overrides:
findPrefix in class RNode

toLowerCase

public void toLowerCase()
Overrides:
toLowerCase in class RNode

hasPicks

public boolean hasPicks()
Overrides:
hasPicks in class RNode

hasForks

public boolean hasForks()
Overrides:
hasForks 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