7 Mar 2007 15:33
Invokation and return statement analysis with BCEL
Nicholson, Jonathan O H <johnic <at> essex.ac.uk>
2007-03-07 14:33:09 GMT
2007-03-07 14:33:09 GMT
Heya guys,
I'm doing a research project in formal methods, and I'm looking into
BCEl to be able to provide me with certain information about a given
class (there are benefits, from our point of view, to class inspection
over source code inspection that I need not go into).
I have managed to program a vast majority of the features we require
pretty quickly, and I am more than glad to see the programs dependency
on CFParse disappear. The method that does the analysis is in this
format:
foreach(JavaClass c : somearray)
{
// Inspect the class
InstructionList list = c.getInstructionList();
foreach(Instruction i : list.getInstructions())
{
switch(i.getOpcode())
{
// do something when certain instructions are found
}
}
}
There is no modification of the classes as they are processed, and
information is basically dumped into a database (currently to the screen
while debugging) as its found
Problems:
(Continue reading)
RSS Feed