|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavassist.expr.Expr
javassist.expr.Handler
Catch clause.
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. |
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 |
indexOfBytecode |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public CtBehavior where()
where
in class Expr
public int getLineNumber()
getLineNumber
in class Expr
public java.lang.String getFileName()
getFileName
in class Expr
public CtClass[] mayThrow()
mayThrow
in class Expr
public CtClass getType() throws NotFoundException
NotFoundException
public void replace(java.lang.String statement) throws CannotCompileException
statement
- 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 |