All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class espresso.classfile.classgen.InstructionHandle

java.lang.Object
   |
   +----espresso.classfile.classgen.InstructionHandle

public class InstructionHandle
extends Object
Instances of this class give users a handle to the instructions contained in an InstructionList. Instruction objects may be uesd 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().

See Also:
Enumeration, Instruction, BranchHandle, InstructionList

Variable Index

 o instruction
 o next
 o prev

Constructor Index

 o InstructionHandle(Instruction)

Method Index

 o dispose()
Delete all contents, i.e.
 o getInstruction()
 o getNext()
 o getPrev()

Variables

 o next
 InstructionHandle next
 o prev
 InstructionHandle prev
 o instruction
 Instruction instruction

Constructors

 o InstructionHandle
 public InstructionHandle(Instruction i)

Methods

 o getNext
 public final InstructionHandle getNext()
 o getPrev
 public final InstructionHandle getPrev()
 o getInstruction
 public final Instruction getInstruction()
 o dispose
 void dispose()
Delete all contents, i.e. remove user access.


All Packages  Class Hierarchy  This Package  Previous  Next  Index