Enum BoundaryTree.Type
- java.lang.Object
-
- java.lang.Enum<BoundaryTree.Type>
-
- org.sonarsource.analyzer.commons.regex.ast.BoundaryTree.Type
-
- All Implemented Interfaces:
Serializable,Comparable<BoundaryTree.Type>
- Enclosing class:
- BoundaryTree
public static enum BoundaryTree.Type extends Enum<BoundaryTree.Type>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INPUT_ENDINPUT_END_FINAL_TERMINATORINPUT_STARTLINE_ENDLINE_STARTNON_WORDPREVIOUS_MATCH_ENDUNICODE_EXTENDED_GRAPHEME_CLUSTERWORD
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BoundaryTree.TypeforKey(char k)static BoundaryTree.TypevalueOf(String name)Returns the enum constant of this type with the specified name.static BoundaryTree.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LINE_START
public static final BoundaryTree.Type LINE_START
-
LINE_END
public static final BoundaryTree.Type LINE_END
-
WORD
public static final BoundaryTree.Type WORD
-
UNICODE_EXTENDED_GRAPHEME_CLUSTER
public static final BoundaryTree.Type UNICODE_EXTENDED_GRAPHEME_CLUSTER
-
NON_WORD
public static final BoundaryTree.Type NON_WORD
-
INPUT_START
public static final BoundaryTree.Type INPUT_START
-
PREVIOUS_MATCH_END
public static final BoundaryTree.Type PREVIOUS_MATCH_END
-
INPUT_END_FINAL_TERMINATOR
public static final BoundaryTree.Type INPUT_END_FINAL_TERMINATOR
-
INPUT_END
public static final BoundaryTree.Type INPUT_END
-
-
Method Detail
-
values
public static BoundaryTree.Type[] 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 (BoundaryTree.Type c : BoundaryTree.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BoundaryTree.Type 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
-
forKey
@Nullable public static BoundaryTree.Type forKey(char k)
-
-