Absyn
Enum MiniJava.Exp.Operator

java.lang.Object
  extended by java.lang.Enum<MiniJava.Exp.Operator>
      extended by Absyn.MiniJava.Exp.Operator
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<MiniJava.Exp.Operator>
Enclosing class:
MiniJava.Exp

public static enum MiniJava.Exp.Operator
extends java.lang.Enum<MiniJava.Exp.Operator>


Enum Constant Summary
ADD
           
AND
           
ARSHIFT
           
ASSIGN
           
BITAND
           
BITOR
           
BITXOR
           
DIV
           
DOT
           
EQ
           
GE
           
GT
           
LBRACK
           
LE
           
LPAREN
           
LSHIFT
           
LT
           
MOD
           
MUL
           
NE
           
NEG
           
NEW
           
NOT
           
OR
           
QUESTION
           
RSHIFT
           
SUB
           
 
Field Summary
 int precedence
           
 
Method Summary
 java.lang.String toString()
           
static MiniJava.Exp.Operator valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static MiniJava.Exp.Operator[] 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

ASSIGN

public static final MiniJava.Exp.Operator ASSIGN

QUESTION

public static final MiniJava.Exp.Operator QUESTION

OR

public static final MiniJava.Exp.Operator OR

AND

public static final MiniJava.Exp.Operator AND

BITOR

public static final MiniJava.Exp.Operator BITOR

BITXOR

public static final MiniJava.Exp.Operator BITXOR

BITAND

public static final MiniJava.Exp.Operator BITAND

EQ

public static final MiniJava.Exp.Operator EQ

NE

public static final MiniJava.Exp.Operator NE

LT

public static final MiniJava.Exp.Operator LT

GT

public static final MiniJava.Exp.Operator GT

LE

public static final MiniJava.Exp.Operator LE

GE

public static final MiniJava.Exp.Operator GE

LSHIFT

public static final MiniJava.Exp.Operator LSHIFT

RSHIFT

public static final MiniJava.Exp.Operator RSHIFT

ARSHIFT

public static final MiniJava.Exp.Operator ARSHIFT

ADD

public static final MiniJava.Exp.Operator ADD

SUB

public static final MiniJava.Exp.Operator SUB

MUL

public static final MiniJava.Exp.Operator MUL

DIV

public static final MiniJava.Exp.Operator DIV

MOD

public static final MiniJava.Exp.Operator MOD

NEW

public static final MiniJava.Exp.Operator NEW

NOT

public static final MiniJava.Exp.Operator NOT

NEG

public static final MiniJava.Exp.Operator NEG

LPAREN

public static final MiniJava.Exp.Operator LPAREN

LBRACK

public static final MiniJava.Exp.Operator LBRACK

DOT

public static final MiniJava.Exp.Operator DOT
Field Detail

precedence

public int precedence
Method Detail

values

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

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

valueOf

public static MiniJava.Exp.Operator 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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum<MiniJava.Exp.Operator>