| |
|
| java.lang.Object EDU.purdue.cs.bloat.tree.Node EDU.purdue.cs.bloat.tree.Expr EDU.purdue.cs.bloat.tree.ArithExpr
ArithExpr | public class ArithExpr extends Expr (Code) | | ArithExpr represents a binary arithmetic expression. It consists of two
operands and an operator.
|
Field Summary | |
final public static char | ADD | final public static char | AND | final public static char | CMP | final public static char | CMPG | final public static char | CMPL | final public static char | DIV | final public static char | IOR | final public static char | MUL | final public static char | REM | final public static char | SUB | final public static char | XOR | Expr | left | char | operation | Expr | right |
ADD | final public static char ADD(Code) | | |
AND | final public static char AND(Code) | | |
CMP | final public static char CMP(Code) | | |
CMPG | final public static char CMPG(Code) | | |
CMPL | final public static char CMPL(Code) | | |
DIV | final public static char DIV(Code) | | |
IOR | final public static char IOR(Code) | | |
MUL | final public static char MUL(Code) | | |
REM | final public static char REM(Code) | | |
SUB | final public static char SUB(Code) | | |
XOR | final public static char XOR(Code) | | |
operation | char operation(Code) | | |
ArithExpr | public ArithExpr(char operation, Expr left, Expr right, Type type)(Code) | | Constructor.
Parameters: operation - Arithmetic operation that this expression performs. Parameters: left - Left-hand argument to operation. Parameters: right - Right-hand argument to operation. Parameters: type - The type of this expression. |
equalsExpr | public boolean equalsExpr(Expr other)(Code) | | Compare this arithmetic expression to another Expression.
True, if both expressions have the same contents. |
exprHashCode | public int exprHashCode()(Code) | | |
operation | public int operation()(Code) | | |
|
|
|