19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 * 21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 * or visit www.oracle.com if you need additional information or have any 23 * questions. 24 */ 25 26 package java.lang.reflect; 27 28 /** 29 * {@code AnnotatedWildcardType} represents the potentially annotated use of a 30 * wildcard type argument, whose upper or lower bounds may themselves represent 31 * annotated uses of types. 32 * 33 * @since 1.8 34 */ 35 public interface AnnotatedWildcardType extends AnnotatedType { 36 37 /** 38 * Returns the potentially annotated lower bounds of this wildcard type. 39 * Note that if no lower bound is explicitly declared, the lower bound is the 40 * type of null. In this case, a zero length array is returned. 41 * 42 * @return the potentially annotated lower bounds of this wildcard type or 43 * an empty array if no lower bound is explicitly declared. 44 */ 45 AnnotatedType[] getAnnotatedLowerBounds(); 46 47 /** 48 * Returns the potentially annotated upper bounds of this wildcard type. 49 * Note that if no upper bound is explicitly declared, the upper bound is 50 * unannotated {@code Object} 51 * 52 * @return the potentially annotated upper bounds of this wildcard type 53 */ 54 AnnotatedType[] getAnnotatedUpperBounds(); 55 } | 19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 * 21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 * or visit www.oracle.com if you need additional information or have any 23 * questions. 24 */ 25 26 package java.lang.reflect; 27 28 /** 29 * {@code AnnotatedWildcardType} represents the potentially annotated use of a 30 * wildcard type argument, whose upper or lower bounds may themselves represent 31 * annotated uses of types. 32 * 33 * @since 1.8 34 */ 35 public interface AnnotatedWildcardType extends AnnotatedType { 36 37 /** 38 * Returns the potentially annotated lower bounds of this wildcard type. 39 * If no lower bound is explicitly declared, the lower bound is the 40 * type of null. In this case, a zero length array is returned. 41 * 42 * @return the potentially annotated lower bounds of this wildcard type or 43 * an empty array if no lower bound is explicitly declared. 44 * @see WildcardType#getLowerBounds() 45 */ 46 AnnotatedType[] getAnnotatedLowerBounds(); 47 48 /** 49 * Returns the potentially annotated upper bounds of this wildcard type. 50 * If no upper bound is explicitly declared, the upper bound is 51 * unannotated {@code Object} 52 * 53 * @return the potentially annotated upper bounds of this wildcard type 54 * @see WildcardType#getUpperBounds() 55 */ 56 AnnotatedType[] getAnnotatedUpperBounds(); 57 } |