alt.jiapi.reflect
Class BranchInstruction

java.lang.Object
  extended by alt.jiapi.reflect.Instruction
      extended by alt.jiapi.reflect.BranchInstruction
All Implemented Interfaces:
java.lang.Cloneable

public class BranchInstruction
extends Instruction

BranchInstruction is represents an Instruction, that has a jump target to another Instruction.

Author:
Mika Riekkinen

Constructor Summary
BranchInstruction(byte[] bytes)
           
 
Method Summary
 byte[] getBytes()
          Gets the bytes of this instruction.
 Instruction getTarget()
          Get the target of this branch.
 int getTargetOffset()
           
 void setTarget(Instruction target)
           
 java.lang.String toString()
           
 
Methods inherited from class alt.jiapi.reflect.Instruction
getAttribute, getOffset, getOpcode, length, setAttribute, setAttribute, setBytes, setOffset, stackConsumption, stackUsage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BranchInstruction

public BranchInstruction(byte[] bytes)
Method Detail

getBytes

public byte[] getBytes()
Description copied from class: Instruction
Gets the bytes of this instruction. First byte in array is its opcode.

Overrides:
getBytes in class Instruction
Returns:
bytes of this instruction.

getTarget

public Instruction getTarget()
Get the target of this branch.

Returns:
target Instruction, that this branch points to

getTargetOffset

public int getTargetOffset()

setTarget

public void setTarget(Instruction target)

toString

public java.lang.String toString()
Overrides:
toString in class Instruction


Copyright © 2001. Documenation generated August 26 2011.