public class AccessOperator extends BinaryOperator
| Modifier and Type | Field and Description |
|---|---|
static AccessOperator |
MEMBER_ACCESS
.
|
static AccessOperator |
MEMBER_DEREF_ACCESS
.*
|
static AccessOperator |
POINTER_ACCESS
->
|
static AccessOperator |
POINTER_MEMBER_ACCESS
->*
|
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| Modifier and Type | Method and Description |
|---|---|
static AccessOperator |
fromString(java.lang.String s)
Returs an AccessOperator that matches the specified string.
|
void |
print(java.io.PrintWriter o)
Print the code for the IR represented by the object.
|
java.lang.String |
toString() |
void |
verify()
Verifies this operator is valid.
|
isCompare, isLogicalpublic static final AccessOperator MEMBER_ACCESS
public static final AccessOperator POINTER_ACCESS
public static final AccessOperator MEMBER_DEREF_ACCESS
public static final AccessOperator POINTER_MEMBER_ACCESS
public static AccessOperator fromString(java.lang.String s)
s - the string to be matched.public void print(java.io.PrintWriter o)
Printableprint in interface Printableprint in class BinaryOperatoro - The writer on which to print the data.public java.lang.String toString()
toString in class BinaryOperatorpublic void verify()
throws java.lang.IllegalStateException
verify in class BinaryOperatorjava.lang.IllegalStateException - if the operator is invalid.