|
||||||||||
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 |
---|
Constructor Summary | |
---|---|
protected |
Handler(ExceptionTable et,
int nth,
CodeIterator it,
CtClass declaring,
MethodInfo m)
Undocumented constructor. |
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 |
---|
edited, getConstPool, getEnclosingClass, indexOfBytecode, locals, replace, replace0, runEditor, stack, withinStatic |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected Handler(ExceptionTable et, int nth, CodeIterator it, CtClass declaring, MethodInfo m)
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
finally
block, null
is returned.
NotFoundException
public boolean isFinally()
finally
block.
public void replace(java.lang.String statement) throws CannotCompileException
replace
in class Expr
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 |