public class ArithExpr extends Expr
| Modifier and Type | Field and Description |
|---|---|
static char |
ADD |
static char |
AND |
static char |
CMP |
static char |
CMPG |
static char |
CMPL |
static char |
DIV |
static char |
IOR |
static char |
MUL |
static char |
REM |
static char |
SUB |
static char |
XOR |
| Constructor and Description |
|---|
ArithExpr(char operation,
Expr left,
Expr right,
Type type)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone() |
boolean |
equalsExpr(Expr other)
Compare this arithmetic expression to another Expression.
|
int |
exprHashCode()
Returns the hash code for this expresion.
|
Expr |
left() |
int |
operation() |
Expr |
right() |
void |
visit(TreeVisitor visitor) |
void |
visitForceChildren(TreeVisitor visitor)
Visit the children of this node.
|
cleanupOnly, comparator, copyInto, def, isDef, setDef, setType, stmt, typeblock, cleanup, copyInto, hasParent, key, parent, replaceWith, replaceWith, setKey, setParent, setValueNumber, toString, valueNumber, visitChildren, visitOnlypublic static final char ADD
public static final char SUB
public static final char DIV
public static final char MUL
public static final char REM
public static final char AND
public static final char IOR
public static final char XOR
public static final char CMP
public static final char CMPL
public static final char CMPG
public int operation()
public Expr left()
public Expr right()
public void visitForceChildren(TreeVisitor visitor)
NodevisitForceChildren in class Nodepublic void visit(TreeVisitor visitor)
public int exprHashCode()
ExprexprHashCode in class Exprpublic boolean equalsExpr(Expr other)
equalsExpr in class Exprother - Expr to which to compare this.