KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > lang > model > type > WildcardType


1 /*
2  * @(#)WildcardType.java 1.3 06/07/31
3  *
4  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package javax.lang.model.type;
9
10
11 /**
12  * Represents a wildcard type argument.
13  * Examples include: <pre><tt>
14  * ?
15  * ? extends Number
16  * ? super T
17  * </tt></pre>
18  *
19  * <p> A wildcard may have its upper bound explicitly set by an
20  * {@code extends} clause, its lower bound explicitly set by a
21  * {@code super} clause, or neither (but not both).
22  *
23  * @author Joseph D. Darcy
24  * @author Scott Seligman
25  * @author Peter von der Ah&eacute;
26  * @version 1.3 06/07/31
27  * @since 1.6
28  */

29 public interface WildcardType extends TypeMirror {
30
31     /**
32      * Returns the upper bound of this wildcard.
33      * If no upper bound is explicitly declared,
34      * {@code null} is returned.
35      *
36      * @return the upper bound of this wildcard
37      */

38     TypeMirror getExtendsBound();
39
40     /**
41      * Returns the lower bound of this wildcard.
42      * If no lower bound is explicitly declared,
43      * {@code null} is returned.
44      *
45      * @return the lower bound of this wildcard
46      */

47     TypeMirror getSuperBound();
48 }
49
Popular Tags