JFlex
Class RegExps

java.lang.Object
  extended by JFlex.RegExps

public class RegExps
extends java.lang.Object

Stores all rules of the specification for later access in RegExp -> NFA

Version:
JFlex 1.4.1, $Revision: 2.4 $, $Date: 2004/11/06 23:03:31 $
Author:
Gerwin Klein

Field Summary
(package private)  java.util.Vector actions
          the action of a regexp
(package private)  java.util.Vector BOL
          flag if it is a BOL regexp
(package private)  java.util.Vector lines
          the spec line in which a regexp is used
(package private)  java.util.Vector look
          the lookahead expression
(package private)  java.util.Vector regExps
          the regexp
(package private)  java.util.Vector states
          the lexical states in wich the regexp is used
 
Constructor Summary
RegExps()
           
 
Method Summary
 void addStates(int regNum, java.util.Vector newStates)
           
 void checkActions()
           
 Action getAction(int num)
           
 int getLine(int num)
           
 RegExp getLookAhead(int num)
           
 int getNum()
           
 RegExp getRegExp(int num)
           
 java.util.Vector getStates(int num)
           
 int insert(int line, java.util.Vector stateList, RegExp regExp, Action action, java.lang.Boolean isBOL, RegExp lookAhead)
           
 int insert(java.util.Vector stateList, Action action)
           
 boolean isBOL(int num)
           
 boolean isEOF(int num)
           
 int NFASize(Macros macros)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lines

java.util.Vector lines
the spec line in which a regexp is used


states

java.util.Vector states
the lexical states in wich the regexp is used


regExps

java.util.Vector regExps
the regexp


actions

java.util.Vector actions
the action of a regexp


BOL

java.util.Vector BOL
flag if it is a BOL regexp


look

java.util.Vector look
the lookahead expression

Constructor Detail

RegExps

public RegExps()
Method Detail

insert

public int insert(int line,
                  java.util.Vector stateList,
                  RegExp regExp,
                  Action action,
                  java.lang.Boolean isBOL,
                  RegExp lookAhead)

insert

public int insert(java.util.Vector stateList,
                  Action action)

addStates

public void addStates(int regNum,
                      java.util.Vector newStates)

getNum

public int getNum()

isBOL

public boolean isBOL(int num)

getLookAhead

public RegExp getLookAhead(int num)

isEOF

public boolean isEOF(int num)

getStates

public java.util.Vector getStates(int num)

getRegExp

public RegExp getRegExp(int num)

getLine

public int getLine(int num)

checkActions

public void checkActions()

getAction

public Action getAction(int num)

NFASize

public int NFASize(Macros macros)