1 19 20 25 26 27 28 29 30 31 32 package soot.coffi; 33 import java.io.*; 34 62 class Instruction_intvar extends Instruction implements Interface_OneIntArg 63 { 64 public int arg_i; 65 public Instruction_intvar(byte c) { super(c); } 66 public String toString(cp_info constant_pool[]) { 67 return super.toString(constant_pool) + argsep + LOCALPREFIX + arg_i; 68 } 69 public int nextOffset(int curr) { return curr+3; } 70 public int parse(byte bc[],int index) { 71 arg_i = getShort(bc,index); 72 return index+2; 73 } 74 public int compile(byte bc[],int index) { 75 bc[index++] = code; 76 shortToBytes((short)arg_i,bc,index); 77 return index+2; 78 } 79 80 public int getIntArg() 81 { 82 return arg_i; 83 } 84 } 85 | Popular Tags |