edu.ksu.cis.projects.bogor.ast
Enum BinaryOp

java.lang.Object
  extended by java.lang.Enum<BinaryOp>
      extended by edu.ksu.cis.projects.bogor.ast.BinaryOp
All Implemented Interfaces:
Serializable, Comparable<BinaryOp>

public enum BinaryOp
extends Enum<BinaryOp>

This class contains the definition of binary operators. Needs to be careful since the operators are represented as int values.

Version:
CVS $Revision: 1.4 $ $Date: 2005/05/06 17:25:17 $
Author:
Robby

Enum Constant Summary
ADD
           
AND
           
BIT_AND
           
BIT_OR
           
BIT_XOR
           
DIV
           
EQ
           
GT
           
GTE
           
IMPLIES
           
LT
           
LTE
           
MOD
           
MUL
           
NEQ
           
OR
           
SHL
           
SHR
           
SUB
           
USHR
           
 
Method Summary
 String toString()
           
static BinaryOp valueOf(String name)
          Returns the enum constant of this type with the specified name.
static BinaryOp[] 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, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ADD

public static final BinaryOp ADD

SUB

public static final BinaryOp SUB

MUL

public static final BinaryOp MUL

DIV

public static final BinaryOp DIV

MOD

public static final BinaryOp MOD

AND

public static final BinaryOp AND

OR

public static final BinaryOp OR

IMPLIES

public static final BinaryOp IMPLIES

EQ

public static final BinaryOp EQ

NEQ

public static final BinaryOp NEQ

GT

public static final BinaryOp GT

GTE

public static final BinaryOp GTE

LT

public static final BinaryOp LT

LTE

public static final BinaryOp LTE

SHL

public static final BinaryOp SHL

SHR

public static final BinaryOp SHR

USHR

public static final BinaryOp USHR

BIT_AND

public static final BinaryOp BIT_AND

BIT_OR

public static final BinaryOp BIT_OR

BIT_XOR

public static final BinaryOp BIT_XOR
Method Detail

values

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

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

valueOf

public static BinaryOp 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()
Overrides:
toString in class Enum<BinaryOp>