KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > mirror > declaration > TypeParameterDeclaration


1 /*
2  * @(#)TypeParameterDeclaration.java 1.1 04/01/26
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package com.sun.mirror.declaration;
9
10
11 import java.util.Collection JavaDoc;
12
13 import com.sun.mirror.type.*;
14
15
16 /**
17  * Represents a formal type parameter of a generic type, method,
18  * or constructor declaration.
19  * A type parameter declares a {@link TypeVariable}.
20  *
21  * @author Joseph D. Darcy
22  * @author Scott Seligman
23  * @version 1.1 04/01/26
24  * @since 1.5
25  */

26
27 public interface TypeParameterDeclaration extends Declaration {
28
29     /**
30      * Returns the bounds of this type parameter.
31      * These are the types given by the <i>extends</i> clause.
32      * If there is no explicit <i>extends</i> clause, then
33      * <tt>java.lang.Object</tt> is considered to be the sole bound.
34      *
35      * @return the bounds of this type parameter
36      */

37     Collection JavaDoc<ReferenceType> getBounds();
38
39     /**
40      * Returns the type, method, or constructor declaration within which
41      * this type parameter is declared.
42      *
43      * @return the declaration within which this type parameter is declared
44      */

45     Declaration getOwner();
46 }
47
Popular Tags