|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectharpoon.Util.BasicBlocks.BBConverter
harpoon.Util.BasicBlocks.CachingBBConverter
public class CachingBBConverter
CachingBBConverter
provides some caching for the
BBConverter
. This is THE class to use if you need to obtain
the BasicBlock
view of the same method multiple times and
don't want to litter all your code with caching mechanisms.
Field Summary |
---|
Fields inherited from class harpoon.Util.BasicBlocks.BBConverter |
---|
hcf, quad_with_try |
Constructor Summary | |
---|---|
CachingBBConverter(HCodeFactory hcf)
Creates a CachingBBConverter . |
Method Summary | |
---|---|
void |
clear()
Completely clears the internal cache. |
void |
clear(HMethod hm)
Remove from the internal cache the result for hm . |
BasicBlockFactoryInterf |
convert2bb(HMethod hm)
Converts the code of the method hm to
BasicBlock.Factory , a basic block view of
hm 's code. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CachingBBConverter(HCodeFactory hcf)
CachingBBConverter
.
Method Detail |
---|
public BasicBlockFactoryInterf convert2bb(HMethod hm)
hm
to
BasicBlock.Factory
, a basic block view of
hm
's code. The code of the method is obtained from
the HCodeFactory
that was passed to the constructor of
this
.
convert2bb
in class BBConverter
public void clear(HMethod hm)
hm
.
This is useful if hm
was modified and a new
BasicBlock
view needs to be generated for it.
public void clear()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |