Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

Class DE.fub.inf.JVM.ClassGen.InstructionHandle

java.lang.Object
  |
  +--DE.fub.inf.JVM.ClassGen.InstructionHandle
Subclasses:
BranchHandle

public class InstructionHandle
extends java.lang.Object
implements java.io.Serializable
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:
java.util.Enumeration, Instruction, BranchHandle, InstructionList, Serialized Form

Constructor Summary
InstructionHandle(Instruction i)
           
InstructionHandle()
           
 
Method Summary
Instruction getInstruction()
           
InstructionHandle getNext()
           
InstructionHandle getPrev()
           
void setInstruction(Instruction i)
          Replace current instruction contained in this handle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait
 

Constructor Detail

InstructionHandle

public InstructionHandle(Instruction i)

InstructionHandle

protected InstructionHandle()
Method Detail

getNext

public final InstructionHandle getNext()

getPrev

public final InstructionHandle getPrev()

getInstruction

public final Instruction getInstruction()

setInstruction

public final void setInstruction(Instruction i)
Replace current instruction contained in this handle.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD