public class RegExpPlus 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 |
|---|
RegExpPlus(RegExp arg)
Constructs a RegExpPlus 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 RegExpPlus's
normal form according to the following rewrite rules:
[PL:E]
()+
→
()
[PL:O]
X?+
→
X\*
[PL:P]
X++
→
X+
[PL:S]
X\*+
→
X\*
|
RegExp |
shallowCopy()
This returns a shallow copy of this RegExp.
|
java.lang.String |
toString()
Returns a printable form for this RegExpPlus.
|
int |
type()
This returns the specific type identifying this RegExp.
|
public RegExpPlus(RegExp arg)
public final int type()
RegExppublic final RegExp shallowCopy()
RegExpshallowCopy in class RegExppublic final RegExp deepCopy()
RegExppublic RegExp normalize()
public final java.lang.String toString()
toString in class java.lang.Object