com.adamcornett.cminus.tree
Enum OpTree.OperationType
java.lang.Object
java.lang.Enum<OpTree.OperationType>
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>
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
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