Package cc.redberry.rings.io
Enum Tokenizer.TokenType
- java.lang.Object
-
- java.lang.Enum<Tokenizer.TokenType>
-
- cc.redberry.rings.io.Tokenizer.TokenType
-
- All Implemented Interfaces:
Serializable
,Comparable<Tokenizer.TokenType>
,java.lang.constant.Constable
- Enclosing class:
- Tokenizer
public static enum Tokenizer.TokenType extends Enum<Tokenizer.TokenType>
token type
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
-
Enum Constant Summary
Enum Constants Enum Constant 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
-
Method Summary
Modifier and Type Method 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.
-
-
-
Enum Constant Detail
-
T_VARIABLE
public static final Tokenizer.TokenType T_VARIABLE
-
T_PLUS
public static final Tokenizer.TokenType T_PLUS
-
T_MINUS
public static final Tokenizer.TokenType T_MINUS
-
T_MULTIPLY
public static final Tokenizer.TokenType T_MULTIPLY
-
T_DIVIDE
public static final Tokenizer.TokenType T_DIVIDE
-
T_EXPONENT
public static final Tokenizer.TokenType T_EXPONENT
-
T_SPACE
public static final Tokenizer.TokenType T_SPACE
-
T_NEWLINE
public static final Tokenizer.TokenType T_NEWLINE
-
T_BRACKET_OPEN
public static final Tokenizer.TokenType T_BRACKET_OPEN
-
T_BRACKET_CLOSE
public static final Tokenizer.TokenType T_BRACKET_CLOSE
-
T_END
public static final Tokenizer.TokenType T_END
-
-
Method Detail
-
values
public static Tokenizer.TokenType[] values()
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Tokenizer.TokenType valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-