KickJava   Java API By Example, From Geeks To Geeks.

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


1 package spoon.support.reflect.code;
2
3 import java.util.ArrayList JavaDoc;
4 import java.util.List JavaDoc;
5
6 import spoon.reflect.code.CtCase;
7 import spoon.reflect.code.CtExpression;
8 import spoon.reflect.code.CtStatement;
9 import spoon.reflect.visitor.CtVisitor;
10
11 public class CtCaseImpl<E> extends CtStatementImpl implements CtCase<E> {
12     private static final long serialVersionUID = 1L;
13     CtExpression<E> caseExpression;
14
15     List JavaDoc<CtStatement> statements= new ArrayList JavaDoc<CtStatement>();
16
17     public void accept(CtVisitor visitor) {
18         visitor.visitCtCase(this);
19     }
20
21     public CtExpression<E> getCaseExpression() {
22         return caseExpression;
23     }
24
25     public List JavaDoc<CtStatement> getStatements() {
26         return statements;
27     }
28
29     public void setCaseExpression(CtExpression<E> caseExpression) {
30         this.caseExpression = caseExpression;
31     }
32
33     public void setStatements(List JavaDoc<CtStatement> statements) {
34         this.statements = statements;
35     }
36
37 }
38
Popular Tags