Package org.eclipse.epsilon.egl.parse
Enum EglToken.TokenType
- java.lang.Object
-
- java.lang.Enum<EglToken.TokenType>
-
- org.eclipse.epsilon.egl.parse.EglToken.TokenType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<EglToken.TokenType>
- Enclosing class:
- EglToken
public static enum EglToken.TokenType extends java.lang.Enum<EglToken.TokenType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description END_COMMENT_TAG
END_TAG
EOF
NEW_LINE
PLAIN_TEXT
PROGRAM
START_COMMENT_TAG
START_MARKER_TAG
START_OUTPUT_TAG
START_TAG
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getIdentifier()
static EglToken.TokenType
typeOf(int identifier)
static EglToken.TokenType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static EglToken.TokenType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PROGRAM
public static final EglToken.TokenType PROGRAM
-
PLAIN_TEXT
public static final EglToken.TokenType PLAIN_TEXT
-
NEW_LINE
public static final EglToken.TokenType NEW_LINE
-
START_TAG
public static final EglToken.TokenType START_TAG
-
START_OUTPUT_TAG
public static final EglToken.TokenType START_OUTPUT_TAG
-
END_TAG
public static final EglToken.TokenType END_TAG
-
START_COMMENT_TAG
public static final EglToken.TokenType START_COMMENT_TAG
-
START_MARKER_TAG
public static final EglToken.TokenType START_MARKER_TAG
-
END_COMMENT_TAG
public static final EglToken.TokenType END_COMMENT_TAG
-
EOF
public static final EglToken.TokenType EOF
-
-
Method Detail
-
values
public static EglToken.TokenType[] 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 (EglToken.TokenType c : EglToken.TokenType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EglToken.TokenType 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
-
getIdentifier
public int getIdentifier()
-
typeOf
public static EglToken.TokenType typeOf(int identifier)
-
-