harpoon.Temp
Class CloningTempMap

java.lang.Object
  extended by harpoon.Temp.CloningTempMap
All Implemented Interfaces:
TempMap

public class CloningTempMap
extends Object
implements TempMap

A CloningTempMap maps Temps from one TempFactory to equivalent Temps in another, creating new Temps as necessary.

Version:
$Id: CloningTempMap.java,v 1.5 2002/09/01 07:39:25 cananian Exp $
Author:
C. Scott Ananian <cananian@alumni.princeton.edu>

Constructor Summary
CloningTempMap(TempFactory old_tf, TempFactory new_tf)
          Creates a CloningTempMap, given the source and destination TempFactorys.
 
Method Summary
 Map<Temp,Temp> asMap()
          Provide access to an unmodifiable version of this Temp mapping, as a java.util.Map.
 Temp tempMap(Temp t)
          Return a Temp from the new_tf TempFactory that corresponds to the specified Temp t from the old_tf TempFactory, creating it if necessary.
 TempMap unmodifiable()
          Provide access to an unmodifiable version of this TempMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CloningTempMap

public CloningTempMap(TempFactory old_tf,
                      TempFactory new_tf)
Creates a CloningTempMap, given the source and destination TempFactorys.

Method Detail

tempMap

public Temp tempMap(Temp t)
Return a Temp from the new_tf TempFactory that corresponds to the specified Temp t from the old_tf TempFactory, creating it if necessary.

Specified by:
tempMap in interface TempMap

unmodifiable

public TempMap unmodifiable()
Provide access to an unmodifiable version of this TempMap

asMap

public Map<Temp,Temp> asMap()
Provide access to an unmodifiable version of this Temp mapping, as a java.util.Map.