com.claritysys.jvm.classfile
Class ExceptionHandler

java.lang.Object
  extended by com.claritysys.jvm.classfile.ExceptionHandler

public class ExceptionHandler
extends java.lang.Object


Field Summary
protected  int endPc
          VM2E "u2 end_pc".
protected  int exceptionClassIndex
          VM2E "u2 catch_type".
protected  int handlerPc
           
protected  CfMethod method
           
protected  ExceptionHandler next
           
protected  int startPc
           
 
Constructor Summary
ExceptionHandler(CfMethod method, java.io.DataInputStream dataIn)
           
ExceptionHandler(CfMethod method, int startPc, int endPc, int handlerPc, int exceptionClassIndex)
           
 
Method Summary
 int getEndPc()
           
 int getExceptionClassIndex()
           
 int getHandlerPc()
           
 ExceptionHandler getNext()
           
 int getStartPc()
           
 void setEndPc(int endPc)
           
 void setExceptionClassIndex(int exceptionClassIndex)
           
 void setHandlerPc(int handlerPc)
           
 void setNext(ExceptionHandler next)
           
 void setStartPc(int startPc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

method

protected CfMethod method

next

protected ExceptionHandler next

startPc

protected int startPc

endPc

protected int endPc
VM2E "u2 end_pc". Note the end_pc is EXCLUSIVE, i.e. the first opcode index that is NOT in the block.


handlerPc

protected int handlerPc

exceptionClassIndex

protected int exceptionClassIndex
VM2E "u2 catch_type". The cp index of a CpClass.

Constructor Detail

ExceptionHandler

public ExceptionHandler(CfMethod method,
                        java.io.DataInputStream dataIn)
                 throws java.io.IOException,
                        ClassFileFormatException
Throws:
java.io.IOException
ClassFileFormatException

ExceptionHandler

public ExceptionHandler(CfMethod method,
                        int startPc,
                        int endPc,
                        int handlerPc,
                        int exceptionClassIndex)
Method Detail

getNext

public ExceptionHandler getNext()

setNext

public void setNext(ExceptionHandler next)

getStartPc

public int getStartPc()

setStartPc

public void setStartPc(int startPc)

getEndPc

public int getEndPc()

setEndPc

public void setEndPc(int endPc)

getHandlerPc

public int getHandlerPc()

setHandlerPc

public void setHandlerPc(int handlerPc)

getExceptionClassIndex

public int getExceptionClassIndex()

setExceptionClassIndex

public void setExceptionClassIndex(int exceptionClassIndex)


Copyright ? 2000-2003 Clarity Systems Group, LLC. All Rights Reserved.