| java.lang.Object EDU.purdue.cs.bloat.tree.Node EDU.purdue.cs.bloat.tree.Expr
All known Subclasses: EDU.purdue.cs.bloat.tree.ArithExpr, EDU.purdue.cs.bloat.tree.CastExpr, EDU.purdue.cs.bloat.tree.CatchExpr, EDU.purdue.cs.bloat.tree.CallExpr, EDU.purdue.cs.bloat.tree.CheckExpr, EDU.purdue.cs.bloat.tree.NegExpr, EDU.purdue.cs.bloat.tree.StoreExpr, EDU.purdue.cs.bloat.tree.ShiftExpr, EDU.purdue.cs.bloat.tree.CondExpr, EDU.purdue.cs.bloat.tree.NewMultiArrayExpr, EDU.purdue.cs.bloat.tree.ArrayLengthExpr, EDU.purdue.cs.bloat.tree.NewExpr, EDU.purdue.cs.bloat.tree.NewArrayExpr, EDU.purdue.cs.bloat.tree.DefExpr, EDU.purdue.cs.bloat.tree.ReturnAddressExpr, EDU.purdue.cs.bloat.tree.ConstantExpr,
Expr | abstract public class Expr extends Node implements Cloneable(Code) | | Expr is the superclass for a number of other classes representing expressions
in byte code. Expressions are typed and may be nested.
See Also: DefExpr |
Constructor Summary | |
public | Expr(Type type) Constructor. |
Method Summary | |
public void | cleanupOnly() Cleans up this expression only, not its children. | abstract public Object | clone() | public Object | comparator() Returns an Object that can be used to compare other Expr to this. | protected Expr | copyInto(Expr expr) Copies the contents of another expression in this one. | public DefExpr | def() Returns the expression in which this Expr is defined. | abstract public boolean | equalsExpr(Expr other) Compares this expression to another. | abstract public int | exprHashCode() Returns the hash code for this expresion. | public boolean | isDef() Returns whether or not this expression is a defining occurrence. | public void | setDef(DefExpr def) Sets the expression that defines this expression. | public boolean | setType(Type type) Sets the type of this expression. | public Stmt | stmt() Returns the statement to which this expression belongs. | public Type | type() Returns the Type of this expression. |
Expr | public Expr(Type type)(Code) | | Constructor. Initializes an expression with a given type.
Parameters: type - The initial Type (descriptor) of this expression. |
cleanupOnly | public void cleanupOnly()(Code) | | Cleans up this expression only, not its children.
|
comparator | public Object comparator()(Code) | | Returns an Object that can be used to compare other Expr to this.
|
copyInto | protected Expr copyInto(Expr expr)(Code) | | Copies the contents of another expression in this one.
Parameters: expr - The expression from which to copy. |
def | public DefExpr def()(Code) | | Returns the expression in which this Expr is defined.
|
equalsExpr | abstract public boolean equalsExpr(Expr other)(Code) | | Compares this expression to another.
Parameters: other - Expr to which to compare this. |
exprHashCode | abstract public int exprHashCode()(Code) | | Returns the hash code for this expresion.
|
isDef | public boolean isDef()(Code) | | Returns whether or not this expression is a defining occurrence. By
default, false is returned.
|
setDef | public void setDef(DefExpr def)(Code) | | Sets the expression that defines this expression.
Parameters: def - Defining expression. |
setType | public boolean setType(Type type)(Code) | | Sets the type of this expression. Returns whether or not the type changed
as a result of calling this method.
|
stmt | public Stmt stmt()(Code) | | Returns the statement to which this expression belongs. It essentially
searches up the expression tree for this expression's first ancestor
which is a Stmt.
|
type | public Type type()(Code) | | Returns the Type of this expression.
|
|
|