public enum RegexNFATypeEnum extends 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(String code,
String reluctantQuestion)
Inspect code and return enum for code.
|
String |
getOptionalPostfix()
Return postfix.
|
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(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(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean isMultipleMatches()
public boolean isOptional()
public Boolean isGreedy()
public static RegexNFATypeEnum fromString(String code, String reluctantQuestion)
code
- to inspectreluctantQuestion
- null for greedy or questionmark for reluctantpublic String getOptionalPostfix()