CS 536 Fall 2007, Project 5

Enum ASTNode.Opcode

Object
  extended by Enum<ASTNode.Opcode>
      extended by ASTNode.Opcode
All Implemented Interfaces:
Serializable, Comparable<ASTNode.Opcode>
Enclosing class:
ASTNode

static enum ASTNode.Opcode
extends Enum<ASTNode.Opcode>

Operator codes.


Enum Constant Summary
AND
           
DIV
           
EQ
           
GREATER
           
GREATEREQ
           
LESS
           
LESSEQ
           
MINUS
           
NOT
           
NOTEQ
           
OR
           
PLUS
           
TIMES
           
UMINUS
           
 
Method Summary
 String toString()
          Returns the string representation of this Opcode.
static ASTNode.Opcode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ASTNode.Opcode[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

PLUS

public static final ASTNode.Opcode PLUS

MINUS

public static final ASTNode.Opcode MINUS

UMINUS

public static final ASTNode.Opcode UMINUS

TIMES

public static final ASTNode.Opcode TIMES

DIV

public static final ASTNode.Opcode DIV

NOT

public static final ASTNode.Opcode NOT

AND

public static final ASTNode.Opcode AND

OR

public static final ASTNode.Opcode OR

EQ

public static final ASTNode.Opcode EQ

NOTEQ

public static final ASTNode.Opcode NOTEQ

LESS

public static final ASTNode.Opcode LESS

GREATER

public static final ASTNode.Opcode GREATER

LESSEQ

public static final ASTNode.Opcode LESSEQ

GREATEREQ

public static final ASTNode.Opcode GREATEREQ
Method Detail

values

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

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

valueOf

public static ASTNode.Opcode 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

toString

public String toString()
Returns the string representation of this Opcode.

Overrides:
toString in class Enum<ASTNode.Opcode>
Returns:
the pname.

CS 536 Fall 2007, Project 5