KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > spoon > reflect > code > CtCatch


1 package spoon.reflect.code;
2
3 /**
4  * This code element defines a <code>catch</code> of a <code>try</code>.
5  * @see spoon.reflect.code.CtTry
6  */

7 public interface CtCatch extends CtCodeElement {
8
9     /**
10      * Gets the catch's parameter (a throwable).
11      */

12     CtLocalVariable<? extends Throwable JavaDoc> getParameter();
13
14     /**
15      * Sets the catch's parameter (a throwable).
16      */

17     void setParameter(CtLocalVariable<? extends Throwable JavaDoc> parameter);
18
19     /**
20      * Gets the catch's body.
21      */

22     CtBlock<?> getBody();
23
24     /**
25      * Sets the catch's body.
26      */

27     void setBody(CtBlock body);
28 }
29
Popular Tags