>    public static void main(String[] args) throws Exception {
>      ClassParser parser = new ClassParser(args[0]);
>      JavaClass jclcass = parser.parse();
>      Method[] amethod = jclcass.getMethods();
>      for (int i = 0 ; i < amethod.length ; i++) {
>        Code code = amethod[i].getCode();
>        InstructionList instrlist = MAGIG(code);
>        Instruction[] ainstr = instrlist.getInstructions();
>        for (int j = 0 ; j < ainstr.length ; j++) {
>          if (ainstr[j] instanceof InvokeInstruction) {
>            ...
>          }
>        }
>      }
>    }


How about new InstructionList(code.getCode()) ...?

It's just a RTFM question :)

Cheers
        Markus

Reply via email to