All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class harpoon.IR.QuadSSA.SET

java.lang.Object
   |
   +----harpoon.IR.QuadSSA.Quad
           |
           +----harpoon.IR.QuadSSA.SET

public class SET
extends Quad
SET represents field assignment-to operations. The objectref is null if the field is static.

Version:
$Id: SET.java,v 1.17 1998/10/11 02:37:57 cananian Exp $
Author:
C. Scott Ananian <cananian@alumni.princeton.edu>

Variable Index

 o field
The field description.
 o objectref
Reference to the object containing the field.
 o src
Temp containing the desired new value of the field.

Constructor Index

 o SET(HCodeElement, HField, Temp)
Creates a SET for a static field.
 o SET(HCodeElement, HField, Temp, Temp)
Creates a SET for a non-static field.

Method Index

 o isStatic()
Determines whether the SET is of a static field.
 o renameDefs(TempMap)
Rename all defined variables in this Quad according to a mapping.
 o renameUses(TempMap)
Rename all used variables in this Quad according to a mapping.
 o toString()
Returns a human-readable representation of this Quad.
 o use()
Returns the Temps used by this Quad.
 o visit(QuadVisitor)
Accept a visitor.

Variables

 o field
 public HField field
The field description.

 o objectref
 public Temp objectref
Reference to the object containing the field.

null if the field is static.

 o src
 public Temp src
Temp containing the desired new value of the field.

Constructors

 o SET
 public SET(HCodeElement source,
            HField field,
            Temp objectref,
            Temp src)
Creates a SET for a non-static field.

 o SET
 public SET(HCodeElement source,
            HField field,
            Temp src)
Creates a SET for a static field.

Methods

 o use
 public Temp[] use()
Returns the Temps used by this Quad.

Returns:
the objectref and src fields.
Overrides:
use in class Quad
 o renameUses
 public void renameUses(TempMap tm)
Rename all used variables in this Quad according to a mapping.

Overrides:
renameUses in class Quad
 o renameDefs
 public void renameDefs(TempMap tm)
Rename all defined variables in this Quad according to a mapping.

Overrides:
renameDefs in class Quad
 o visit
 public void visit(QuadVisitor v)
Accept a visitor.

Overrides:
visit in class Quad
 o toString
 public String toString()
Returns a human-readable representation of this Quad.

Overrides:
toString in class Quad
 o isStatic
 public boolean isStatic()
Determines whether the SET is of a static field.


All Packages  Class Hierarchy  This Package  Previous  Next  Index