All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class harpoon.IR.QuadSSA.COMPONENTOF

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

public class COMPONENTOF
extends Quad
COMPONENTOF objects implement the test needed to determine if an ASET needs to throw an exception. Specifically, COMPONENTOF evaluates to boolean true if a certain temporary is a instance of the component type of a certain array, or boolean false otherwise.

Version:
$Id: COMPONENTOF.java,v 1.7 1998/10/11 02:37:56 cananian Exp $
Author:
C. Scott Ananian <cananian@alumni.princeton.edu>
See Also:
ASET, "The

Variable Index

 o arrayref
The array object to test.
 o dst
The temp in which to store the result of the evaluation.
 o objectref
The compoment object to test.

Constructor Index

 o COMPONENTOF(HCodeElement, Temp, Temp, Temp)
Creates a COMPONENTOF.

Method Index

 o def()
Returns the Temps defined by this quad.
 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 dst
 public Temp dst
The temp in which to store the result of the evaluation.

 o arrayref
 public Temp arrayref
The array object to test.

 o objectref
 public Temp objectref
The compoment object to test.

Constructors

 o COMPONENTOF
 public COMPONENTOF(HCodeElement source,
                    Temp dst,
                    Temp arrayref,
                    Temp objectref)
Creates a COMPONENTOF.

Methods

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

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

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 a human-readable representation of this Quad.

Overrides:
toString in class Quad

All Packages  Class Hierarchy  This Package  Previous  Next  Index