KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * @(#)WildcardType.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 wildcard type argument.
14  * Examples include: <pre>
15  * {@code <?>}
16  * {@code <? extends E>}
17  * {@code <? super T>}
18  * </pre>
19  * A wildcard type can have explicit <i>extends</i> bounds
20  * or explicit <i>super</i> bounds or neither, but not both.
21  *
22  * @author Scott Seligman
23  * @version 1.2 03/12/19
24  * @since 1.5
25  */

26 public interface WildcardType extends Type {
27
28     /**
29      * Return the upper bounds of this wildcard type argument
30      * as given by the <i>extends</i> clause.
31      * Return an empty array if no such bounds are explicitly given.
32      *
33      * @return the extends bounds of this wildcard type argument
34      */

35     Type[] extendsBounds();
36
37     /**
38      * Return the lower bounds of this wildcard type argument
39      * as given by the <i>super</i> clause.
40      * Return an empty array if no such bounds are explicitly given.
41      *
42      * @return the super bounds of this wildcard type argument
43      */

44     Type[] superBounds();
45 }
46
Popular Tags