public class RegExp1 extends RegExp
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');
| Constructor and Description |
|---|
RegExp1(int type,
java.lang.Object content)
Constructs a new regular expression with one child object.
|
| Modifier and Type | Method and Description |
|---|---|
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
|
anyChar, isCharClass, resolveTilde, rev, revString, sizepublic 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 expressionCopyright © 1998–2020. All rights reserved.