Enum IdlToken
- java.lang.Object
-
- java.lang.Enum<IdlToken>
-
- software.amazon.smithy.model.loader.IdlToken
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDebug()
java.lang.String
getDebug(java.lang.CharSequence lexeme)
boolean
isWhitespace()
static IdlToken
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static IdlToken[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SPACE
public static final IdlToken SPACE
-
NEWLINE
public static final IdlToken NEWLINE
-
COMMA
public static final IdlToken COMMA
-
COMMENT
public static final IdlToken COMMENT
-
DOC_COMMENT
public static final IdlToken DOC_COMMENT
-
AT
public static final IdlToken AT
-
STRING
public static final IdlToken STRING
-
TEXT_BLOCK
public static final IdlToken TEXT_BLOCK
-
COLON
public static final IdlToken COLON
-
WALRUS
public static final IdlToken WALRUS
-
IDENTIFIER
public static final IdlToken IDENTIFIER
-
DOT
public static final IdlToken DOT
-
POUND
public static final IdlToken POUND
-
DOLLAR
public static final IdlToken DOLLAR
-
NUMBER
public static final IdlToken NUMBER
-
LBRACE
public static final IdlToken LBRACE
-
RBRACE
public static final IdlToken RBRACE
-
LBRACKET
public static final IdlToken LBRACKET
-
RBRACKET
public static final IdlToken RBRACKET
-
LPAREN
public static final IdlToken LPAREN
-
RPAREN
public static final IdlToken RPAREN
-
EQUAL
public static final IdlToken EQUAL
-
EOF
public static final IdlToken EOF
-
ERROR
public static final IdlToken ERROR
-
-
Method Detail
-
values
public static IdlToken[] 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 (IdlToken c : IdlToken.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IdlToken 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
-
getDebug
public java.lang.String getDebug()
-
getDebug
public java.lang.String getDebug(java.lang.CharSequence lexeme)
-
isWhitespace
public boolean isWhitespace()
-
-