KickJava   Java API By Example, From Geeks To Geeks.

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


1 package spoon.reflect.code;
2
3 import java.util.List JavaDoc;
4
5 import spoon.template.TemplateParameter;
6
7 /**
8  * This code element defines a <code>try</code> statement.
9  */

10 public interface CtTry extends CtStatement, TemplateParameter<Void JavaDoc> {
11
12     /**
13      * Gets the <i>catchers</i> of this <code>try</code>.
14      */

15     List JavaDoc<CtCatch> getCatchers();
16
17     /**
18      * Sets the <i>catchers</i> of this <code>try</code>.
19      */

20     void setCatchers(List JavaDoc<CtCatch> catchers);
21
22     /**
23      * Sets the tried body.
24      */

25     CtBlock getBody();
26
27     /**
28      * Sets the tried body.
29      */

30     void setBody(CtBlock body);
31
32     /**
33      * Gets the <i>finalizer</i> block of this <code>try</code> (<code>finally</code>
34      * part).
35      */

36     CtBlock getFinalizer();
37
38     /**
39      * Sets the <i>finalizer</i> block of this <code>try</code> (<code>finally</code>
40      * part).
41      */

42     void setFinalizer(CtBlock finalizer);
43 }
44
Popular Tags