nl.tudelft.simulation.dsol.interpreter.classfile
Class ExceptionEntry
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExceptionEntry
public ExceptionEntry(DataInput dataInput,
Constant[] constantPool)
throws IOException
- constructs a new ExceptionEntry
- Parameters:
dataInput - the input to readconstantPool - the constantPool of this entry
- Throws:
IOException - on IOFailure
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 fromexceptionType - 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.