harpoon.Analysis
Class AllocationInformationMap

java.lang.Object
  |
  +--harpoon.Analysis.AllocationInformationMap
All Implemented Interfaces:
AllocationInformation, Serializable

public class AllocationInformationMap
extends Object
implements AllocationInformation, Serializable

An AllocationInformationMap makes it easy to create a map-based AllocationInformation structure. It also contains methods to facilitate transferring allocation information from a different AllocationInformation object.

Version:
$Id: AllocationInformationMap.java,v 1.3 2002/02/26 22:39:08 cananian Exp $
Author:
C. Scott Ananian <cananian@alumni.princeton.edu>
See Also:
Serialized Form

Nested Class Summary
static class AllocationInformationMap.AllocationPropertiesImpl
          A simple implementation of AllocationProperties.
 
Nested classes inherited from class harpoon.Analysis.Maps.AllocationInformation
 
Constructor Summary
AllocationInformationMap()
          Creates a AllocationInformationMap.
 
Method Summary
 void associate(HCodeElement allocationSite, AllocationInformation.AllocationProperties ap)
          Associate the given allocationSite with the specified AllocationProperties.
 AllocationInformation.AllocationProperties query(HCodeElement allocationSite)
          Return the AllocationProperties for the given allocationSite.
 void transfer(HCodeElement newallocsite, HCodeElement oldallocsite, TempMap tm, AllocationInformation ai)
          Transfer allocation information from the oldallocsite to newallocsite using the specified TempMap and old AllocationInformation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AllocationInformationMap

public AllocationInformationMap()
Creates a AllocationInformationMap.

Method Detail

query

public AllocationInformation.AllocationProperties query(HCodeElement allocationSite)
Return the AllocationProperties for the given allocationSite.

Specified by:
query in interface AllocationInformation

associate

public void associate(HCodeElement allocationSite,
                      AllocationInformation.AllocationProperties ap)
Associate the given allocationSite with the specified AllocationProperties.


transfer

public void transfer(HCodeElement newallocsite,
                     HCodeElement oldallocsite,
                     TempMap tm,
                     AllocationInformation ai)
Transfer allocation information from the oldallocsite to newallocsite using the specified TempMap and old AllocationInformation.