Advertisement
Guest User

Untitled

a guest
Oct 24th, 2016
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. // Assume MethodGen mainMG is given to us
  2. Instruction[] insns = mainMG.getInstructionList().getInstructions();
  3. for(Instruction insn : insns) {
  4. if(insn instanceof InvokeInstruction) {
  5. // great, found an invoke instruction
  6. InvokeInstruction invoke = (InvokeInstruction)insn;
  7.  
  8. // what do I do with it now?
  9. }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement