com.adamcornett.cminus.tree
Enum OpTree.OperationType

java.lang.Object
  extended by java.lang.Enum<OpTree.OperationType>
      extended by com.adamcornett.cminus.tree.OpTree.OperationType
All Implemented Interfaces:
Serializable, Comparable<OpTree.OperationType>
Enclosing class:
OpTree

public static enum OpTree.OperationType
extends Enum<OpTree.OperationType>


Enum Constant Summary
Add
           
Divide
           
Equals
           
GreaterThan
           
GreaterThanEqual
           
LessThan
           
LessThanEqual
           
Multiply
           
NotEqual
           
Subtract
           
 
Method Summary
static OpTree.OperationType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static OpTree.OperationType[] 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

Add

public static final OpTree.OperationType Add

Divide

public static final OpTree.OperationType Divide

Equals

public static final OpTree.OperationType Equals

GreaterThan

public static final OpTree.OperationType GreaterThan

GreaterThanEqual

public static final OpTree.OperationType GreaterThanEqual

LessThan

public static final OpTree.OperationType LessThan

LessThanEqual

public static final OpTree.OperationType LessThanEqual

Multiply

public static final OpTree.OperationType Multiply

NotEqual

public static final OpTree.OperationType NotEqual

Subtract

public static final OpTree.OperationType Subtract
Method Detail

values

public static OpTree.OperationType[] 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 (OpTree.OperationType c : OpTree.OperationType.values())
    System.out.println(c);

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

valueOf

public static OpTree.OperationType 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 name
NullPointerException - if the argument is null