Enum Class IdlToken
- All Implemented Interfaces:
Serializable,Comparable<IdlToken>,Constable
Represents a parsed token from the Smithy IDL.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptiongetDebug()getDebug(CharSequence lexeme) booleanisString()Returns true if this token is a string (either regular or raw).booleanReturns true if this token is a text block (either regular or raw).booleanstatic IdlTokenReturns the enum constant of this class with the specified name.static IdlToken[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SPACE
-
NEWLINE
-
COMMA
-
COMMENT
-
DOC_COMMENT
-
AT
-
STRING
-
TEXT_BLOCK
-
RAW_STRING
-
RAW_TEXT_BLOCK
-
TAG
-
COLON
-
WALRUS
-
IDENTIFIER
-
DOT
-
POUND
-
DOLLAR
-
NUMBER
-
LBRACE
-
RBRACE
-
LBRACKET
-
RBRACKET
-
LPAREN
-
RPAREN
-
EQUAL
-
EOF
-
ERROR
-
-
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
-
getDebug
-
getDebug
-
isWhitespace
public boolean isWhitespace() -
isString
public boolean isString()Returns true if this token is a string (either regular or raw). -
isTextBlock
public boolean isTextBlock()Returns true if this token is a text block (either regular or raw).
-