at.dms.classfile
Class HandlerInfo

java.lang.Object
  extended by at.dms.classfile.HandlerInfo
All Implemented Interfaces:
AccessorContainer

public class HandlerInfo
extends Object
implements AccessorContainer

This class represents a protected (try) portion of block with an handler (catch) for a specified type of exception


Constructor Summary
HandlerInfo(DataInput in, ConstantPool cp, Instruction[] insns)
          Constructs a new exception handler info entry from a class file
HandlerInfo(InstructionAccessor start, InstructionAccessor end, InstructionAccessor handler, String thrown)
          Constructs a new exception handler info entry
 
Method Summary
 InstructionAccessor getEnd()
           
 InstructionAccessor getHandler()
           
 InstructionAccessor getStart()
           
 String getThrown()
           
 void setEnd(InstructionAccessor end)
           
 void setHandler(InstructionAccessor handler)
           
 void setStart(InstructionAccessor start)
           
 void transformAccessors(AccessorTransformer transformer)
          Transforms targets (deferences to actual instructions).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HandlerInfo

public HandlerInfo(InstructionAccessor start,
                   InstructionAccessor end,
                   InstructionAccessor handler,
                   String thrown)
Constructs a new exception handler info entry

Parameters:
start - the beginning of the checked area (inclusive)
end - the end of the checked area (inclusive !)
handler - the entrypoint into the exception handling routine.
thrown - the exceptions handled by this routine

HandlerInfo

public HandlerInfo(DataInput in,
                   ConstantPool cp,
                   Instruction[] insns)
            throws IOException
Constructs a new exception handler info entry from a class file

Parameters:
in - the stream to read from
cp - the constant pool
insns - (sparse) array of instructions
Throws:
IOException - an io problem has occured
Method Detail

transformAccessors

public void transformAccessors(AccessorTransformer transformer)
                        throws BadAccessorException
Transforms targets (deferences to actual instructions).

Specified by:
transformAccessors in interface AccessorContainer
Parameters:
transformer - the transformer used to transform accessors
Throws:
BadAccessorException

setStart

public void setStart(InstructionAccessor start)

getStart

public InstructionAccessor getStart()

setEnd

public void setEnd(InstructionAccessor end)

getEnd

public InstructionAccessor getEnd()

setHandler

public void setHandler(InstructionAccessor handler)

getHandler

public InstructionAccessor getHandler()

getThrown

public String getThrown()