public static enum StyleScanner.Token extends java.lang.Enum<StyleScanner.Token>
Enum Constant | Description |
---|---|
TOKEN_BEGIN_BRACE |
|
TOKEN_COLON |
|
TOKEN_COMMENT |
|
TOKEN_END_BRACE |
|
TOKEN_EOI |
|
TOKEN_ERROR_BUF_NULL |
|
TOKEN_ERROR_EOI_IN_COMMENT |
|
TOKEN_PERIOD |
|
TOKEN_SEMICOLON |
|
TOKEN_STRING |
|
TOKEN_UNKNOWN |
|
TOKEN_WHITESPACE |
Modifier and Type | Method | Description |
---|---|---|
int |
getCode() |
Returns the unique code associated with this
Token . |
static StyleScanner.Token |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static StyleScanner.Token[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StyleScanner.Token TOKEN_ERROR_EOI_IN_COMMENT
public static final StyleScanner.Token TOKEN_ERROR_BUF_NULL
public static final StyleScanner.Token TOKEN_UNKNOWN
public static final StyleScanner.Token TOKEN_WHITESPACE
public static final StyleScanner.Token TOKEN_STRING
public static final StyleScanner.Token TOKEN_COLON
public static final StyleScanner.Token TOKEN_PERIOD
public static final StyleScanner.Token TOKEN_BEGIN_BRACE
public static final StyleScanner.Token TOKEN_END_BRACE
public static final StyleScanner.Token TOKEN_SEMICOLON
public static final StyleScanner.Token TOKEN_COMMENT
public static final StyleScanner.Token TOKEN_EOI
public static StyleScanner.Token[] values()
for (StyleScanner.Token c : StyleScanner.Token.values()) System.out.println(c);
public static StyleScanner.Token valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getCode()
Token
.Copyright © 2012–2018 Jett Team. All rights reserved.