at.dms.classfile
Class HandleCreator

java.lang.Object
  |
  +--at.dms.classfile.HandleCreator
All Implemented Interfaces:
AccessorTransformer

class HandleCreator
extends java.lang.Object
implements AccessorTransformer

This class replaces all references to instructions by their associated handle. At the same time, it adds line numbers to the handles and checks if they are references by an instruction, handler or local variable info.


Constructor Summary
HandleCreator(Instruction[] insns, InstructionHandle[] handles)
          Creates a new HandleCreator object
 
Method Summary
 InstructionAccessor transform(InstructionAccessor accessor, AccessorContainer container)
          Transforms the specified accessor.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HandleCreator

public HandleCreator(Instruction[] insns,
                     InstructionHandle[] handles)
Creates a new HandleCreator object
Parameters:
insns - the array of instructions
handles - the array of instruction handles
Method Detail

transform

public InstructionAccessor transform(InstructionAccessor accessor,
                                     AccessorContainer container)
                              throws BadAccessorException
Transforms the specified accessor.
Specified by:
transform in interface AccessorTransformer
Parameters:
accessor - the accessor to transform
Returns:
the transformed accessor