All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----harpoon.IR.QuadSSA.Quad | +----harpoon.IR.QuadSSA.CONST
CONST
objects represent an assignment of a constant value
to a compiler temporary.
The type
field of a CONST
must be one of:
String
, int
, long
,
float
, double
or voidvoid
type corresponds to a null
literal
constant, and in this case the value
field will be
null
. In all other cases, value
will contain
an object of the specified type; values of primitive types will use
the standard wrapper class. An example may clarify:
new CONST(hce, dst, new Integer(0), HClass.Int);
new CONST(hce, dst, "hello, world",
HClass.forName("java.lang.String") );
new CONST(hce, dst, null, HClass.Void);
CONST
from a destination temporary, and object
value and its class type.
public Temp dst
public Object value
public HClass type
public CONST(HCodeElement source, Temp dst, Object value, HClass type)
CONST
from a destination temporary, and object
value and its class type.
public Temp[] def()
dst
field.
public void renameUses(TempMap tm)
public void renameDefs(TempMap tm)
public void visit(QuadVisitor v)
public String toString()
All Packages Class Hierarchy This Package Previous Next Index