public static enum Tokenizer.TokenType extends Enum<Tokenizer.TokenType>
| Enum Constant and Description |
|---|
T_BRACKET_CLOSE |
T_BRACKET_OPEN |
T_DIVIDE |
T_END |
T_EXPONENT |
T_MINUS |
T_MULTIPLY |
T_NEWLINE |
T_PLUS |
T_SPACE |
T_VARIABLE |
| Modifier and Type | Method and Description |
|---|---|
static Tokenizer.TokenType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Tokenizer.TokenType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Tokenizer.TokenType T_VARIABLE
public static final Tokenizer.TokenType T_PLUS
public static final Tokenizer.TokenType T_MINUS
public static final Tokenizer.TokenType T_MULTIPLY
public static final Tokenizer.TokenType T_DIVIDE
public static final Tokenizer.TokenType T_EXPONENT
public static final Tokenizer.TokenType T_SPACE
public static final Tokenizer.TokenType T_NEWLINE
public static final Tokenizer.TokenType T_BRACKET_OPEN
public static final Tokenizer.TokenType T_BRACKET_CLOSE
public static final Tokenizer.TokenType T_END
public static Tokenizer.TokenType[] values()
for (Tokenizer.TokenType c : Tokenizer.TokenType.values()) System.out.println(c);
public static Tokenizer.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 nullCopyright © 2022. All rights reserved.