|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Represents a created method on a class; used to add catch handlers.
ClassFab.addMethod(int, MethodSignature, String)| Method Summary | |
void |
addCatch(java.lang.Class exceptionClass,
java.lang.String catchBody)
Adds a catch to the method. |
void |
extend(java.lang.String body,
boolean asFinally)
Extends the existing method with additional code. |
| Method Detail |
public void addCatch(java.lang.Class exceptionClass,
java.lang.String catchBody)
$e represents the caught exception.
public void extend(java.lang.String body,
boolean asFinally)
$_, for example
$_ = 2 * $_.
body - a block to execute after any existing code in the methodasFinally - if true, the block provided wil execute as with a finally block (even if an
exception is thrown)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||