1 19 20 25 26 27 28 29 30 31 32 package soot.coffi; 33 import java.io.*; 34 62 class Instruction_byte extends Instruction { 63 public byte arg_b; 64 public Instruction_byte(byte c) { super(c); } 65 public String toString(cp_info constant_pool[]) { 66 return super.toString(constant_pool) + argsep + arg_b; 67 } 68 public int nextOffset(int curr) { return curr+2; } 69 public int parse(byte bc[],int index) { arg_b = bc[index]; return index+1; } 70 public int compile(byte bc[],int index) { bc[index++] = code; bc[index++] = arg_b; return index; } 71 72 public String toString() 73 { 74 return super.toString()+" "+arg_b; 75 } 76 } 77 | Popular Tags |