harpoon.IR.LowQuad
Class Code

java.lang.Object
  |
  +--harpoon.ClassFile.HCode
        |
        +--harpoon.IR.Quads.Code
              |
              +--harpoon.IR.LowQuad.Code
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
LowQuadNoSSA, LowQuadSSA, LowQuadSSI

public abstract class Code
extends Code

LowQuad.Code is an abstract superclass of codeviews using the components in IR.LowQuad. It implements shared methods for the various codeviews using LowQuads.

Version:
$Id: Code.java,v 1.2 2002/02/25 21:04:35 cananian Exp $
Author:
C. Scott Ananian <cananian@alumni.princeton.edu>
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class harpoon.ClassFile.HCode
HCode.PrintCallback
 
Field Summary
 
Fields inherited from class harpoon.IR.Quads.Code
ai, parent, qf, quads
 
Constructor Summary
protected Code(HMethod parent, Quad quads)
           
 
Method Summary
protected  HCodeAndMaps cloneHelper(Code _this, Code qc)
          Helper for clone
 Derivation getDerivation()
          Return a Derivation object for this LowQuad.Code.
protected  QuadFactory newQF(HMethod parent)
          Make the quad factory.
protected  void setDerivation(Derivation deriv)
          Allow subclasses to initialize the Derivation for this LowQuad.Code.
 
Methods inherited from class harpoon.IR.Quads.Code
clone, cloneHelper, elementArrayFactory, getAllocationInformation, getElements, getElementsI, getLeafElements, getMethod, getName, getRootElement, print, setAllocationInformation
 
Methods inherited from class harpoon.ClassFile.HCode
clone, elementIndexer, getElementsE, getElementsL, print, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Code

protected Code(HMethod parent,
               Quad quads)
Method Detail

newQF

protected QuadFactory newQF(HMethod parent)
Make the quad factory.

Overrides:
newQF in class Code

getDerivation

public Derivation getDerivation()
Return a Derivation object for this LowQuad.Code.

Overrides:
getDerivation in class Code
Returns:
null, always.

setDerivation

protected void setDerivation(Derivation deriv)
Allow subclasses to initialize the Derivation for this LowQuad.Code.


cloneHelper

protected HCodeAndMaps cloneHelper(Code _this,
                                   Code qc)
Description copied from class: Code
Helper for clone

Overrides:
cloneHelper in class Code