Enum RegexFeature
- java.lang.Object
-
- java.lang.Enum<RegexFeature>
-
- org.sonarsource.analyzer.commons.regex.RegexFeature
-
- All Implemented Interfaces:
Serializable,Comparable<RegexFeature>
public enum RegexFeature extends Enum<RegexFeature>
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RegexFeaturevalueOf(String name)Returns the enum constant of this type with the specified name.static RegexFeature[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RECURSION
public static final RegexFeature RECURSION
-
CONDITIONAL_SUBPATTERN
public static final RegexFeature CONDITIONAL_SUBPATTERN
-
POSIX_CHARACTER_CLASS
public static final RegexFeature POSIX_CHARACTER_CLASS
-
PYTHON_SYNTAX_GROUP_NAME
public static final RegexFeature PYTHON_SYNTAX_GROUP_NAME
-
DOTNET_SYNTAX_GROUP_NAME
public static final RegexFeature DOTNET_SYNTAX_GROUP_NAME
-
PERL_SYNTAX_GROUP_NAME
public static final RegexFeature PERL_SYNTAX_GROUP_NAME
-
JAVA_SYNTAX_GROUP_NAME
public static final RegexFeature JAVA_SYNTAX_GROUP_NAME
-
BACKSLASH_ESCAPING
public static final RegexFeature BACKSLASH_ESCAPING
-
ATOMIC_GROUP
public static final RegexFeature ATOMIC_GROUP
-
POSSESSIVE_QUANTIFIER
public static final RegexFeature POSSESSIVE_QUANTIFIER
-
ESCAPED_CHARACTER_CLASS
public static final RegexFeature ESCAPED_CHARACTER_CLASS
-
UNESCAPED_CURLY_BRACKET
public static final RegexFeature UNESCAPED_CURLY_BRACKET
-
ONLY_UPPER_BOUND_QUANTIFIER
public static final RegexFeature ONLY_UPPER_BOUND_QUANTIFIER
-
NESTED_CHARTER_CLASS
public static final RegexFeature NESTED_CHARTER_CLASS
-
-
Method Detail
-
values
public static RegexFeature[] 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 (RegexFeature c : RegexFeature.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RegexFeature 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
-
-