Enum Symbol.Type

java.lang.Object
  extended by java.lang.Enum<Symbol.Type>
      extended by Symbol.Type
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Symbol.Type>
Enclosing class:
Symbol

public static enum Symbol.Type
extends java.lang.Enum<Symbol.Type>


Enum Constant Summary
CONSTANT
          Symbol is a constant value.
LABEL
          Symbol is a label.
NONE
          Symbols with no type.
REGISTER
          Symbol is a register.
 
Method Summary
static Symbol.Type valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Symbol.Type[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NONE

public static final Symbol.Type NONE
Symbols with no type.


REGISTER

public static final Symbol.Type REGISTER
Symbol is a register.


CONSTANT

public static final Symbol.Type CONSTANT
Symbol is a constant value.


LABEL

public static final Symbol.Type LABEL
Symbol is a label.

Method Detail

values

public static final Symbol.Type[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(Symbol.Type c : Symbol.Type.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static Symbol.Type 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