harpoon.Analysis
Class DefaultAllocationInformationMap

java.lang.Object
  extended by harpoon.Analysis.AllocationInformationMap<Quad>
      extended by harpoon.Analysis.DefaultAllocationInformationMap
All Implemented Interfaces:
AllocationInformation<Quad>, Serializable

public class DefaultAllocationInformationMap
extends AllocationInformationMap<Quad>
implements Serializable

DefaultAllocationInformationMap is a combination of AllocationInformationMap and DefaultAllocationInformation. Like AllocationInformationMap, it is a growable map from allocation sites to their corresponding allocation properties. However, if no AllocationProperties object is associated with a specific allocation site, query will return a default one, as indicated by DefaultAllocationInformation.

Version:
$Id: DefaultAllocationInformationMap.java,v 1.2 2003/03/11 17:49:52 cananian Exp $
Author:
Alexandru Salcianu <salcianu@MIT.edu>
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class harpoon.Analysis.AllocationInformationMap
AllocationInformationMap.AllocationPropertiesImpl
 
Nested classes/interfaces inherited from interface harpoon.Analysis.Maps.AllocationInformation
AllocationInformation.AllocationProperties
 
Constructor Summary
DefaultAllocationInformationMap()
          Creates a DefaultAllocationInformationMap.
 
Method Summary
 AllocationInformation.AllocationProperties query(Quad allocationSite)
          Returns the AllocationProperties for an allocation site.
 
Methods inherited from class harpoon.Analysis.AllocationInformationMap
associate, transfer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultAllocationInformationMap

public DefaultAllocationInformationMap()
Creates a DefaultAllocationInformationMap.

Method Detail

query

public AllocationInformation.AllocationProperties query(Quad allocationSite)
Returns the AllocationProperties for an allocation site. If no such object exists, it returns a default AllocationProperties object.

Specified by:
query in interface AllocationInformation<Quad>
Overrides:
query in class AllocationInformationMap<Quad>