cetus.hir
Class AssignmentOperator

java.lang.Object
  extended by cetus.hir.BinaryOperator
      extended by cetus.hir.AssignmentOperator
All Implemented Interfaces:
Printable

public class AssignmentOperator
extends BinaryOperator

Infix operators that assign the value of their righthand side to their lefthand side.


Field Summary
static AssignmentOperator ADD
          +=
static AssignmentOperator BITWISE_AND
          &=
static AssignmentOperator BITWISE_EXCLUSIVE_OR
          ^=
static AssignmentOperator BITWISE_INCLUSIVE_OR
          |=
static AssignmentOperator DIVIDE
          /=
static AssignmentOperator MODULUS
          %=
static AssignmentOperator MULTIPLY
          *=
static AssignmentOperator NORMAL
          =
static AssignmentOperator SHIFT_LEFT
          <<=
static AssignmentOperator SHIFT_RIGHT
          >>=
static AssignmentOperator SUBTRACT
          -=
 
Fields inherited from class cetus.hir.BinaryOperator
COMPARE_EQ, COMPARE_GE, COMPARE_GT, COMPARE_LE, COMPARE_LT, COMPARE_NE, INSTANCEOF, LOGICAL_AND, LOGICAL_OR, value
 
Method Summary
static AssignmentOperator fromString(java.lang.String s)
           
 void print(java.io.OutputStream stream)
          Print the code for the IR represented by the object.
 java.lang.String toString()
           
 void verify()
          Verifies this operator is valid.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ADD

public static final AssignmentOperator ADD
+=


BITWISE_AND

public static final AssignmentOperator BITWISE_AND
&=


BITWISE_EXCLUSIVE_OR

public static final AssignmentOperator BITWISE_EXCLUSIVE_OR
^=


BITWISE_INCLUSIVE_OR

public static final AssignmentOperator BITWISE_INCLUSIVE_OR
|=


DIVIDE

public static final AssignmentOperator DIVIDE
/=


NORMAL

public static final AssignmentOperator NORMAL
=


MODULUS

public static final AssignmentOperator MODULUS
%=


MULTIPLY

public static final AssignmentOperator MULTIPLY
*=


SHIFT_LEFT

public static final AssignmentOperator SHIFT_LEFT
<<=


SHIFT_RIGHT

public static final AssignmentOperator SHIFT_RIGHT
>>=


SUBTRACT

public static final AssignmentOperator SUBTRACT
-=

Method Detail

fromString

public static AssignmentOperator fromString(java.lang.String s)

print

public void print(java.io.OutputStream stream)
Description copied from interface: Printable
Print the code for the IR represented by the object. Always calls object_print_method(this, stream). If the object's print method is null, nothing is printed; this provides an easy mechanism to temporarily hide something.

Specified by:
print in interface Printable
Overrides:
print in class BinaryOperator
Parameters:
stream - The stream on which to print the data.

toString

public java.lang.String toString()
Overrides:
toString in class BinaryOperator

verify

public void verify()
            throws java.lang.IllegalStateException
Verifies this operator is valid.

Overrides:
verify in class BinaryOperator
Throws:
java.lang.IllegalStateException - if the operator is invalid.