|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectharpoon.ClassFile.HCodeAndMaps<HCE>
public class HCodeAndMaps<HCE extends HCodeElement>
HCodeAndMaps
is a strongly-typed tuple representing
all the derivation information for a cloned HCode
.
This includes the mappings from old HCodeElement
s
and Temp
s to new HCodeElement
s and
Temp
s as well as the identity of both the old
HCode
and newly cloned HCode
.
It is intended to make 'clone-then-mutate' operations more
straight-forward to write.
Constructor Summary | |
---|---|
HCodeAndMaps(HCode<HCE> hcode,
Map<HCE,HCE> elementMap,
TempMap tempMap,
HCode<HCE> ancestorHCode,
Map<HCE,HCE> ancestorElementMap,
TempMap ancestorTempMap)
constructor. |
Method Summary | |
---|---|
Map<HCE,HCE> |
ancestorElementMap()
An immutable mapping from newly-cloned HCodeElement s
to ancestor HCodeElement s. |
HCode<HCE> |
ancestorHCode()
Returns the original HCode that the clone returned
by the hcode() method was copied from. |
TempMap |
ancestorTempMap()
An immutable mapping from newly-cloned Temp s to
ancestor Temp s. |
Map<HCE,HCE> |
elementMap()
An immutable mapping from ancestor HCodeElement s
to newly-cloned HCodeElement s. |
HCode<HCE> |
hcode()
Returns the newly-cloned HCode . |
TempMap |
tempMap()
An immutable mapping from ancestor Temp s to
newly-cloned Temp s. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HCodeAndMaps(HCode<HCE> hcode, Map<HCE,HCE> elementMap, TempMap tempMap, HCode<HCE> ancestorHCode, Map<HCE,HCE> ancestorElementMap, TempMap ancestorTempMap)
Method Detail |
---|
public HCode<HCE> hcode()
HCode
.
public Map<HCE,HCE> elementMap()
HCodeElement
s
to newly-cloned HCodeElement
s.
public TempMap tempMap()
Temp
s to
newly-cloned Temp
s.
public HCode<HCE> ancestorHCode()
HCode
that the clone returned
by the hcode()
method was copied from.
public Map<HCE,HCE> ancestorElementMap()
HCodeElement
s
to ancestor HCodeElement
s.
public TempMap ancestorTempMap()
Temp
s to
ancestor Temp
s.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |