All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class harpoon.IR.QuadSSA.GET

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

public class GET
extends Quad
GET represent field access (get) operations. The objectref is null if the field is static.

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

Variable Index

 o dst
Temp in which to store the fetched field contents.
 o field
The field desciption.
 o objectref
Reference to the object containing the field.

Constructor Index

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

Method Index

 o def()
Returns the Temp defined by this Quad.
 o isStatic()
Determines whether the GET 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 human-readable representation.
 o use()
Returns the Temp used by this Quad.
 o visit(QuadVisitor)
Accept a visitor.

Variables

 o dst
 public Temp dst
Temp in which to store the fetched field contents.

 o field
 public HField field
The field desciption.

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

null if field is static.

Constructors

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

 o GET
 public GET(HCodeElement source,
            Temp dst,
            HField field)
Creates a GET for a static field.

Methods

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

Returns:
the objectref field.
Overrides:
use in class Quad
 o def
 public Temp[] def()
Returns the Temp defined by this Quad.

Returns:
the dst field.
Overrides:
def 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 human-readable representation.

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


All Packages  Class Hierarchy  This Package  Previous  Next  Index