at.dms.dis
Class InstructionHandle

java.lang.Object
  |
  +--at.dms.classfile.AbstractInstructionAccessor
        |
        +--at.dms.dis.InstructionHandle
All Implemented Interfaces:
InstructionAccessor

class InstructionHandle
extends AbstractInstructionAccessor


Constructor Summary
InstructionHandle(Instruction instruction, int address)
          Creates a new instruction handle.
 
Method Summary
 void attachTo(AccessorContainer container)
          Notifies this handle that is has been attached to the specified container.
 java.lang.String getLabel()
          Returns an identifier for the instruction address.
 void write(IndentingWriter out, boolean optionShowStack)
          Prints a byte code instruction.
 
Methods inherited from class at.dms.classfile.AbstractInstructionAccessor
transform
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InstructionHandle

public InstructionHandle(Instruction instruction,
                         int address)
Creates a new instruction handle.
Parameters:
instruction - The instruction.
address - The address of the instruction.
Method Detail

attachTo

public void attachTo(AccessorContainer container)
Notifies this handle that is has been attached to the specified container.

getLabel

public java.lang.String getLabel()
Returns an identifier for the instruction address.

write

public void write(IndentingWriter out,
                  boolean optionShowStack)
Prints a byte code instruction.