Public Methods | |
boolean | containsTarget (InstructionHandle ih) |
void | dump (DataOutputStream out) throws IOException |
InstructionHandle | getTarget () |
void | setTarget (InstructionHandle target) |
String | toString (boolean verbose) |
void | updateTarget (InstructionHandle old_ih, InstructionHandle new_ih) |
boolean | containsTarget (InstructionHandle ih) |
void | dump (DataOutputStream out) throws IOException |
final int | getIndex () |
InstructionHandle | getTarget () |
void | setTarget (InstructionHandle target) |
String | toString (boolean verbose) |
void | updateTarget (InstructionHandle old_ih, InstructionHandle new_ih) |
Protected Methods | |
BranchInstruction (short tag, InstructionHandle target) | |
int | getTargetOffset () |
int | getTargetOffset (InstructionHandle target) |
void | initFromFile (ByteSequence bytes, boolean wide) throws IOException |
int | updatePosition (int offset, int max_offset) |
BranchInstruction (short tag, InstructionHandle target) | |
int | getTargetOffset () |
int | getTargetOffset (InstructionHandle target) |
void | initFromFile (ByteSequence bytes, boolean wide) throws IOException |
int | updatePosition (int offset, int max_offset) |
Protected Attributes | |
int | index |
InstructionHandle | target |
int | position |
Private Methods | |
BranchInstruction () | |
void | dispose () |
final int | getIndex () |
BranchInstruction () | |
void | dispose () |
Static Private Methods | |
final void | notifyTarget (InstructionHandle old_ih, InstructionHandle new_ih, InstructionTargeter t) |
final void | notifyTarget (InstructionHandle old_ih, InstructionHandle new_ih, InstructionTargeter t) |
Definition at line 15 of file lib/jpf/de/fub/bytecode/generic/BranchInstruction.java.
|
Empty constructor needed for the Class.newInstance() statement in Instruction.readInstruction(). Not to be used otherwise. Definition at line 23 of file lib/jpf/de/fub/bytecode/generic/BranchInstruction.java. |
|
Definition at line 27 of file lib/jpf/de/fub/bytecode/generic/BranchInstruction.java. |
|
Empty constructor needed for the Class.newInstance() statement in Instruction.readInstruction(). Not to be used otherwise. Definition at line 24 of file src/de/fub/bytecode/generic/BranchInstruction.java. |
|
Common super constructor
Definition at line 29 of file src/de/fub/bytecode/generic/BranchInstruction.java. |
|
Reimplemented from InstructionTargeter. Reimplemented in Select, and Select. Definition at line 36 of file src/de/fub/bytecode/generic/BranchInstruction.java. |
|
Reimplemented from InstructionTargeter. Reimplemented in Select, and Select. Definition at line 34 of file lib/jpf/de/fub/bytecode/generic/BranchInstruction.java. |
|
Inform target that it's not targeted anymore. Reimplemented from Instruction. Reimplemented in Select, and Select. Definition at line 42 of file src/de/fub/bytecode/generic/BranchInstruction.java. |
|
Inform target that it's not targeted anymore. Reimplemented from Instruction. Reimplemented in Select, and Select. Definition at line 40 of file lib/jpf/de/fub/bytecode/generic/BranchInstruction.java. |
|
Dump instruction as byte code to stream out.
Reimplemented from Instruction. Reimplemented in GOTO, GOTO_W, JSR, JSR_W, LOOKUPSWITCH, Select, TABLESWITCH, GOTO, GOTO_W, JSR, JSR_W, LOOKUPSWITCH, Select, and TABLESWITCH. Definition at line 51 of file src/de/fub/bytecode/generic/BranchInstruction.java. |
|
Dump instruction as byte code to stream out.
Reimplemented from Instruction. Reimplemented in GOTO, GOTO_W, JSR, JSR_W, LOOKUPSWITCH, Select, TABLESWITCH, GOTO, GOTO_W, JSR, JSR_W, LOOKUPSWITCH, Select, and TABLESWITCH. Definition at line 49 of file lib/jpf/de/fub/bytecode/generic/BranchInstruction.java. |
|
Definition at line 64 of file src/de/fub/bytecode/generic/BranchInstruction.java. |
|
Definition at line 62 of file lib/jpf/de/fub/bytecode/generic/BranchInstruction.java. Referenced by InstructionList::InstructionList().
|
|
Definition at line 68 of file src/de/fub/bytecode/generic/BranchInstruction.java. |
|
Definition at line 66 of file lib/jpf/de/fub/bytecode/generic/BranchInstruction.java. Referenced by InstructionList::copy(), MethodGen::getMaxStack(), and InstructionList::redirectBranches().
|
|
Definition at line 77 of file src/de/fub/bytecode/generic/BranchInstruction.java. |
|
Definition at line 72 of file src/de/fub/bytecode/generic/BranchInstruction.java. |
|
Definition at line 75 of file lib/jpf/de/fub/bytecode/generic/BranchInstruction.java. |
|
Definition at line 70 of file lib/jpf/de/fub/bytecode/generic/BranchInstruction.java. Referenced by TABLESWITCH::dump(), LOOKUPSWITCH::dump(), and JSR_W::dump().
|
|
Read needed data (e.g. index) from file. Conversion to a InstructionHandle is done in InstructionList(byte[]).
Reimplemented from Instruction. Reimplemented in GOTO_W, JSR_W, LOOKUPSWITCH, Select, TABLESWITCH, GOTO_W, JSR_W, LOOKUPSWITCH, Select, and TABLESWITCH. Definition at line 98 of file src/de/fub/bytecode/generic/BranchInstruction.java. |
|
Read needed data (e.g. index) from file. Conversion to a InstructionHandle is done in InstructionList(byte[]).
Reimplemented from Instruction. Reimplemented in GOTO_W, JSR_W, LOOKUPSWITCH, Select, TABLESWITCH, GOTO_W, JSR_W, LOOKUPSWITCH, Select, and TABLESWITCH. Definition at line 94 of file lib/jpf/de/fub/bytecode/generic/BranchInstruction.java. |
|
Used by BranchInstruction, LocalVariableGen, CodeExceptionGen Definition at line 106 of file src/de/fub/bytecode/generic/BranchInstruction.java. |
|
Used by BranchInstruction, LocalVariableGen, CodeExceptionGen Definition at line 102 of file lib/jpf/de/fub/bytecode/generic/BranchInstruction.java. |
|
Set branch target
Definition at line 117 of file src/de/fub/bytecode/generic/BranchInstruction.java. |
|
Set branch target Definition at line 112 of file lib/jpf/de/fub/bytecode/generic/BranchInstruction.java. Referenced by InstructionList::InstructionList(), InstructionList::copy(), and InstructionList::redirectBranches().
|
|
Long output format: <position in byte code> <name of opcode> "["<opcode number>"]" "("<length of instruction>")" "<"<target instruction>">" "@"<branch target offset>
Reimplemented from Instruction. Reimplemented in Select, and Select. Definition at line 132 of file src/de/fub/bytecode/generic/BranchInstruction.java. |
|
Long output format: <position in byte code> <name of opcode> "["<opcode number>"]" "("<length of instruction>")" "<"<target instruction>">" "@"<branch target offset>
Reimplemented from Instruction. Reimplemented in Select, and Select. Definition at line 127 of file lib/jpf/de/fub/bytecode/generic/BranchInstruction.java. |
|
Called by InstructionList.setPositions when setting the position for every instruction. In the presence of variable length instructions `setPositions' performs multiple passes over the instruction list to calculate the correct (byte) positions and offsets by calling this function.
Reimplemented in GOTO, JSR, Select, GOTO, JSR, and Select. Definition at line 164 of file src/de/fub/bytecode/generic/BranchInstruction.java. |
|
Called by InstructionList.setPositions when setting the position for every instruction. In the presence of variable length instructions `setPositions' performs multiple passes over the instruction list to calculate the correct (byte) positions and offsets by calling this function.
Reimplemented in GOTO, JSR, Select, GOTO, JSR, and Select. Definition at line 157 of file lib/jpf/de/fub/bytecode/generic/BranchInstruction.java. |
|
Reimplemented from InstructionTargeter. Reimplemented in Select, and Select. Definition at line 172 of file src/de/fub/bytecode/generic/BranchInstruction.java. |
|
Reimplemented from InstructionTargeter. Reimplemented in Select, and Select. Definition at line 165 of file lib/jpf/de/fub/bytecode/generic/BranchInstruction.java. |