public enum SyntaxErrorKind extends Enum<SyntaxErrorKind>
Enum Constant and Description |
---|
INVALID_IDENTIFIER
Occurs may invalid identifier.
|
INVALID_TOKEN
Occurs unknown token.
|
INVALID_TYPE_NAME
Occurs may invalid type name.
|
UNEXPECTED_EOF
Occurs unexpected EOF.
|
UNEXPECTED_TOKEN_GUESS
Occurs unexpected token and the next expected token is guessed.
|
UNEXPECTED_TOKEN_UNIQUE
Occurs unexpected token and the next expected token is unique.
|
UNEXPECTED_TOKEN_UNKNOWN
Occurs unexpected token and the next expected token is unknown.
|
Modifier and Type | Method and Description |
---|---|
String |
getMessage(Object[] arguments)
Returns a diagnostic message for the arguments.
|
static SyntaxErrorKind |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SyntaxErrorKind[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SyntaxErrorKind UNEXPECTED_TOKEN_UNIQUE
public static final SyntaxErrorKind UNEXPECTED_TOKEN_GUESS
public static final SyntaxErrorKind UNEXPECTED_TOKEN_UNKNOWN
public static final SyntaxErrorKind UNEXPECTED_EOF
public static final SyntaxErrorKind INVALID_IDENTIFIER
public static final SyntaxErrorKind INVALID_TYPE_NAME
public static final SyntaxErrorKind INVALID_TOKEN
public static SyntaxErrorKind[] values()
for (SyntaxErrorKind c : SyntaxErrorKind.values()) System.out.println(c);
public static SyntaxErrorKind valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2011–2017 Asakusa Framework Team. All rights reserved.