public class RegExpStar extends RegExpOne
BINARY_EXP, CHOICE_EXP, CONCAT_EXP, EMPTY, EMPTY_EXP, OPTION_EXP, PLUS_EXP, POWER_EXP, RANGE_EXP, STAR_EXP, SYMBOL_EXP, UNARY_EXP| Constructor and Description |
|---|
RegExpStar(RegExp arg)
Constructs a RegExpStar with the specified
RegExp.
|
| Modifier and Type | Method and Description |
|---|---|
RegExp |
deepCopy()
This returns a deep copy of this RegExp.
|
RegExp |
normalize()
This returns this RegExpStar's
normal form according to the following rewrite rules:
[ST:E]
()\*
→
()
[ST:O]
X?\*
→
X\*
[ST:P]
X+\*
→
X\*
[ST:S]
X\*\*
→
X\*
|
RegExp |
shallowCopy()
This returns a shallow copy of this RegExp.
|
java.lang.String |
toString()
Returns a printable form for this RegExpStar.
|
int |
type()
This returns the specific type identifying this RegExp.
|
public RegExpStar(RegExp arg)
public final RegExp shallowCopy()
RegExpshallowCopy in class RegExppublic final RegExp deepCopy()
RegExppublic final int type()
RegExppublic RegExp normalize()
public final java.lang.String toString()
toString in class java.lang.Object