|
|||||||||
| 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 HCodeElements
and Temps to new HCodeElements and
Temps 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 HCodeElements
to ancestor HCodeElements. |
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 Temps to
ancestor Temps. |
Map<HCE,HCE> |
elementMap()
An immutable mapping from ancestor HCodeElements
to newly-cloned HCodeElements. |
HCode<HCE> |
hcode()
Returns the newly-cloned HCode. |
TempMap |
tempMap()
An immutable mapping from ancestor Temps to
newly-cloned Temps. |
| 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()
HCodeElements
to newly-cloned HCodeElements.
public TempMap tempMap()
Temps to
newly-cloned Temps.
public HCode<HCE> ancestorHCode()
HCode that the clone returned
by the hcode() method was copied from.
public Map<HCE,HCE> ancestorElementMap()
HCodeElements
to ancestor HCodeElements.
public TempMap ancestorTempMap()
Temps to
ancestor Temps.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||