JFlex
Class RegExp1
Stores a regular expression from the rules section of a JFlex specification.
This class provides storage for one Object of content.
It is used for all regular expressions that are constructed from one object.
For instance: a* is new RegExp1(sym.STAR, new Character ('a'));
RegExp1(int type, Object content) - Constructs a new regular expression with one child object.
|
String | print(String tab) - Returns a String-representation of this regular expression
with the specified indentation.
|
String | toString() - Returns a String-representation of this regular expression
|
RegExp1
public RegExp1(int type,
Object content)
Constructs a new regular expression with one child object.
type
- a value from the cup generated class sym, defining the
kind of this regular expressioncontent
- the child of this expression
print
public String print(String tab)
Returns a String-representation of this regular expression
with the specified indentation.
- print in interface RegExp
tab
- a String that should contain only space characters and
that is inserted in front of standard String-representation
pf this object.
toString
public String toString()
Returns a String-representation of this regular expression
- toString in interface RegExp