A list is finally dumped to a byte code array with `getByteCode'.
Definition at line 25 of file lib/jpf/de/fub/bytecode/generic/InstructionList.java.
|
Create (empty) instruction list. Definition at line 32 of file lib/jpf/de/fub/bytecode/generic/InstructionList.java. |
|
Initialize instruction list from byte array.
Definition at line 38 of file lib/jpf/de/fub/bytecode/generic/InstructionList.java. |
|
Create instruction list containing one instruction.
Definition at line 110 of file lib/jpf/de/fub/bytecode/generic/InstructionList.java. |
|
Initialize list with (nonnull) compound instruction. Consumes argument list, i.e. it becomes empty.
Definition at line 119 of file lib/jpf/de/fub/bytecode/generic/InstructionList.java. |
|
Create instruction list containing one instruction.
Definition at line 126 of file lib/jpf/de/fub/bytecode/generic/InstructionList.java. |
|
Create (empty) instruction list. Definition at line 39 of file src/de/fub/bytecode/generic/InstructionList.java. |
|
Initialize instruction list from byte array.
Definition at line 45 of file src/de/fub/bytecode/generic/InstructionList.java. |
|
Create instruction list containing one instruction.
Definition at line 118 of file src/de/fub/bytecode/generic/InstructionList.java. |
|
Initialize list with (nonnull) compound instruction. Consumes argument list, i.e., it becomes empty.
Definition at line 127 of file src/de/fub/bytecode/generic/InstructionList.java. |
|
Create instruction list containing one instruction.
Definition at line 134 of file src/de/fub/bytecode/generic/InstructionList.java. |
|
Add observer for this object. Definition at line 139 of file src/de/fub/bytecode/generic/InstructionList.java. |
|
Append another list to this one. Consumes argument list, i.e., it becomes empty.
Definition at line 311 of file src/de/fub/bytecode/generic/InstructionList.java. |
|
Append another list after instruction (handle) ih contained in this list. Consumes argument list, i.e., it becomes empty.
Definition at line 279 of file src/de/fub/bytecode/generic/InstructionList.java. |
|
Append an instruction after instruction (handle) ih contained in this list.
Definition at line 268 of file src/de/fub/bytecode/generic/InstructionList.java. |
|
Append a compound instruction.
Definition at line 258 of file src/de/fub/bytecode/generic/InstructionList.java. |
|
Append an instruction after instruction (handle) ih contained in this list.
Definition at line 242 of file src/de/fub/bytecode/generic/InstructionList.java. |
|
Append an instruction to the end of this list.
Definition at line 221 of file src/de/fub/bytecode/generic/InstructionList.java. |
|
Append another list after instruction i contained in this list. Consumes argument list, i.e., it becomes empty.
Definition at line 207 of file src/de/fub/bytecode/generic/InstructionList.java. |
|
Append a single instruction j after another instruction i, which must be in this list of course!
Definition at line 196 of file src/de/fub/bytecode/generic/InstructionList.java. |
|
Append a compound instruction, after instruction i.
Definition at line 185 of file src/de/fub/bytecode/generic/InstructionList.java. |
|
Append an instruction to the end of this list.
Definition at line 172 of file src/de/fub/bytecode/generic/InstructionList.java. |
|
Append a compound instruction.
Definition at line 163 of file src/de/fub/bytecode/generic/InstructionList.java. |
|
Append a branch instruction to the end of this list.
Definition at line 151 of file src/de/fub/bytecode/generic/InstructionList.java. |
|
Append another list to this one.
Definition at line 295 of file lib/jpf/de/fub/bytecode/generic/InstructionList.java. |
|
Append another list after instruction (handle) ih contained in this list. Consumes argument list, i.e. it becomes empty.
Definition at line 263 of file lib/jpf/de/fub/bytecode/generic/InstructionList.java. |
|
Append an instruction after instruction (handle) ih contained in this list.
Definition at line 252 of file lib/jpf/de/fub/bytecode/generic/InstructionList.java. |
|
Append a compound instruction.
Definition at line 242 of file lib/jpf/de/fub/bytecode/generic/InstructionList.java. |
|
Append an instruction after instruction (handle) ih contained in this list.
Definition at line 226 of file lib/jpf/de/fub/bytecode/generic/InstructionList.java. |
|
Append an instruction to the end of this list.
Definition at line 205 of file lib/jpf/de/fub/bytecode/generic/InstructionList.java. |
|
Append another list after instruction i contained in this list. Consumes argument list, i.e. it becomes empty.
Definition at line 191 of file lib/jpf/de/fub/bytecode/generic/InstructionList.java. |
|
Append a single instruction j after another instruction i, which must be in this list of course!
Definition at line 180 of file lib/jpf/de/fub/bytecode/generic/InstructionList.java. |
|
Append a compound instruction, after instruction i.
Definition at line 169 of file lib/jpf/de/fub/bytecode/generic/InstructionList.java. |
|
Append an instruction to the end of this list.
Definition at line 156 of file lib/jpf/de/fub/bytecode/generic/InstructionList.java. |
|
Append a compound instruction.
Definition at line 147 of file lib/jpf/de/fub/bytecode/generic/InstructionList.java. |
|
Append a branch instruction to the end of this list.
Definition at line 135 of file lib/jpf/de/fub/bytecode/generic/InstructionList.java. Referenced by ClassGen::addEmptyConstructor(), append(), copy(), and insert().
|
|
Definition at line 349 of file src/de/fub/bytecode/generic/InstructionList.java. |
|
Definition at line 331 of file lib/jpf/de/fub/bytecode/generic/InstructionList.java. |
|
Remove instructions from instruction `from' to instruction `to' contained in this list. The user must ensure that `from' is an instruction before `to', or risk havoc. The corresponding Instruction handles must not be reused!
Definition at line 448 of file src/de/fub/bytecode/generic/InstructionList.java. |
|
Remove instruction from this list. The corresponding Instruction handles must not be reused!
Definition at line 437 of file src/de/fub/bytecode/generic/InstructionList.java. |
|
Remove instructions from instruction `from' to instruction `to' contained in this list. The user must ensure that `from' is an instruction before `to', or risk havoc. The corresponding Instruction handles must not be reused!
Definition at line 419 of file src/de/fub/bytecode/generic/InstructionList.java. |
|
Remove instruction from this list. The corresponding Instruction handles must not be reused!
Definition at line 403 of file src/de/fub/bytecode/generic/InstructionList.java. |
|
Remove instructions from instruction `from' to instruction `to' contained in this list. The user must ensure that `from' is an instruction before `to', or risk havoc. The coresponding Instruction handles must not be reused!
Definition at line 430 of file lib/jpf/de/fub/bytecode/generic/InstructionList.java. |
|
Remove instruction from this list. The coresponding Instruction handles must not be reused!
Definition at line 419 of file lib/jpf/de/fub/bytecode/generic/InstructionList.java. |
|
Remove instructions from instruction `from' to instruction `to' contained in this list. The user must ensure that `from' is an instruction before `to', or risk havoc. The coresponding Instruction handles must not be reused!
Definition at line 401 of file lib/jpf/de/fub/bytecode/generic/InstructionList.java. |
|
Remove instruction from this list. The coresponding Instruction handles must not be reused!
Definition at line 385 of file lib/jpf/de/fub/bytecode/generic/InstructionList.java. Referenced by MethodGen::removeNOPs().
|
|
Delete contents of list. Provides besser memory utilization, because the system then may reuse the instruction handles. This method is typically called right after <href="MethodGen.htmlgetMethod()">MethodGen.getMethod(). Definition at line 459 of file src/de/fub/bytecode/generic/InstructionList.java. |
|
Delete contents of list. Provides besser memory utilization, because the system then reuses the instruction handles. This method is typically called right after MethodGen.getMethod(). Definition at line 440 of file lib/jpf/de/fub/bytecode/generic/InstructionList.java. |
|
Definition at line 472 of file src/de/fub/bytecode/generic/InstructionList.java. |
|
Definition at line 453 of file lib/jpf/de/fub/bytecode/generic/InstructionList.java. |
|
Get instruction handle for instruction at byte code position pos. This only works properly, if the list is freshly initialized from a byte array or setPositions() has been called before this method.
Definition at line 524 of file src/de/fub/bytecode/generic/InstructionList.java. |
|
Find the target instruction (handle) that corresponds to the given target position (byte code offset).
Definition at line 495 of file src/de/fub/bytecode/generic/InstructionList.java. |
|
Get instruction handle for instruction at byte code position pos. This only works, if the list is freshly initialized from a byte array or setPositions() has been called before this method.
Definition at line 505 of file lib/jpf/de/fub/bytecode/generic/InstructionList.java. |
|
Find the target instruction (handle) that corresponds to the given target position (byte code offset).
Definition at line 476 of file lib/jpf/de/fub/bytecode/generic/InstructionList.java. Referenced by MethodGen::MethodGen().
|
|
Search for given Instruction reference, start at beginning of list.
Definition at line 534 of file src/de/fub/bytecode/generic/InstructionList.java. |
|
Search for given Instruction reference, start at beginning of list.
Definition at line 515 of file lib/jpf/de/fub/bytecode/generic/InstructionList.java. |
|
Search for given Instruction reference, start at end of list
Definition at line 547 of file src/de/fub/bytecode/generic/InstructionList.java. |
|
Search for given Instruction reference, start at end of list
Definition at line 528 of file lib/jpf/de/fub/bytecode/generic/InstructionList.java. |
|
When everything is finished, use this method to convert the instruction list into an array of bytes.
Definition at line 560 of file src/de/fub/bytecode/generic/InstructionList.java. |
|
Definition at line 538 of file lib/jpf/de/fub/bytecode/generic/InstructionList.java. Referenced by MethodGen::getMethod().
|
|
Definition at line 582 of file src/de/fub/bytecode/generic/InstructionList.java. |
|
Definition at line 560 of file lib/jpf/de/fub/bytecode/generic/InstructionList.java. Referenced by MethodGen::MethodGen().
|
|
Definition at line 586 of file src/de/fub/bytecode/generic/InstructionList.java. |
|
Definition at line 564 of file lib/jpf/de/fub/bytecode/generic/InstructionList.java. Referenced by MethodInfo::loadCode(), and FindPattern::reread().
|
|
Get positions (offsets) of all instructions in the list. This relies on that the list has been freshly created from an byte code array, or that setPositions() has been called. Otherwise this may be inaccurate.
Definition at line 604 of file src/de/fub/bytecode/generic/InstructionList.java. |
|
Get positions (offsets) of all instructions in the list. This relies on that the list has been freshly created from an byte code array, or that setPositions() has been called. Otherwise this may be inaccurate.
Definition at line 582 of file lib/jpf/de/fub/bytecode/generic/InstructionList.java. |
|
Definition at line 608 of file src/de/fub/bytecode/generic/InstructionList.java. |
|
Definition at line 624 of file src/de/fub/bytecode/generic/InstructionList.java. |
|
Definition at line 586 of file lib/jpf/de/fub/bytecode/generic/InstructionList.java. Referenced by FindPattern::reread().
|
|
Definition at line 628 of file src/de/fub/bytecode/generic/InstructionList.java. |
|
Definition at line 597 of file lib/jpf/de/fub/bytecode/generic/InstructionList.java. Referenced by MethodGen::MethodGen(), MethodGen::getMaxStack(), MethodGen::removeNOPs(), FindPattern::search(), and MethodGen::setMaxLocals().
|
|
Insert another list.
Definition at line 793 of file src/de/fub/bytecode/generic/InstructionList.java. |
|
Insert another list before Instruction handle ih contained in this list. Consumes argument list, i.e., it becomes empty.
Definition at line 762 of file src/de/fub/bytecode/generic/InstructionList.java. |
|
Insert an instruction before instruction (handle) ih contained in this list.
Definition at line 751 of file src/de/fub/bytecode/generic/InstructionList.java. |
|
Insert a compound instruction.
Definition at line 741 of file src/de/fub/bytecode/generic/InstructionList.java. |
|
Insert an instruction before instruction (handle) ih contained in this list.
Definition at line 725 of file src/de/fub/bytecode/generic/InstructionList.java. |
|
Insert an instruction at start of this list.
Definition at line 705 of file src/de/fub/bytecode/generic/InstructionList.java. |
|
Insert another list before Instruction i contained in this list. Consumes argument list, i.e., it becomes empty.
Definition at line 691 of file src/de/fub/bytecode/generic/InstructionList.java. |
|
Insert a single instruction j before another instruction i, which must be in this list of course!
Definition at line 679 of file src/de/fub/bytecode/generic/InstructionList.java. |
|
Insert a compound instruction before instruction i.
Definition at line 668 of file src/de/fub/bytecode/generic/InstructionList.java. |
|
Insert an instruction at start of this list.
Definition at line 655 of file src/de/fub/bytecode/generic/InstructionList.java. |
|
Insert a compound instruction.
Definition at line 646 of file src/de/fub/bytecode/generic/InstructionList.java. |
|
Insert a branch instruction at start of this list.
Definition at line 635 of file src/de/fub/bytecode/generic/InstructionList.java. |
|
Insert another list.
Definition at line 763 of file lib/jpf/de/fub/bytecode/generic/InstructionList.java. |
|
Insert another list before Instruction handle ih contained in this list. Consumes argument list, i.e. it becomes empty.
Definition at line 732 of file lib/jpf/de/fub/bytecode/generic/InstructionList.java. |
|
Insert an instruction before instruction (handle) ih contained in this list.
Definition at line 721 of file lib/jpf/de/fub/bytecode/generic/InstructionList.java. |
|
Insert a compound instruction.
Definition at line 711 of file lib/jpf/de/fub/bytecode/generic/InstructionList.java. |
|
Insert an instruction before instruction (handle) ih contained in this list.
Definition at line 695 of file lib/jpf/de/fub/bytecode/generic/InstructionList.java. |
|
Insert an instruction at start of this list.
Definition at line 674 of file lib/jpf/de/fub/bytecode/generic/InstructionList.java. |
|
Insert another list before Instruction i contained in this list. Consumes argument list, i.e. it becomes empty.
Definition at line 660 of file lib/jpf/de/fub/bytecode/generic/InstructionList.java. |
|
Insert a single instruction j before another instruction i, which must be in this list of course!
Definition at line 648 of file lib/jpf/de/fub/bytecode/generic/InstructionList.java. |
|
Insert a compound instruction before instruction i.
Definition at line 637 of file lib/jpf/de/fub/bytecode/generic/InstructionList.java. |
|
Insert an instruction at start of this list.
Definition at line 624 of file lib/jpf/de/fub/bytecode/generic/InstructionList.java. |
|
Insert a compound instruction.
Definition at line 615 of file lib/jpf/de/fub/bytecode/generic/InstructionList.java. |
|
Insert a branch instruction at start of this list.
Definition at line 604 of file lib/jpf/de/fub/bytecode/generic/InstructionList.java. |
|
Test for empty list. Definition at line 804 of file src/de/fub/bytecode/generic/InstructionList.java. |
|
Test for empty list. Definition at line 774 of file lib/jpf/de/fub/bytecode/generic/InstructionList.java. Referenced by append(), and insert().
|
|
Take all instructions (handles) from "start" to "end" and append them after the new location "target". Of course, "end" must be after "start" and target must not be located withing this range. If you want to move something to the start of the list use null as value for target.
Definition at line 825 of file src/de/fub/bytecode/generic/InstructionList.java. |
|
Move a single instruction (handle) to a new location.
Definition at line 811 of file src/de/fub/bytecode/generic/InstructionList.java. |
|
Redirect all references from old_target to new_target, i.e., update targets of branch instructions.
Definition at line 882 of file src/de/fub/bytecode/generic/InstructionList.java. |
|
Redirect all references from old_target to new_target, i.e. update targets of branch instructions. @param old_target the old target instruction handle @param new_target the new target instruction handle Definition at line 782 of file lib/jpf/de/fub/bytecode/generic/InstructionList.java. |
|
Redirect all references of exception handlers from old_target to new_target. @param exceptions array of exception handlers @param old_target the old target instruction handle @param new_target the new target instruction handle @see MethodGen Definition at line 912 of file src/de/fub/bytecode/generic/InstructionList.java. |
|
Redirect all references of exception handlers from old_target to new_target. @param exceptions array of exception handlers @param old_target the old target instruction handle @param new_target the new target instruction handle @see MethodGen Definition at line 812 of file lib/jpf/de/fub/bytecode/generic/InstructionList.java. |
|
Redirect all references of local variables from old_target to new_target. @param lg array of local variables @param old_target the old target instruction handle @param new_target the new target instruction handle @see MethodGen Definition at line 934 of file src/de/fub/bytecode/generic/InstructionList.java. |
|
Redirect all references of local variables from old_target to new_target. @param lg array of local variables @param old_target the old target instruction handle @param new_target the new target instruction handle @see MethodGen Definition at line 834 of file lib/jpf/de/fub/bytecode/generic/InstructionList.java. |
|
Remove from instruction `prev' to instruction `next' both contained in this list. Throws TargetLostException when one of the removed instruction handles is still being targeted.
Definition at line 956 of file src/de/fub/bytecode/generic/InstructionList.java. |
|
Remove from instruction `prev' to instruction `next' both contained in this list. Throws TargetLostException when one of the removed instruction handles is still being targeted.
Definition at line 856 of file lib/jpf/de/fub/bytecode/generic/InstructionList.java. |
|
Remove observer for this object. Definition at line 1013 of file src/de/fub/bytecode/generic/InstructionList.java. |
|
Give all instructions their position number (offset in byte stream), i.e., make the list ready to be dumped.
Definition at line 1027 of file src/de/fub/bytecode/generic/InstructionList.java. |
|
Give all instructions their position number (offset in byte stream), i.e. make the list ready to be dumped.
Definition at line 921 of file lib/jpf/de/fub/bytecode/generic/InstructionList.java. |
|
Definition at line 1118 of file src/de/fub/bytecode/generic/InstructionList.java. |
|
Definition at line 1003 of file lib/jpf/de/fub/bytecode/generic/InstructionList.java. |
|
Definition at line 1126 of file src/de/fub/bytecode/generic/InstructionList.java. |
|
Definition at line 1011 of file lib/jpf/de/fub/bytecode/generic/InstructionList.java. |
|
Call notify() method on all observers. This method is not called automatically whenever the state has changed, but has to be called by the user after he has finished editing the object. Definition at line 1139 of file src/de/fub/bytecode/generic/InstructionList.java. |