1 19 20 25 26 27 28 29 30 31 32 package soot.coffi; 33 import java.io.*; 34 62 class Instruction_Invokeinterface extends Instruction_intindex { 63 public Instruction_Invokeinterface() { 64 super((byte)ByteCode.INVOKEINTERFACE); 65 name = "invokeinterface"; 66 calls = true; 68 } 69 public byte nargs; 70 public byte reserved; 71 public String toString(cp_info constant_pool[]) { 72 return super.toString(constant_pool) + argsep + nargs + argsep + 73 "(reserved " + reserved + ")"; 74 } 75 public int nextOffset(int curr) { return super.nextOffset(curr)+2; } 76 public int parse(byte bc[],int index) { 77 index = super.parse(bc,index); 78 nargs = bc[index]; 79 index++; 80 reserved = bc[index]; 81 return index+1; 82 } 83 public int compile(byte bc[],int index) { 84 index = super.compile(bc,index); 85 bc[index++] = nargs; 86 bc[index++] = reserved; 87 return index; 88 } 89 94 } 95 | Popular Tags |