public enum TokenType extends Enum<TokenType>
| Enum Constant and Description |
|---|
ACCESSOR |
ELSE |
END |
END_OF_INPUT |
FOR |
IF |
IN |
PROPERTY_KEY |
TEXT |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(String string) |
static TokenType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TokenType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TokenType PROPERTY_KEY
public static final TokenType IF
public static final TokenType FOR
public static final TokenType ELSE
public static final TokenType IN
public static final TokenType END
public static final TokenType ACCESSOR
public static final TokenType TEXT
public static final TokenType END_OF_INPUT
public static TokenType[] values()
for (TokenType c : TokenType.values()) System.out.println(c);
public static TokenType 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 nullpublic boolean accept(String string)
Copyright © 2015. All rights reserved.