KickJava   Java API By Example, From Geeks To Geeks.

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


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.CtStatement;
7 import spoon.reflect.code.CtStatementList;
8 import spoon.reflect.declaration.CtSimpleType;
9 import spoon.reflect.visitor.CtVisitor;
10
11 public class CtStatementListImpl<R> extends CtCodeElementImpl implements
12         CtStatementList<R> {
13     private static final long serialVersionUID = 1L;
14     List JavaDoc<CtStatement> statements = new ArrayList JavaDoc<CtStatement>();
15
16     public void accept(CtVisitor visitor) {
17         visitor.visitCtStatementList(this);
18     }
19
20     public List JavaDoc<CtStatement> getStatements() {
21         return statements;
22     }
23
24     public void setStatements(List JavaDoc<CtStatement> statements) {
25         this.statements = statements;
26     }
27
28     public R S() {
29         return null;
30     }
31
32     public CtStatementList getSubstitution(CtSimpleType targetType) {
33         return getFactory().Core().clone(this);
34     }
35
36 }
37
Popular Tags