|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectJFlex.RegExp
public class RegExp
Stores a regular expression of rules section in a JFlex-specification. This base class has no content other than its type.
| Field Summary | |
|---|---|
(package private) int |
type
The type of the regular expression. |
| Constructor Summary | |
|---|---|
RegExp(int type)
Create a new regular expression of the specified type. |
|
| Method Summary | |
|---|---|
boolean |
isCharClass(Macros macros)
Find out if this regexp is a char class or equivalent to one. |
java.lang.String |
print(java.lang.String tab)
Returns a String-representation of this regular expression with the specified indentation. |
int |
size(Macros macros)
The approximate number of NFA states this expression will need (only works correctly after macro expansion and without negation) |
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 |
| Field Detail |
|---|
int type
| Constructor Detail |
|---|
public RegExp(int type)
type - a value from the cup generated class sym.sym| Method Detail |
|---|
public java.lang.String print(java.lang.String tab)
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 java.lang.Objectpublic boolean isCharClass(Macros macros)
macros - for macro expansion
public int size(Macros macros)
macros - macro table for expansion
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||