harpoon.Analysis
Class DefaultAllocationInformationMap
java.lang.Object
harpoon.Analysis.AllocationInformationMap<Quad>
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultAllocationInformationMap
public DefaultAllocationInformationMap()
- Creates a
DefaultAllocationInformationMap
.
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>