|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectJFlex.RegExp
JFlex.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'));
Constructor Summary | |
RegExp1(int type,
java.lang.Object content)
Constructs a new regular expression with one child object. |
Method Summary | |
java.lang.String |
print(java.lang.String tab)
Returns a String-representation of this regular expression with the specified indentation. |
java.lang.String |
toString()
Returns a String-representation of this regular expression |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public RegExp1(int type, java.lang.Object content)
type
- a value from the cup generated class sym, defining the
kind of this regular expressioncontent
- the child of this expressionMethod Detail |
public java.lang.String print(java.lang.String tab)
print
in class RegExp
tab
- a String that should contain only space characters and
that is inserted in front of standard String-representation
pf this object.public java.lang.String toString()
toString
in class RegExp
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |