KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > spoon > support > reflect > declaration > CtTypeParameterImpl


1 package spoon.support.reflect.declaration;
2
3 import java.util.ArrayList JavaDoc;
4 import java.util.List JavaDoc;
5
6 import spoon.reflect.declaration.CtTypeParameter;
7 import spoon.reflect.reference.CtTypeReference;
8 import spoon.reflect.visitor.CtVisitor;
9
10 /**
11  * The implementation for {@link spoon.reflect.declaration.CtTypeParameter}.
12  *
13  * @author Renaud Pawlak
14  */

15 public class CtTypeParameterImpl extends CtElementImpl implements
16         CtTypeParameter {
17     private static final long serialVersionUID = 1L;
18     List JavaDoc<CtTypeReference> bounds = new ArrayList JavaDoc<CtTypeReference>();
19
20     String JavaDoc name;
21
22     public CtTypeParameterImpl() {
23         super();
24     }
25
26     public void accept(CtVisitor v) {
27         v.visitCtTypeParameter(this);
28     }
29
30     public List JavaDoc<CtTypeReference> getBounds() {
31         return bounds;
32     }
33
34     public String JavaDoc getName() {
35         return name;
36     }
37
38     public void setBounds(List JavaDoc<CtTypeReference> bounds) {
39         this.bounds = bounds;
40     }
41
42     public void setName(String JavaDoc name) {
43         this.name = name;
44     }
45
46 }
47
Popular Tags