Package org.aspectj.apache.bcel.generic
Klasse InstructionHandle
java.lang.Object
org.aspectj.apache.bcel.generic.InstructionHandle
- Alle implementierten Schnittstellen:
Serializable
- Bekannte direkte Unterklassen:
BranchHandle
Instances of this class give users a handle to the instructions contained in an InstructionList. Instruction objects may be used
more than once within a list, this is useful because it saves memory and may be much faster.
Within an InstructionList an InstructionHandle object is wrapped around all instructions, i.e., it implements a cell in a
doubly-linked list. From the outside only the next and the previous instruction (handle) are accessible. One can traverse the
list via an Enumeration returned by InstructionList.elements().
- Version:
- $Id: InstructionHandle.java,v 1.9 2009/10/05 17:35:36 aclement Exp $
- Autor:
- M. Dahm
- Siehe auch:
-
Feldübersicht
-
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
Denote this handle is being referenced by t.final Instruction
final InstructionHandle
getNext()
int
final InstructionHandle
getPrev()
boolean
void
Remove all targeters, if any.void
Denote this handle isn't referenced anymore by t.void
Replace current instruction contained in this handle.toString()
toString
(boolean verbose)
-
Felddetails
-
pos
protected int pos
-
-
Konstruktordetails
-
InstructionHandle
-
-
Methodendetails
-
getNext
-
getPrev
-
getInstruction
-
setInstruction
Replace current instruction contained in this handle. Old instruction is disposed using Instruction.dispose(). -
getPosition
public int getPosition()- Gibt zurück:
- the position, i.e., the byte code offset of the contained instruction. This is accurate only after InstructionList.setPositions() has been called.
-
removeAllTargeters
public void removeAllTargeters()Remove all targeters, if any. -
removeTargeter
Denote this handle isn't referenced anymore by t. -
addTargeter
Denote this handle is being referenced by t. -
hasTargeters
public boolean hasTargeters() -
getTargeters
-
getTargetersCopy
-
toString
- Gibt zurück:
- a (verbose) string representation of the contained instruction.
-
toString
-