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');
Modifier and Type | Field and Description |
---|---|
(package private) java.lang.Object |
content
The child of this expression node in the syntax tree of a regular expression.
|
(package private) boolean |
isPoint
true if this regexp was created from a dot/point (.) metachar
|
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, size
java.lang.Object content
boolean isPoint
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 expression