Class VarExpr
java.lang.Object
EDU.purdue.cs.bloat.tree.Node
EDU.purdue.cs.bloat.tree.Expr
EDU.purdue.cs.bloat.tree.DefExpr
EDU.purdue.cs.bloat.tree.MemExpr
EDU.purdue.cs.bloat.tree.VarExpr
- All Implemented Interfaces:
Cloneable
VarExpr represents an expression that accesses a local variable or a variable
on the stack.
- See Also:
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Expr
clone, comparator, copyInto, equalsExpr, exprHashCode, setDef, setType, stmt, typeMethods inherited from class Node
block, cleanup, copyInto, hasParent, key, parent, replaceWith, replaceWith, setKey, setParent, setValueNumber, toString, valueNumber, visit, visitChildren, visitForceChildren, visitOnly
-
Constructor Details
-
VarExpr
Constructor.- Parameters:
index- Index giving location of expression. For instance, the number local variable represented or the position of the stack variable represented.type- Type (descriptor) of this expression.
-
-
Method Details
-
setIndex
public void setIndex(int index) -
index
public int index() -
def
-