Enum ReTokenType
- java.lang.Object
-
- java.lang.Enum<ReTokenType>
-
- net.sourceforge.plantuml.regexdiagram.ReTokenType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ReTokenType>
public enum ReTokenType extends java.lang.Enum<ReTokenType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALTERNATIVE
ANCHOR
CLASS
CONCATENATION_IMPLICIT
ESCAPED_CHAR
GROUP
LOOK_AHEAD
LOOK_BEHIND
NAMED_GROUP
PARENTHESIS_CLOSE
PARENTHESIS_OPEN
QUANTIFIER
SIMPLE_CHAR
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isNamedGroupOrLookAheadOrLookBehind()
static boolean
needImplicitConcatenation(ReTokenType token1, ReTokenType token2)
static ReTokenType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ReTokenType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SIMPLE_CHAR
public static final ReTokenType SIMPLE_CHAR
-
ESCAPED_CHAR
public static final ReTokenType ESCAPED_CHAR
-
CLASS
public static final ReTokenType CLASS
-
QUANTIFIER
public static final ReTokenType QUANTIFIER
-
ANCHOR
public static final ReTokenType ANCHOR
-
GROUP
public static final ReTokenType GROUP
-
NAMED_GROUP
public static final ReTokenType NAMED_GROUP
-
LOOK_AHEAD
public static final ReTokenType LOOK_AHEAD
-
LOOK_BEHIND
public static final ReTokenType LOOK_BEHIND
-
ALTERNATIVE
public static final ReTokenType ALTERNATIVE
-
PARENTHESIS_OPEN
public static final ReTokenType PARENTHESIS_OPEN
-
PARENTHESIS_CLOSE
public static final ReTokenType PARENTHESIS_CLOSE
-
CONCATENATION_IMPLICIT
public static final ReTokenType CONCATENATION_IMPLICIT
-
-
Method Detail
-
values
public static ReTokenType[] 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 (ReTokenType c : ReTokenType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ReTokenType valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
isNamedGroupOrLookAheadOrLookBehind
public boolean isNamedGroupOrLookAheadOrLookBehind()
-
needImplicitConcatenation
public static boolean needImplicitConcatenation(ReTokenType token1, ReTokenType token2)
-
-