KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > spoon > reflect > declaration > CtTypeParameter


1 package spoon.reflect.declaration;
2
3 import java.util.List JavaDoc;
4
5 import spoon.reflect.reference.CtTypeReference;
6
7 /**
8  * This element defines a type parameter (aka generics).
9  */

10 public interface CtTypeParameter extends CtElement {
11
12     /**
13      * Returns the bounds of this type parameter. These are the types given by
14      * the <i>extends</i> clause. If there is no explicit <i>extends</i>
15      * clause, then <tt>java.lang.Object</tt> is considered to be the sole
16      * bound.
17      */

18     List JavaDoc<CtTypeReference> getBounds();
19
20     /**
21      * Returns the name of this type parameter.
22      */

23     String JavaDoc getName();
24
25     /**
26      * Sets the bounds of this type parameter.
27      */

28     void setBounds(List JavaDoc<CtTypeReference> bounds);
29
30     /**
31      * Sets the name of this type parameter.
32      */

33     void setName(String JavaDoc name);
34
35 }
36
Popular Tags