Package org.sonar.java.regex.ast
Enum RegexTree.Kind
- java.lang.Object
-
- java.lang.Enum<RegexTree.Kind>
-
- org.sonar.java.regex.ast.RegexTree.Kind
-
- All Implemented Interfaces:
Serializable
,Comparable<RegexTree.Kind>
- Enclosing class:
- RegexTree
public static enum RegexTree.Kind extends Enum<RegexTree.Kind>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ATOMIC_GROUP
BACK_REFERENCE
BOUNDARY
CAPTURING_GROUP
CHARACTER_CLASS
DISJUNCTION
DOT
ESCAPED_CHARACTER_CLASS
LOOK_AROUND
MISC_ESCAPE_SEQUENCE
NON_CAPTURING_GROUP
PLAIN_CHARACTER
REPETITION
SEQUENCE
UNICODE_CODE_POINT
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RegexTree.Kind
valueOf(String name)
Returns the enum constant of this type with the specified name.static RegexTree.Kind[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BACK_REFERENCE
public static final RegexTree.Kind BACK_REFERENCE
-
BOUNDARY
public static final RegexTree.Kind BOUNDARY
-
CHARACTER_CLASS
public static final RegexTree.Kind CHARACTER_CLASS
-
DISJUNCTION
public static final RegexTree.Kind DISJUNCTION
-
DOT
public static final RegexTree.Kind DOT
-
ESCAPED_CHARACTER_CLASS
public static final RegexTree.Kind ESCAPED_CHARACTER_CLASS
-
CAPTURING_GROUP
public static final RegexTree.Kind CAPTURING_GROUP
-
NON_CAPTURING_GROUP
public static final RegexTree.Kind NON_CAPTURING_GROUP
-
ATOMIC_GROUP
public static final RegexTree.Kind ATOMIC_GROUP
-
LOOK_AROUND
public static final RegexTree.Kind LOOK_AROUND
-
PLAIN_CHARACTER
public static final RegexTree.Kind PLAIN_CHARACTER
-
REPETITION
public static final RegexTree.Kind REPETITION
-
SEQUENCE
public static final RegexTree.Kind SEQUENCE
-
UNICODE_CODE_POINT
public static final RegexTree.Kind UNICODE_CODE_POINT
-
MISC_ESCAPE_SEQUENCE
public static final RegexTree.Kind MISC_ESCAPE_SEQUENCE
-
-
Method Detail
-
values
public static RegexTree.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 (RegexTree.Kind c : RegexTree.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 RegexTree.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
-
-