Uses of Class org.apache.bcel.generic.InstructionHandle

Uses in package org.apache.bcel.generic

Classes derived from org.apache.bcel.generic.InstructionHandle

class
BranchHandle is returned by specialized InstructionList.append() whenever a BranchInstruction is appended.

Constructors with parameter type org.apache.bcel.generic.InstructionHandle

Common super constructor
Add an exception handler, i.e., specify region where a handler is active and an instruction where the actual handling is done.
Create a line number.
LocalVariableGen.LocalVariableGen(int index, String name, Type type, InstructionHandle start, InstructionHandle end)
Generate a local variable that with index `index'.
Creates a ReturnaddressType object with a target.
SWITCH.SWITCH(int[] match, InstructionHandle[] targets, InstructionHandle target)
SWITCH.SWITCH(int[] match, InstructionHandle[] targets, InstructionHandle target, int max_gap)
Template for switch() constructs.
TABLESWITCH.TABLESWITCH(int[] match, InstructionHandle[] targets, InstructionHandle target)

Fields of type org.apache.bcel.generic.InstructionHandle

InstructionHandle
InstructionHandle[]

Methods with parameter type org.apache.bcel.generic.InstructionHandle

CodeExceptionGen
Add an exception handler, i.e., specify region where a handler is active and an instruction where the actual handling is done.
LineNumberGen
Give an instruction a line number corresponding to the source code line.
LocalVariableGen
MethodGen.addLocalVariable(String name, Type type, int slot, InstructionHandle start, InstructionHandle end)
Adds a local variable to this method.
LocalVariableGen
Adds a local variable to this method and assigns an index automatically.
BranchHandle
Append an instruction after instruction (handle) ih contained in this list.
InstructionHandle
Append a compound instruction.
InstructionHandle
Append an instruction after instruction (handle) ih contained in this list.
InstructionHandle
Append another list after instruction (handle) ih contained in this list.
boolean
boolean
boolean
boolean
boolean
boolean
boolean
BranchInstruction
Create branch instruction by given opcode, except LOOKUPSWITCH and TABLESWITCH.
void
Remove instruction from this list.
void
Remove instructions from instruction `from' to instruction `to' contained in this list.
InstructionHandle
InstructionList.findHandle(InstructionHandle[] ihs, int[] pos, int count, int target)
Find the target instruction (handle) that corresponds to the given target position (byte code offset).
int
BranchHandle
Insert an instruction before instruction (handle) ih contained in this list.
InstructionHandle
Insert a compound instruction.
InstructionHandle
Insert an instruction before instruction (handle) ih contained in this list.
InstructionHandle
Insert another list before Instruction handle ih contained in this list.
void
Move a single instruction (handle) to a new location.
void
Take all instructions (handles) from "start" to "end" and append them after the new location "target".
void
Redirect all references from old_target to new_target, i.e., update targets of branch instructions.
void
Redirect all references of exception handlers from old_target to new_target.
void
Redirect all references of local variables from old_target to new_target.
void
void
void
void
void
void
void
Set branch target for `i'th case
void
Pass new target to instruction.
void
Set branch target
void
Update target of instruction.
void
void
void
void
void
void

Methods with return type org.apache.bcel.generic.InstructionHandle

InstructionHandle
Append a compound instruction.
InstructionHandle
Append an instruction to the end of this list.
InstructionHandle
Append a compound instruction, after instruction i.
InstructionHandle
Append a single instruction j after another instruction i, which must be in this list of course!
InstructionHandle
Append another list after instruction i contained in this list.
InstructionHandle
Append a compound instruction.
InstructionHandle
Append an instruction after instruction (handle) ih contained in this list.
InstructionHandle
Append another list after instruction (handle) ih contained in this list.
InstructionHandle
Append another list to this one.
InstructionHandle
Get instruction handle for instruction at byte code position pos.
InstructionHandle
InstructionList.findHandle(InstructionHandle[] ihs, int[] pos, int count, int target)
Find the target instruction (handle) that corresponds to the given target position (byte code offset).
InstructionHandle
InstructionHandle
InstructionHandle
InstructionHandle
InstructionHandle
InstructionHandle[]
InstructionHandle
InstructionHandle
InstructionHandle
InstructionHandle
InstructionHandle
InstructionHandle
InstructionHandle
InstructionHandle
InstructionHandle[]
InstructionHandle[]
InstructionHandle
Insert a compound instruction.
InstructionHandle
Insert an instruction at start of this list.
InstructionHandle
Insert a compound instruction before instruction i.
InstructionHandle
Insert a single instruction j before another instruction i, which must be in this list of course!
InstructionHandle
Insert another list before Instruction i contained in this list.
InstructionHandle
Insert a compound instruction.
InstructionHandle
Insert an instruction before instruction (handle) ih contained in this list.
InstructionHandle
Insert another list before Instruction handle ih contained in this list.
InstructionHandle
Insert another list.
InstructionHandle
Returns an InstructionHandle to the physical successor of this JsrInstruction.

Uses in package org.apache.bcel.util

Methods with parameter type org.apache.bcel.generic.InstructionHandle

boolean
Iterator
Start search beginning from `from'.
Iterator
Search for the given pattern in the instruction list.

Uses in package org.apache.bcel.verifier.structurals

Methods with parameter type org.apache.bcel.generic.InstructionHandle

boolean
Returns if the given InstructionHandle refers to an instruction that is part of this subroutine.
InstructionContext
Returns the InstructionContext of a given instruction.
InstructionContext[]
Returns the InstructionContext[] of a given InstructionHandle[], in a naturally ordered manner.
ExceptionHandler[]
Returns all the ExceptionHandler instances representing exception handlers that protect the instruction ih.
Subroutine
Returns the Subroutine object associated with the given leader (that is, the first instruction of the subroutine).
boolean
Returns true, if and only if the said instruction is not reachable; that means, if it not part of this ControlFlowGraph.
Subroutine
Returns the subroutine object associated with the given instruction.

Methods with return type org.apache.bcel.generic.InstructionHandle

InstructionHandle[]
Returns all the JsrInstructions that have the first instruction of this subroutine as their target.
InstructionHandle
Returns the InstructionHandle where the handler starts off.
InstructionHandle
Returns the InstructionHandle this InstructionContext is wrapped around.
InstructionHandle[]
Returns all instructions that together form this subroutine.
InstructionHandle
Returns the one and only RET that leaves the subroutine.