public enum RegexNFATypeEnum extends java.lang.Enum<RegexNFATypeEnum>
Enum Constant and Description |
---|
ONE_OPTIONAL
For greedy '?' multiplicity.
|
ONE_OPTIONAL_RELUCTANT
For reluctant '?' multiplicity.
|
ONE_TO_MANY
For greedy '+' multiplicity.
|
ONE_TO_MANY_RELUCTANT
For reluctant '+' multiplicity.
|
SINGLE
For single multiplicity.
|
ZERO_TO_MANY
For greedy '*' multiplicity.
|
ZERO_TO_MANY_RELUCTANT
For reluctant '*' multiplicity.
|
Modifier and Type | Method and Description |
---|---|
static RegexNFATypeEnum |
fromString(java.lang.String code,
java.lang.String reluctantQuestion)
Inspect code and return enum for code.
|
java.lang.String |
getOptionalPostfix()
Return postfix.
|
java.lang.Boolean |
isGreedy()
Returns indicator if greedy or reluctant.
|
boolean |
isMultipleMatches()
Returns indicator if single or multiple matches.
|
boolean |
isOptional()
Returns indicator if optional matches.
|
static RegexNFATypeEnum |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RegexNFATypeEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RegexNFATypeEnum SINGLE
public static final RegexNFATypeEnum ZERO_TO_MANY
public static final RegexNFATypeEnum ONE_TO_MANY
public static final RegexNFATypeEnum ONE_OPTIONAL
public static final RegexNFATypeEnum ZERO_TO_MANY_RELUCTANT
public static final RegexNFATypeEnum ONE_TO_MANY_RELUCTANT
public static final RegexNFATypeEnum ONE_OPTIONAL_RELUCTANT
public static RegexNFATypeEnum[] values()
for (RegexNFATypeEnum c : RegexNFATypeEnum.values()) System.out.println(c);
public static RegexNFATypeEnum valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic boolean isMultipleMatches()
public boolean isOptional()
public java.lang.Boolean isGreedy()
public static RegexNFATypeEnum fromString(java.lang.String code, java.lang.String reluctantQuestion)
code
- to inspectreluctantQuestion
- null for greedy or questionmark for reluctantpublic java.lang.String getOptionalPostfix()