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, isLogical
public 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)
Printable
print
in interface Printable
print
in class BinaryOperator
o
- The writer on which to print the data.public java.lang.String toString()
toString
in class BinaryOperator
public void verify() throws java.lang.IllegalStateException
verify
in class BinaryOperator
java.lang.IllegalStateException
- if the operator is invalid.