jbet
Class BranchTarget
java.lang.Object
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
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 |
key
public int key
offset
public int offset
instr
public Instruction instr
block
public Block block
label
public java.lang.String label
BranchTarget
public BranchTarget()
- Constructor.
BranchTarget
public BranchTarget(Instruction ins)
BranchTarget
public BranchTarget(BranchTarget in)
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.