Package jflex.core
Class RegExp1
- java.lang.Object
-
- jflex.core.RegExp
-
- jflex.core.RegExp1
-
public class RegExp1 extends RegExp
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, 'a');
- Version:
- JFlex 1.8.1
- Author:
- Gerwin Klein
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
print(String tab)
Returns a String-representation of this regular expression with the specified indentation.String
toString()
-
Methods inherited from class jflex.core.RegExp
anyChar, checkPrimClass, isCharClass, makeCCLs, normalise, performClassOp, resolveTilde, rev, size, typeName
-
-
-
-
Constructor Detail
-
RegExp1
public RegExp1(int type, Object content)
Constructs a new regular expression with one child object.- Parameters:
type
- a value from the cup generated class sym, defining the kind of this regular expressioncontent
- the child of this expression
-
-