org.rubato.scheme
Enum Token.TokenType
java.lang.Object
java.lang.Enum<Token.TokenType>
org.rubato.scheme.Token.TokenType
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<Token.TokenType>
- Enclosing class:
- Token
public static enum Token.TokenType
- extends java.lang.Enum<Token.TokenType>
This enumeration type classifies all Scheme tokens.
- Author:
- Gérard Milmeister
Method Summary |
static Token.TokenType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Token.TokenType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
Methods inherited from class java.lang.Enum |
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
LPAREN
public static final Token.TokenType LPAREN
RPAREN
public static final Token.TokenType RPAREN
INTEGER
public static final Token.TokenType INTEGER
REAL
public static final Token.TokenType REAL
RATIONAL
public static final Token.TokenType RATIONAL
COMPLEX
public static final Token.TokenType COMPLEX
SYMBOL
public static final Token.TokenType SYMBOL
STRING
public static final Token.TokenType STRING
BOOLEAN
public static final Token.TokenType BOOLEAN
DOT
public static final Token.TokenType DOT
HASH
public static final Token.TokenType HASH
CHAR
public static final Token.TokenType CHAR
SQUOTE
public static final Token.TokenType SQUOTE
ARRAY
public static final Token.TokenType ARRAY
ERROR
public static final Token.TokenType ERROR
EOF
public static final Token.TokenType EOF
values
public static Token.TokenType[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (Token.TokenType c : Token.TokenType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Token.TokenType valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null