jbet
Class BranchTarget

java.lang.Object
  extended by jbet.BranchTarget
All Implemented Interfaces:
java.lang.Cloneable

public class BranchTarget
extends java.lang.Object
implements java.lang.Cloneable

Store a mapping between a literal instruction offset (used for branching instructions) and a pointer to the Instruction object that the offset points to. As transformations are performed on code, the literal offsets may become invalid. This object exists to support regeneration of correct offsets from the Instruction objects.

Since:
JDK 1.1.8

Field Summary
 Block block
           
 Instruction instr
           
 int key
           
 java.lang.String label
           
 int offset
           
 
Constructor Summary
BranchTarget()
          Constructor.
BranchTarget(BranchTarget in)
           
BranchTarget(Instruction ins)
           
 
Method Summary
 BranchTarget dup()
          Duplicate this instance.
 java.lang.String recString()
          Return a printable string, either a block, or a PC value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

key

public int key

offset

public int offset

instr

public Instruction instr

block

public Block block

label

public java.lang.String label
Constructor Detail

BranchTarget

public BranchTarget()
Constructor.


BranchTarget

public BranchTarget(Instruction ins)

BranchTarget

public BranchTarget(BranchTarget in)
Method Detail

dup

public BranchTarget dup()
Duplicate this instance.

Returns:
a clone

recString

public java.lang.String recString()
Return a printable string, either a block, or a PC value.

Returns:
a printable string.