/* * @(#)WildcardType.java 1.2 03/12/19 * * Copyright 2004 Sun Microsystems, Inc. All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * */ package com.sun.javadoc; /** * Represents a wildcard type argument. * Examples include:
 * {@code }
 * {@code }
 * {@code }
 * 
* A wildcard type can have explicit extends bounds * or explicit super bounds or neither, but not both. * * @author Scott Seligman * @version 1.2 03/12/19 * @since 1.5 */ public interface WildcardType extends Type { /** * Return the upper bounds of this wildcard type argument * as given by the extends clause. * Return an empty array if no such bounds are explicitly given. * * @return the extends bounds of this wildcard type argument */ Type[] extendsBounds(); /** * Return the lower bounds of this wildcard type argument * as given by the super clause. * Return an empty array if no such bounds are explicitly given. * * @return the super bounds of this wildcard type argument */ Type[] superBounds(); }