KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > spoon > support > reflect > code > CtCatchImpl


1 package spoon.support.reflect.code;
2
3 import spoon.reflect.code.CtBlock;
4 import spoon.reflect.code.CtCatch;
5 import spoon.reflect.code.CtLocalVariable;
6 import spoon.reflect.visitor.CtVisitor;
7
8 public class CtCatchImpl extends CtCodeElementImpl implements CtCatch {
9     private static final long serialVersionUID = 1L;
10     CtBlock<?> body;
11
12     CtLocalVariable<? extends Throwable JavaDoc> parameter;
13
14     public void accept(CtVisitor visitor) {
15         visitor.visitCtCatch(this);
16     }
17
18     public CtBlock<?> getBody() {
19         return body;
20     }
21
22     public CtLocalVariable<? extends Throwable JavaDoc> getParameter() {
23         return parameter;
24     }
25
26     public void setBody(CtBlock body) {
27         this.body = body;
28     }
29
30     public void setParameter(CtLocalVariable<? extends Throwable JavaDoc> parameter) {
31         this.parameter = parameter;
32     }
33
34 }
35
Popular Tags