KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > javadoc > TypeVariable


1 /*
2  * @(#)TypeVariable.java 1.2 03/12/19
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  *
7  */

8
9 package com.sun.javadoc;
10
11
12 /**
13  * Represents a type variable.
14  * For example, the generic interface {@code List<E>} has a single
15  * type variable {@code E}.
16  * A type variable may have explicit bounds, as in
17  * {@code C<R extends Remote>}.
18  *
19  * @author Scott Seligman
20  * @version 1.2 03/12/19
21  * @since 1.5
22  */

23 public interface TypeVariable extends Type {
24
25     /**
26      * Return the bounds of this type variable.
27      * These are the types given by the <i>extends</i> clause.
28      * Return an empty array if there are no explicit bounds.
29      *
30      * @return the bounds of this type variable.
31      */

32     Type[] bounds();
33
34     /**
35      * Return the class, interface, method, or constructor within
36      * which this type variable is declared.
37      *
38      * @return the class, interface, method, or constructor within
39      * which this type variable is declared.
40      */

41     ProgramElementDoc owner();
42 }
43
Popular Tags