Package org.aspectj.apache.bcel.generic
Class InstructionList
- java.lang.Object
-
- org.aspectj.apache.bcel.generic.InstructionList
-
- All Implemented Interfaces:
Serializable
public class InstructionList extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InstructionList()InstructionList(byte[] code)InstructionList(Instruction i)
-
Method Summary
-
-
-
Constructor Detail
-
InstructionList
public InstructionList()
-
InstructionList
public InstructionList(Instruction i)
-
InstructionList
public InstructionList(byte[] code)
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
-
findHandle
public static InstructionHandle findHandle(InstructionHandle[] ihs, int[] pos, int count, int target)
-
findHandle
public static InstructionHandle findHandle(InstructionHandle[] ihs, int[] pos, int count, int target, boolean returnClosestIfNoExactMatch)
-
findHandle
public InstructionHandle findHandle(int pos)
-
getInstructionsAsArray
public InstructionHandle[] getInstructionsAsArray()
-
findHandle
public InstructionHandle findHandle(int pos, InstructionHandle[] instructionArray)
-
findHandle
public InstructionHandle findHandle(int pos, InstructionHandle[] instructionArray, boolean useClosestApproximationIfNoExactFound)
-
append
public InstructionHandle append(InstructionHandle appendTo, InstructionList appendee)
-
append
public InstructionHandle append(Instruction i, InstructionList il)
-
append
public InstructionHandle append(InstructionList il)
-
append
public InstructionHandle append(Instruction i)
-
appendDUP
public InstructionHandle appendDUP()
-
appendNOP
public InstructionHandle appendNOP()
-
appendPOP
public InstructionHandle appendPOP()
-
append
public BranchHandle append(InstructionBranch i)
-
append
public InstructionHandle append(Instruction i, Instruction j)
-
append
public InstructionHandle append(InstructionHandle ih, Instruction i)
-
append
public BranchHandle append(InstructionHandle ih, InstructionBranch i)
-
insert
public InstructionHandle insert(InstructionHandle ih, InstructionList il)
-
insert
public InstructionHandle insert(InstructionList il)
-
insert
public InstructionHandle insert(Instruction i, InstructionList il)
-
insert
public InstructionHandle insert(Instruction i)
-
insert
public BranchHandle insert(InstructionBranch i)
-
insert
public InstructionHandle insert(Instruction i, Instruction j)
-
insert
public InstructionHandle insert(InstructionHandle ih, Instruction i)
-
insert
public BranchHandle insert(InstructionHandle ih, InstructionBranch i)
-
move
public void move(InstructionHandle start, InstructionHandle end, InstructionHandle target)
-
move
public void move(InstructionHandle ih, InstructionHandle target)
-
delete
public void delete(InstructionHandle ih) throws TargetLostException
- Throws:
TargetLostException
-
delete
public void delete(InstructionHandle from, InstructionHandle to) throws TargetLostException
- Throws:
TargetLostException
-
delete
public void delete(Instruction from, Instruction to) throws TargetLostException
- Throws:
TargetLostException
-
contains
public boolean contains(InstructionHandle i)
-
contains
public boolean contains(Instruction i)
-
setPositions
public void setPositions()
-
setPositions
public void setPositions(boolean check)
-
getByteCode
public byte[] getByteCode()
-
getInstructions
public Instruction[] getInstructions()
-
toString
public String toString(boolean verbose)
-
iterator
public Iterator iterator()
-
getInstructionHandles
public InstructionHandle[] getInstructionHandles()
-
getInstructionPositions
public int[] getInstructionPositions()
-
copy
public InstructionList copy()
-
replaceConstantPool
public void replaceConstantPool(ConstantPool old_cp, ConstantPool new_cp)
-
dispose
public void dispose()
-
getStart
public InstructionHandle getStart()
-
getEnd
public InstructionHandle getEnd()
-
getLength
public int getLength()
-
size
public int size()
-
redirectBranches
public void redirectBranches(InstructionHandle old_target, InstructionHandle new_target)
-
redirectLocalVariables
public void redirectLocalVariables(LocalVariableGen[] lg, InstructionHandle old_target, InstructionHandle new_target)
-
redirectExceptionHandlers
public void redirectExceptionHandlers(CodeExceptionGen[] exceptions, InstructionHandle old_target, InstructionHandle new_target)
-
-