Klasse CodeException

java.lang.Object
org.aspectj.apache.bcel.classfile.CodeException
Alle implementierten Schnittstellen:
Serializable, Cloneable, Node, Constants

public final class CodeException extends Object implements Cloneable, Constants, Node, Serializable
This class represents an entry in the exception table of the Code attribute and is used only there. It contains a range in which a particular exception handler is active.
Version:
$Id: CodeException.java,v 1.3 2008/05/28 23:53:02 aclement Exp $
Autor:
M. Dahm
Siehe auch:
  • Konstruktordetails

    • CodeException

      public CodeException(CodeException c)
    • CodeException

      public CodeException(int start_pc, int end_pc, int handler_pc, int catch_type)
  • Methodendetails

    • accept

      public void accept(ClassVisitor v)
      Angegeben von:
      accept in Schnittstelle Node
    • dump

      public final void dump(DataOutputStream file) throws IOException
      Löst aus:
      IOException
    • getCatchType

      public final int getCatchType()
      Gibt zurück:
      0, if the handler catches any exception, otherwise it points to the exception class which is to be caught.
    • getEndPC

      public final int getEndPC()
      Gibt zurück:
      Exclusive end index of the region where the handler is active.
    • getHandlerPC

      public final int getHandlerPC()
      Gibt zurück:
      Starting address of exception handler, relative to the code.
    • getStartPC

      public final int getStartPC()
      Gibt zurück:
      Inclusive start index of the region where the handler is active.
    • setCatchType

      public final void setCatchType(int catch_type)
      Parameter:
      catch_type - .
    • setEndPC

      public final void setEndPC(int end_pc)
      Parameter:
      end_pc - end of handled block
    • setHandlerPC

      public final void setHandlerPC(int handler_pc)
      Parameter:
      handler_pc - where the actual code is
    • setStartPC

      public final void setStartPC(int start_pc)
      Parameter:
      start_pc - start of handled block
    • toString

      public final String toString()
      Setzt außer Kraft:
      toString in Klasse Object
      Gibt zurück:
      String representation.
    • toString

      public final String toString(ConstantPool cp, boolean verbose)
      Gibt zurück:
      String representation.
    • toString

      public final String toString(ConstantPool cp)
    • copy

      public CodeException copy()
      Gibt zurück:
      deep copy of this object