KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > mirror > type > WildcardType


1 /*
2  * @(#)WildcardType.java 1.5 04/06/07
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.type;
9
10
11 import java.util.Collection JavaDoc;
12
13
14 /**
15  * Represents a wildcard type argument.
16  * Examples include: <pre><tt>
17  * ?
18  * ? extends Number
19  * ? super T
20  * </tt></pre>
21  *
22  * <p> A wildcard may have its upper bound explicitly set by an
23  * <tt>extends</tt> clause, its lower bound explicitly set by a
24  * <tt>super</tt> clause, or neither (but not both).
25  *
26  * @author Joseph D. Darcy
27  * @author Scott Seligman
28  * @version 1.5 04/06/07
29  * @since 1.5
30  */

31
32 public interface WildcardType extends TypeMirror {
33
34     /**
35      * Returns the upper bounds of this wildcard.
36      * If no upper bound is explicitly declared, then
37      * an empty collection is returned.
38      *
39      * @return the upper bounds of this wildcard
40      */

41     Collection JavaDoc<ReferenceType> getUpperBounds();
42
43     /**
44      * Returns the lower bounds of this wildcard.
45      * If no lower bound is explicitly declared, then
46      * an empty collection is returned.
47      *
48      * @return the lower bounds of this wildcard
49      */

50     Collection JavaDoc<ReferenceType> getLowerBounds();
51 }
52
Popular Tags