at.dms.classfile
Class AbstractInstructionAccessor

java.lang.Object
  extended by at.dms.classfile.AbstractInstructionAccessor
All Implemented Interfaces:
InstructionAccessor
Direct Known Subclasses:
Instruction, InstructionHandle, InstructionHandle

public abstract class AbstractInstructionAccessor
extends Object
implements InstructionAccessor

This class provides default implementations for the InstructionAccessor interface: the resolution of the accessor is left to the transformer, which must in turn have knowledge of and access to the accessor to be transformed.


Constructor Summary
AbstractInstructionAccessor()
           
 
Method Summary
 Object deepClone()
          Returns a deep clone of this object.
protected  void deepCloneInto(AbstractInstructionAccessor other)
          Clones all fields of this into
 InstructionAccessor transform(AccessorTransformer transformer, AccessorContainer container)
          Transforms the accessor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractInstructionAccessor

public AbstractInstructionAccessor()
Method Detail

transform

public InstructionAccessor transform(AccessorTransformer transformer,
                                     AccessorContainer container)
                              throws BadAccessorException
Transforms the accessor.

Specified by:
transform in interface InstructionAccessor
Parameters:
transformer - the transformer to be used
container - the object which contains the accessor
Throws:
BadAccessorException

deepClone

public Object deepClone()
Returns a deep clone of this object.


deepCloneInto

protected void deepCloneInto(AbstractInstructionAccessor other)
Clones all fields of this into
other