|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--EDU.purdue.cs.bloat.tree.Node | +--EDU.purdue.cs.bloat.tree.Expr
Expr is the superclass for a number of other classes representing expressions in byte code. Expressions are typed and may be nested.
DefExpr
Field Summary | |
protected Type |
type
|
Fields inherited from class EDU.purdue.cs.bloat.tree.Node |
parent |
Constructor Summary | |
Expr(Type type)
Constructor. |
Method Summary | |
void |
cleanupOnly()
Cleans up this expression only, not its children. |
abstract java.lang.Object |
clone()
|
java.lang.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. |
DefExpr |
def()
Returns the expression in which this Expr is defined. |
abstract boolean |
equalsExpr(Expr other)
Compares this expression to another. |
abstract int |
exprHashCode()
Returns the hash code for this expresion. |
boolean |
isDef()
Returns whether or not this expression is a defining occurrence. |
void |
setDef(DefExpr def)
Sets the expression that defines this expression. |
boolean |
setType(Type type)
Sets the type of this expression. |
Stmt |
stmt()
Returns the statement to which this expression belongs. |
Type |
type()
Returns the Type of this expression. |
Methods inherited from class EDU.purdue.cs.bloat.tree.Node |
block,
cleanup,
copyInto,
hasParent,
key,
parent,
replaceWith,
replaceWith,
setKey,
setParent,
setValueNumber,
toString,
valueNumber,
visit,
visitChildren,
visitForceChildren,
visitOnly |
Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
protected Type type
Constructor Detail |
public Expr(Type type)
type
- The initial Type (descriptor) of this expression.Method Detail |
public boolean setType(Type type)
public boolean isDef()
public Stmt stmt()
public Type type()
public void cleanupOnly()
public void setDef(DefExpr def)
def
- Defining expression.public DefExpr def()
public abstract int exprHashCode()
public abstract boolean equalsExpr(Expr other)
other
- Expr to which to compare this.public abstract java.lang.Object clone()
protected Expr copyInto(Expr expr)
expr
- The expression from which to copy.public java.lang.Object comparator()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |