harpoon.IR.Tree
Class TreeFactory

java.lang.Object
  extended by harpoon.IR.Tree.TreeFactory
All Implemented Interfaces:
ReferenceUnique
Direct Known Subclasses:
Code.TreeFactory, Data.TreeFactory

public abstract class TreeFactory
extends Object
implements ReferenceUnique

A TreeFactory is responsible for assigning unique numbers to the Tree Exps and Stms in a method, and for maintaining method-wide information (a pointer to the parent HCode, a pointer to a harpoon.Backend.Generic.Frame, etc.).

Version:
$Id: TreeFactory.java,v 1.4 2004/02/08 01:55:51 cananian Exp $
Author:
C. Scott Ananian <cananian@alumni.princeton.edu>

Constructor Summary
TreeFactory()
           
 
Method Summary
abstract  Frame getFrame()
          Returns the Frame to be used to resolve machine-dependent issues for this TreeFactory.
abstract  int hashCode()
          Generates a repeatable hashcode for this factory.
abstract  TempFactory tempFactory()
          Returns the TempFactory to use for Temp arguments to Exps and Stms generated by this factory.
abstract  String toString()
          Returns a human-readable representation for this TreeFactory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TreeFactory

public TreeFactory()
Method Detail

tempFactory

public abstract TempFactory tempFactory()
Returns the TempFactory to use for Temp arguments to Exps and Stms generated by this factory.


getFrame

public abstract Frame getFrame()
Returns the Frame to be used to resolve machine-dependent issues for this TreeFactory.


toString

public abstract String toString()
Returns a human-readable representation for this TreeFactory.

Overrides:
toString in class Object

hashCode

public abstract int hashCode()
Generates a repeatable hashcode for this factory.

Overrides:
hashCode in class Object