Public Methods | |
boolean | containsTarget (InstructionHandle ih) |
void | dump (DataOutputStream out) throws IOException |
int[] | getIndices () |
int[] | getMatchs () |
InstructionHandle[] | getTargets () |
void | setTarget (int i, InstructionHandle target) |
String | toString (boolean verbose) |
void | updateTarget (InstructionHandle old_ih, InstructionHandle new_ih) |
boolean | containsTarget (InstructionHandle ih) |
void | dump (DataOutputStream out) throws IOException |
int[] | getIndices () |
int[] | getMatchs () |
InstructionHandle[] | getTargets () |
void | setTarget (int i, InstructionHandle target) |
String | toString (boolean verbose) |
void | updateTarget (InstructionHandle old_ih, InstructionHandle new_ih) |
Protected Methods | |
void | initFromFile (ByteSequence bytes, boolean wide) throws IOException |
int | updatePosition (int offset, int max_offset) |
void | initFromFile (ByteSequence bytes, boolean wide) throws IOException |
int | updatePosition (int offset, int max_offset) |
Protected Attributes | |
int[] | match |
int[] | indices |
InstructionHandle[] | targets |
int | fixed_length |
int | match_length |
int | padding = 0 |
int[] | match |
int[] | indices |
InstructionHandle[] | targets |
Private Methods | |
Select () | |
Select (short tag, int[] match, InstructionHandle[] targets, InstructionHandle target) | |
void | dispose () |
Select () | |
Select (short tag, int[] match, InstructionHandle[] targets, InstructionHandle target) | |
void | dispose () |
Definition at line 15 of file lib/jpf/de/fub/bytecode/generic/Select.java.
|
Empty constructor needed for the Class.newInstance() statement in Instruction.readInstruction(). Not to be used otherwise. Definition at line 28 of file lib/jpf/de/fub/bytecode/generic/Select.java. |
|
(Match, target) pairs for switch. `Match' and `targets' must have the same length of course.
Definition at line 37 of file lib/jpf/de/fub/bytecode/generic/Select.java. |
|
Empty constructor needed for the Class.newInstance() statement in Instruction.readInstruction(). Not to be used otherwise. Definition at line 29 of file src/de/fub/bytecode/generic/Select.java. |
|
(Match, target) pairs for switch. `Match' and `targets' must have the same length of course.
Definition at line 38 of file src/de/fub/bytecode/generic/Select.java. |
|
Reimplemented from BranchInstruction. Definition at line 56 of file src/de/fub/bytecode/generic/Select.java. |
|
Reimplemented from BranchInstruction. Definition at line 55 of file lib/jpf/de/fub/bytecode/generic/Select.java. |
|
Inform targets that they're not targeted anymore. Reimplemented from BranchInstruction. Definition at line 69 of file src/de/fub/bytecode/generic/Select.java. |
|
Inform targets that they're not targeted anymore. Reimplemented from BranchInstruction. Definition at line 68 of file lib/jpf/de/fub/bytecode/generic/Select.java. |
|
Dump instruction as byte code to stream out.
Reimplemented from BranchInstruction. Reimplemented in LOOKUPSWITCH, TABLESWITCH, LOOKUPSWITCH, and TABLESWITCH. Definition at line 79 of file src/de/fub/bytecode/generic/Select.java. |
|
Dump instruction as byte code to stream out.
Reimplemented from BranchInstruction. Reimplemented in LOOKUPSWITCH, TABLESWITCH, LOOKUPSWITCH, and TABLESWITCH. Definition at line 78 of file lib/jpf/de/fub/bytecode/generic/Select.java. |
|
Definition at line 91 of file src/de/fub/bytecode/generic/Select.java. |
|
Definition at line 90 of file lib/jpf/de/fub/bytecode/generic/Select.java. Referenced by InstructionList::InstructionList().
|
|
Definition at line 95 of file src/de/fub/bytecode/generic/Select.java. |
|
Definition at line 94 of file lib/jpf/de/fub/bytecode/generic/Select.java. |
|
Definition at line 99 of file src/de/fub/bytecode/generic/Select.java. |
|
Definition at line 98 of file lib/jpf/de/fub/bytecode/generic/Select.java. Referenced by MethodGen::getMaxStack().
|
|
Read needed data (e.g. index) from file. Reimplemented from BranchInstruction. Reimplemented in LOOKUPSWITCH, TABLESWITCH, LOOKUPSWITCH, and TABLESWITCH. Definition at line 103 of file src/de/fub/bytecode/generic/Select.java. |
|
Read needed data (e.g. index) from file. Reimplemented from BranchInstruction. Reimplemented in LOOKUPSWITCH, TABLESWITCH, LOOKUPSWITCH, and TABLESWITCH. Definition at line 102 of file lib/jpf/de/fub/bytecode/generic/Select.java. |
|
Set branch target for `i'th case Definition at line 119 of file src/de/fub/bytecode/generic/Select.java. |
|
Set branch target for `i'th case Definition at line 118 of file lib/jpf/de/fub/bytecode/generic/Select.java. Referenced by InstructionList::InstructionList().
|
|
Reimplemented from BranchInstruction. Definition at line 126 of file src/de/fub/bytecode/generic/Select.java. |
|
Reimplemented from BranchInstruction. Definition at line 125 of file lib/jpf/de/fub/bytecode/generic/Select.java. |
|
Since this is a variable length instruction, it may shift the following instructions which then need to update their position. 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 from BranchInstruction. Definition at line 157 of file src/de/fub/bytecode/generic/Select.java. |
|
Since this is a variable length instruction, it may shift the following instructions which then need to update their position. 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 from BranchInstruction. Definition at line 156 of file lib/jpf/de/fub/bytecode/generic/Select.java. |
|
Reimplemented from BranchInstruction. Definition at line 173 of file src/de/fub/bytecode/generic/Select.java. |
|
Reimplemented from BranchInstruction. Definition at line 172 of file lib/jpf/de/fub/bytecode/generic/Select.java. |