net.sf.jode.flow
Class TransformExceptionHandlers

java.lang.Object
  extended by net.sf.jode.flow.TransformExceptionHandlers

public class TransformExceptionHandlers
extends Object

Author:
Jochen Hoenicke

Constructor Summary
TransformExceptionHandlers(FlowBlock[] flowBlocks)
           
 
Method Summary
 void addHandler(FlowBlock tryBlock, FlowBlock endBlock, FlowBlock catchBlock, Type type)
          Add an exception Handler.
 void analyze()
          Analyzes all exception handlers to try/catch/finally or synchronized blocks.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransformExceptionHandlers

public TransformExceptionHandlers(FlowBlock[] flowBlocks)
Method Detail

addHandler

public void addHandler(FlowBlock tryBlock,
                       FlowBlock endBlock,
                       FlowBlock catchBlock,
                       Type type)
Add an exception Handler.

Parameters:
tryBlock - The start block number of the exception range.
endBlock - The end block number of the exception range + 1.
catchBlock - The block number of the handler.
type - The type of the exception, null for ALL.

analyze

public void analyze()
Analyzes all exception handlers to try/catch/finally or synchronized blocks.