nl.tudelft.simulation.dsol.interpreter.classfile
Class ExceptionEntry

java.lang.Object
  extended by nl.tudelft.simulation.dsol.interpreter.classfile.ExceptionEntry

public class ExceptionEntry
extends Object

A ExceptionEntry
(c) copyright 2002-2005 Delft University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: Lesser General Public License (LGPL) , no warranty.

Version:
$Revision: 1.1 $
Author:
Peter Jacobs

Constructor Summary
ExceptionEntry(DataInput dataInput, Constant[] constantPool)
          constructs a new ExceptionEntry
 
Method Summary
 Class getCatchType()
           
 int getEndByte()
           
 int getHandler()
           
 int getStartByte()
           
static ExceptionEntry resolveExceptionEntry(ExceptionEntry[] entries, Class exceptionType, int bytePosition)
          Resolves the exceptionEntry for this particular exceptionType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExceptionEntry

public ExceptionEntry(DataInput dataInput,
                      Constant[] constantPool)
               throws IOException
constructs a new ExceptionEntry

Parameters:
dataInput - the input to read
constantPool - the constantPool of this entry
Throws:
IOException - on IOFailure
Method Detail

getCatchType

public Class getCatchType()
Returns:
Returns the catchType.

getEndByte

public int getEndByte()
Returns:
Returns the endByte.

getHandler

public int getHandler()
Returns:
Returns the handler.

getStartByte

public int getStartByte()
Returns:
Returns the startByte.

resolveExceptionEntry

public static ExceptionEntry resolveExceptionEntry(ExceptionEntry[] entries,
                                                   Class exceptionType,
                                                   int bytePosition)
Resolves the exceptionEntry for this particular exceptionType

Parameters:
entries - the entries to choose from
exceptionType - the exception type
Returns:
the most specific exceptionType. null is no exceptionType is found


Copyright © 2002-2011 Delft University of Technology, the Netherlands. All Rights Reserved.