de.unkrig.commons.text.expression
Enum Scanner.TokenType

java.lang.Object
  extended by java.lang.Enum<Scanner.TokenType>
      extended by de.unkrig.commons.text.expression.Scanner.TokenType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Scanner.TokenType>
Enclosing class:
Scanner

public static enum Scanner.TokenType
extends java.lang.Enum<Scanner.TokenType>

Token types for the ExpressionEvaluator scanner.


Enum Constant Summary
C_COMMENT
           
CHARACTER_LITERAL
           
END_OF_IGNORABLES
           
FLOATING_POINT_LITERAL
           
IDENTIFIER
           
INTEGER_LITERAL
           
KEYWORD
           
OPERATOR
           
SPACE
           
STRING_LITERAL
           
 
Method Summary
static Scanner.TokenType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Scanner.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
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

SPACE

public static final Scanner.TokenType SPACE

C_COMMENT

public static final Scanner.TokenType C_COMMENT

END_OF_IGNORABLES

public static final Scanner.TokenType END_OF_IGNORABLES

KEYWORD

public static final Scanner.TokenType KEYWORD

IDENTIFIER

public static final Scanner.TokenType IDENTIFIER

OPERATOR

public static final Scanner.TokenType OPERATOR

CHARACTER_LITERAL

public static final Scanner.TokenType CHARACTER_LITERAL

STRING_LITERAL

public static final Scanner.TokenType STRING_LITERAL

INTEGER_LITERAL

public static final Scanner.TokenType INTEGER_LITERAL

FLOATING_POINT_LITERAL

public static final Scanner.TokenType FLOATING_POINT_LITERAL
Method Detail

values

public static Scanner.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 (Scanner.TokenType c : Scanner.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 Scanner.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