Enum RegexFlags
- java.lang.Object
-
- java.lang.Enum<RegexFlags>
-
- io.inugami.commons.engine.js.objects.RegexFlags
-
- All Implemented Interfaces:
Serializable
,Comparable<RegexFlags>
public enum RegexFlags extends Enum<RegexFlags>
RegexFlags- Since:
- 29 janv. 2018
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CASE_INSENSITIVE
DEFAULT
DOTALL
MULTI
UNICODE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RegexFlags
getEnum(String key)
int
getFlag()
String
getParam()
static RegexFlags
valueOf(String name)
Returns the enum constant of this type with the specified name.static RegexFlags[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DEFAULT
public static final RegexFlags DEFAULT
-
DOTALL
public static final RegexFlags DOTALL
-
CASE_INSENSITIVE
public static final RegexFlags CASE_INSENSITIVE
-
MULTI
public static final RegexFlags MULTI
-
UNICODE
public static final RegexFlags UNICODE
-
-
Method Detail
-
values
public static RegexFlags[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (RegexFlags c : RegexFlags.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RegexFlags valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getEnum
public static RegexFlags getEnum(String key)
-
getFlag
public int getFlag()
-
getParam
public String getParam()
-
-