|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavassist.expr.Expr
javassist.expr.Handler
public class Handler
A catch clause or a finally block.
| Field Summary |
|---|
| Method Summary | |
|---|---|
java.lang.String |
getFileName()
Returns the source file containing the catch clause. |
int |
getLineNumber()
Returns the source line number of the catch clause. |
CtClass |
getType()
Returns the type handled by the catch clause. |
void |
insertBefore(java.lang.String src)
Inserts bytecode at the beginning of the catch clause. |
boolean |
isFinally()
Returns true if this is a finally block. |
CtClass[] |
mayThrow()
Returns the list of exceptions that the catch clause may throw. |
void |
replace(java.lang.String statement)
This method has not been implemented yet. |
CtBehavior |
where()
Returns the method or constructor containing the catch clause. |
| Methods inherited from class javassist.expr.Expr |
|---|
getEnclosingClass, indexOfBytecode, replace |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public CtBehavior where()
where in class Exprpublic int getLineNumber()
getLineNumber in class Exprpublic java.lang.String getFileName()
getFileName in class Exprpublic CtClass[] mayThrow()
mayThrow in class Expr
public CtClass getType()
throws NotFoundException
finally block, null is returned.
NotFoundExceptionpublic boolean isFinally()
finally block.
public void replace(java.lang.String statement)
throws CannotCompileException
replace in class Exprstatement - a Java statement.
CannotCompileException
public void insertBefore(java.lang.String src)
throws CannotCompileException
$1.
src - the source code representing the inserted bytecode.
It must be a single statement or block.
CannotCompileException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||