public class RegExpOption 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 |
|---|
RegExpOption(RegExp arg)
Constructs a RegExpOption 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 RegExpOption's
normal form according to the following rewrite rules:
[OP:E]
()?
→
()
[OP:O]
X??
→
X?
[OP:P]
X+?
→
X\*
[OP:S]
X\*?
→
X\*
[OP:R0]
X_0^n?
→
X_0^n
*
[OP:R1]
X_1^n?
→
X_0^n
*
|
RegExp |
shallowCopy()
This returns a shallow copy of this RegExp.
|
java.lang.String |
toString()
Returns a printable form for this RegExpOption.
|
int |
type()
This returns the specific type identifying this RegExp.
|
public RegExpOption(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