How to loop through Javassist StackMapTable?

46 Views Asked by At

Referring to this question, I still do not get the idea of looping through StackMapTable although I am able to get the Walker

StackMapTable stackMapTable = (StackMapTable) instructionToVisit.toCodeAttribute().getAttribute(StackMapTable.tag);

StackMapTable.Walker walker = new StackMapTable.Walker(stackMapTable);

Since integrating Javassist into the project, I am assuming that StackMapTablehttps://www.javassist.org/html/javassist/bytecode/StackMapTable.html is equivalent to StackDependencies

But I am not sure, is it able to be written like the for-loop block in this class

I tried to understand how to use Javassist StackMapTable to loop through dependencies in the Stack memory of Java. Besides that, I was hoping to get a validation whether my assumption on replacing Javassist StackMapTable to the existing Whyline StackDependencies.

0

There are 0 best solutions below