| java.lang.Object javassist.expr.Expr javassist.expr.Handler
Handler | public class Handler extends Expr (Code) | | Catch clause.
|
Method Summary | |
public String | getFileName() Returns the source file containing the catch clause. | public int | getLineNumber() Returns the source line number of the catch clause. | public CtClass | getType() Returns the type handled by the catch clause. | public void | insertBefore(String src) Inserts bytecode at the beginning of the catch clause. | public CtClass[] | mayThrow() Returns the list of exceptions that the catch clause may throw. | public void | replace(String statement) This method has not been implemented yet. | public CtBehavior | where() Returns the method or constructor containing the catch clause. |
getFileName | public String getFileName()(Code) | | Returns the source file containing the catch clause.
null if this information is not available. |
getLineNumber | public int getLineNumber()(Code) | | Returns the source line number of the catch clause.
-1 if this information is not available. |
insertBefore | public void insertBefore(String src) throws CannotCompileException(Code) | | Inserts bytecode at the beginning of the catch clause.
The caught exception is stored in $1 .
Parameters: src - the source code representing the inserted bytecode.It must be a single statement or block. |
mayThrow | public CtClass[] mayThrow()(Code) | | Returns the list of exceptions that the catch clause may throw.
|
where | public CtBehavior where()(Code) | | Returns the method or constructor containing the catch clause.
|
|
|