public static enum Regex.Option extends Enum<Regex.Option>
| Enum Constant and Description |
|---|
ACCEPT_IMMEDIATELY
Normally parser tries to match as more characters as is possible.
|
CASE_INSENSITIVE
Enables case-insensitive matching.
|
FIXED_ENDER
Creates a matcher for grammars where a fixed string ends the match.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
supports(Regex.Option[] options,
Regex.Option option) |
static Regex.Option |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Regex.Option[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Regex.Option CASE_INSENSITIVE
public static final Regex.Option FIXED_ENDER
public static final Regex.Option ACCEPT_IMMEDIATELY
public static Regex.Option[] values()
for (Regex.Option c : Regex.Option.values()) System.out.println(c);
public static Regex.Option 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 static boolean supports(Regex.Option[] options, Regex.Option option)