com.jeffpalm.basic.bytecode.instr
Class BranchInstruction

java.lang.Object
  extended by com.jeffpalm.basic.bytecode.instr.Instruction
      extended by com.jeffpalm.basic.bytecode.instr.BranchInstruction
Direct Known Subclasses:
Goto, If_acmpeq, If_acmpne, If_icmpeq, If_icmpge, If_icmpgt, If_icmple, If_icmplt, If_icmpne, Ifeq, Ifge, Ifgt, Ifle, Iflt, Ifne, Ifnonnull, Ifnull

public abstract class BranchInstruction
extends Instruction


Constructor Summary
BranchInstruction(byte opcode, Instruction target)
           
 
Method Summary
 byte branchbyte1()
           
 byte branchbyte2()
           
 int branchOffset()
           
 int branchTarget()
           
 byte[] getBytes()
           
 Instruction getTarget()
           
 int length()
           
 Instruction setTarget(Instruction target)
           
 java.lang.String toString()
           
 
Methods inherited from class com.jeffpalm.basic.bytecode.instr.Instruction
format, getLabel, getName, opcode, setLabel, toHex, toHex, toInt, toInt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BranchInstruction

public BranchInstruction(byte opcode,
                         Instruction target)
Method Detail

getBytes

public byte[] getBytes()
Specified by:
getBytes in class Instruction

length

public int length()
Overrides:
length in class Instruction

setTarget

public final Instruction setTarget(Instruction target)

getTarget

public final Instruction getTarget()

branchbyte1

public final byte branchbyte1()

branchbyte2

public final byte branchbyte2()

branchOffset

public final int branchOffset()

branchTarget

public final int branchTarget()

toString

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