JBoss Reflection 2.2.1.SP1

org.jboss.reflect.plugins.javassist.expr
Interface Handler

All Superinterfaces:
Expression

public interface Handler
extends Expression

An exception handler.

Version:
$Revision: 1.1 $
Author:
Stale W. Pedersen

Method Summary
 MutableClassInfo getType()
          Returns the type handled by the catch clause.
 void insertBefore(String src)
          Inserts bytecode at the beginning of the catch clause.
 void replace(String statement)
          This method has not been implemented yet.
 
Methods inherited from interface org.jboss.reflect.plugins.javassist.expr.Expression
getFileName, getLineNumber, indexOfBytecode, mayThrow, replace, whereConstructor, whereMethod
 

Method Detail

getType

MutableClassInfo getType()
                         throws NotFoundException
Returns the type handled by the catch clause.

Returns:
the type of the exception being handled by this expression
Throws:
NotFoundException

replace

void replace(String statement)
             throws CannotCompileException
This method has not been implemented yet.

Specified by:
replace in interface Expression
Parameters:
statement -
Throws:
CannotCompileException

insertBefore

void insertBefore(String src)
                  throws CannotCompileException
Inserts bytecode at the beginning of the catch clause. The caught exception is stored in $1.

Parameters:
src -
Throws:
CannotCompileException

JBoss Reflection 2.2.1.SP1

Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.