jellyj.classfile.classgen
Class InstructionHandle

Direct Known Subclasses:
BranchHandle

public class InstructionHandle

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().

Author:
JellyJ Design Group
See Also: Enumeration, Instruction, BranchHandle, InstructionList

Field Summary
 (package private) Instructioninstruction
           
 (package private) InstructionHandlenext
           
 (package private) InstructionHandleprev
           

Constructor Summary
InstructionHandle(Instruction i)
           

Method Summary
 (package private) voiddispose()
          Delete all contents, i.e.
 final InstructiongetInstruction()
           
 final InstructionHandlegetNext()
           
 final InstructionHandlegetPrev()
           

Field Detail

instruction

Instruction instruction

next

InstructionHandle next

prev

InstructionHandle prev
Constructor Detail

InstructionHandle

public InstructionHandle(Instruction i)
Method Detail

dispose

void dispose()
Delete all contents, i.e. remove user access.

getInstruction

public final Instruction getInstruction()

getNext

public final InstructionHandle getNext()

getPrev

public final InstructionHandle getPrev()

Association Links

to Class jellyj.classfile.classgen.InstructionHandle

to Class jellyj.classfile.classgen.Instruction