org.fife.rsta.ac.java.classreader
Class ExceptionTableEntry

java.lang.Object
  extended by org.fife.rsta.ac.java.classreader.ExceptionTableEntry

public class ExceptionTableEntry
extends Object

An entry in the exception table of a Code attribute. This denotes either a catch or finally block (the section of code it covers, the type of Throwable it handles, and the location of the exception handler code).

Version:
1.0
Author:
Robert Futrell

Constructor Summary
ExceptionTableEntry(ClassFile cf)
          Constructor.
 
Method Summary
 String getCaughtThrowableType(boolean fullyQualified)
          Returns the name of the Throwable type caught and handled by this exception handler.
static ExceptionTableEntry read(ClassFile cf, DataInputStream in)
          Reads an exception table entry from an input stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExceptionTableEntry

public ExceptionTableEntry(ClassFile cf)
Constructor.

Parameters:
cf - The parent class file.
Method Detail

getCaughtThrowableType

public String getCaughtThrowableType(boolean fullyQualified)
Returns the name of the Throwable type caught and handled by this exception handler.

Parameters:
fullyQualified - Whether the name should be fully qualified.
Returns:
The name of the Throwable type, or null if this entry denotes a finally block.

read

public static ExceptionTableEntry read(ClassFile cf,
                                       DataInputStream in)
                                throws IOException
Reads an exception table entry from an input stream.

Parameters:
cf - The class file.
in - The input stream to read from.
Returns:
The exception table entry.
Throws:
IOException - If an IO error occurs.


Copyright © 2003-2011. All Rights Reserved.