org.apache.jdo.impl.enhancer.classfile
Class ExceptionRange

java.lang.Object
  extended byorg.apache.jdo.impl.enhancer.classfile.ExceptionRange

public class ExceptionRange
extends java.lang.Object

ExceptionRange represents a range an exception handler within a method in class file.


Field Summary
private  ConstClass excCatchType
           
private  InsnTarget excEndPC
           
private  InsnTarget excHandlerPC
           
private  InsnTarget excStartPC
           
 
Constructor Summary
ExceptionRange(InsnTarget startPC, InsnTarget endPC, InsnTarget handlerPC, ConstClass catchType)
          constructor
 
Method Summary
 ConstClass catchType()
          return the exception specification a null return value means a catch of any (try/finally)
 InsnTarget endPC()
          return the end of the exception hander (exclusive)
 InsnTarget handlerPC()
          return the exception handler code
 boolean isEqual(java.util.Stack msg, java.lang.Object obj)
          Compares this instance with another for structural equality.
(package private)  void print(java.io.PrintStream out, int indent)
           
(package private) static ExceptionRange read(java.io.DataInputStream data, CodeEnv env)
           
 InsnTarget startPC()
          return the start of the exception hander (inclusive)
(package private)  void write(java.io.DataOutputStream out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

excStartPC

private InsnTarget excStartPC

excEndPC

private InsnTarget excEndPC

excHandlerPC

private InsnTarget excHandlerPC

excCatchType

private ConstClass excCatchType
Constructor Detail

ExceptionRange

public ExceptionRange(InsnTarget startPC,
                      InsnTarget endPC,
                      InsnTarget handlerPC,
                      ConstClass catchType)
constructor

Method Detail

startPC

public InsnTarget startPC()
return the start of the exception hander (inclusive)


endPC

public InsnTarget endPC()
return the end of the exception hander (exclusive)


handlerPC

public InsnTarget handlerPC()
return the exception handler code


catchType

public ConstClass catchType()
return the exception specification a null return value means a catch of any (try/finally)


isEqual

public boolean isEqual(java.util.Stack msg,
                       java.lang.Object obj)
Compares this instance with another for structural equality.


read

static ExceptionRange read(java.io.DataInputStream data,
                           CodeEnv env)
                    throws java.io.IOException
Throws:
java.io.IOException

write

void write(java.io.DataOutputStream out)
     throws java.io.IOException
Throws:
java.io.IOException

print

void print(java.io.PrintStream out,
           int indent)