1 18 19 package alt.jiapi.reflect; 20 21 30 class TargetInstruction extends Instruction { 31 private Instruction target; 32 33 TargetInstruction(Instruction target) { 34 this.target = target; 35 } 36 37 Instruction getTarget() { 38 return target; 39 } 40 41 void setTarget(Instruction target) { 43 this.target = target; 44 } 45 46 47 48 public byte[] getBytes() { 51 return target.getBytes(); 52 } 53 54 public byte getOpcode() { 55 return target.getOpcode(); 56 } 57 58 public int length() { 59 return target.length(); 60 } 61 62 public String toString() { 63 return target.toString(); 64 } 65 66 public short stackUsage() { 67 return target.stackUsage(); 68 } 69 70 protected void setOffset(short offset) { 71 target.setOffset(offset); 72 } 73 74 protected short getOffset() { 75 return target.getOffset(); 76 } 77 } 78 79 80 81 | Popular Tags |