cetus.hir
Class AccessOperator

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

public class AccessOperator
extends BinaryOperator

Infix operators that accesses righthand side member of lefthand side structure, class, or union.


Field Summary
static AccessOperator MEMBER_ACCESS
          .
static AccessOperator MEMBER_DEREF_ACCESS
          .*
static AccessOperator POINTER_ACCESS
          ->
static AccessOperator POINTER_MEMBER_ACCESS
          ->*
 
Fields inherited from class cetus.hir.BinaryOperator
ADD, BITWISE_AND, BITWISE_EXCLUSIVE_OR, BITWISE_INCLUSIVE_OR, COMPARE_EQ, COMPARE_GE, COMPARE_GT, COMPARE_LE, COMPARE_LT, COMPARE_NE, DIVIDE, INSTANCEOF, LOGICAL_AND, LOGICAL_OR, MODULUS, MULTIPLY, SHIFT_LEFT, SHIFT_RIGHT, SUBTRACT, value
 
Method Summary
static AccessOperator 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

MEMBER_ACCESS

public static final AccessOperator MEMBER_ACCESS
.


POINTER_ACCESS

public static final AccessOperator POINTER_ACCESS
->


MEMBER_DEREF_ACCESS

public static final AccessOperator MEMBER_DEREF_ACCESS
.*


POINTER_MEMBER_ACCESS

public static final AccessOperator POINTER_MEMBER_ACCESS
->*

Method Detail

fromString

public static AccessOperator 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.