Package org.sonar.java.regex.ast
Enum CharacterClassElementTree.Kind
- java.lang.Object
-
- java.lang.Enum<CharacterClassElementTree.Kind>
-
- org.sonar.java.regex.ast.CharacterClassElementTree.Kind
-
- All Implemented Interfaces:
Serializable
,Comparable<CharacterClassElementTree.Kind>
- Enclosing interface:
- CharacterClassElementTree
public static enum CharacterClassElementTree.Kind extends Enum<CharacterClassElementTree.Kind>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CHARACTER_RANGE
ESCAPED_CHARACTER_CLASS
INTERSECTION
MISC_ESCAPE_SEQUENCE
NEGATION
NESTED_CHARACTER_CLASS
PLAIN_CHARACTER
UNICODE_CODE_POINT
UNION
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CharacterClassElementTree.Kind
valueOf(String name)
Returns the enum constant of this type with the specified name.static CharacterClassElementTree.Kind[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INTERSECTION
public static final CharacterClassElementTree.Kind INTERSECTION
-
UNION
public static final CharacterClassElementTree.Kind UNION
-
NEGATION
public static final CharacterClassElementTree.Kind NEGATION
-
CHARACTER_RANGE
public static final CharacterClassElementTree.Kind CHARACTER_RANGE
-
ESCAPED_CHARACTER_CLASS
public static final CharacterClassElementTree.Kind ESCAPED_CHARACTER_CLASS
-
PLAIN_CHARACTER
public static final CharacterClassElementTree.Kind PLAIN_CHARACTER
-
UNICODE_CODE_POINT
public static final CharacterClassElementTree.Kind UNICODE_CODE_POINT
-
MISC_ESCAPE_SEQUENCE
public static final CharacterClassElementTree.Kind MISC_ESCAPE_SEQUENCE
-
NESTED_CHARACTER_CLASS
public static final CharacterClassElementTree.Kind NESTED_CHARACTER_CLASS
-
-
Method Detail
-
values
public static CharacterClassElementTree.Kind[] 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 (CharacterClassElementTree.Kind c : CharacterClassElementTree.Kind.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CharacterClassElementTree.Kind 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
-
-