|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--harpoon.ClassFile.HCodeAndMaps
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 hcode,
Map elementMap,
TempMap tempMap,
HCode ancestorHCode,
Map ancestorElementMap,
TempMap ancestorTempMap)
constructor. |
Method Summary | |
Map |
ancestorElementMap()
An immutable mapping from newly-cloned HCodeElement s
to ancestor HCodeElement s. |
HCode |
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 |
elementMap()
An immutable mapping from ancestor HCodeElement s
to newly-cloned HCodeElement s. |
HCode |
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 hcode, Map elementMap, TempMap tempMap, HCode ancestorHCode, Map ancestorElementMap, TempMap ancestorTempMap)
Method Detail |
public HCode hcode()
HCode
.
public Map elementMap()
HCodeElement
s
to newly-cloned HCodeElement
s.
public TempMap tempMap()
Temp
s to
newly-cloned Temp
s.
public HCode ancestorHCode()
HCode
that the clone returned
by the hcode()
method was copied from.
public Map 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 |