public enum RegexpFlag extends java.lang.Enum<RegexpFlag>
Enum Constant | Description |
---|---|
ALL |
Enables all available option flags
|
ANYSTRING |
Enables any string expression: @
|
COMPLEMENT |
Enables complement expression of the form: ~<expression>
|
EMPTY |
Enables empty language expression: #
|
INTERSECTION |
Enables intersection of the form: <expression> & <expression>
|
INTERVAL |
Enables numerical interval expression: <n-m>
|
NONE |
Disables all available option flags
|
Modifier and Type | Method | Description |
---|---|---|
static int |
resolveValue(java.lang.String flags) |
Resolves the combined OR'ed value for the given list of regular expression flags.
|
int |
value() |
|
static RegexpFlag |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static RegexpFlag[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RegexpFlag INTERSECTION
public static final RegexpFlag COMPLEMENT
public static final RegexpFlag EMPTY
public static final RegexpFlag ANYSTRING
public static final RegexpFlag INTERVAL
public static final RegexpFlag NONE
public static final RegexpFlag ALL
public static RegexpFlag[] values()
for (RegexpFlag c : RegexpFlag.values()) System.out.println(c);
public static RegexpFlag 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 int value()
public static int resolveValue(java.lang.String flags)
flag_name(|flag_name)*
Where flag_name is one of the following:
Example: INTERSECTION|COMPLEMENT|EMPTY
flags
- A string representing a list of regular expression flags