Enum Class TokenKind
- All Implemented Interfaces:
Serializable, Comparable<TokenKind>, Constable
Enumeration of all the token types that may be found in a DSL definition stream. DSL
variants may use some subset of these tokens. For example stream DSL doesn't use the LT
token, it is used by the task DSL. The tokenizer in use will decide which subset are
built for a particular DSL.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
-
Enum Constant Details
-
IDENTIFIER
-
DOUBLE_MINUS
-
EQUALS
-
AND
-
ANDAND
-
DOUBLEPIPE
-
ARROW
-
PIPE
-
OPEN_PAREN
-
CLOSE_PAREN
-
NEWLINE
-
STAR
-
COLON
-
GT
-
LT
-
SEMICOLON
-
REFERENCE
-
DOT
-
LITERAL_STRING
-
SLASH
-
HASH
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
toString
-
hasPayload
public boolean hasPayload() -
getLength
public int getLength() -
getTokenChars
public char[] getTokenChars()- Returns:
- the chars representing simple fixed token (eg. :
> --)
-