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. package com.sun.javadoc;
  9. /**
  10. * Represents a wildcard type argument.
  11. * Examples include: <pre>
  12. * {@code <?>}
  13. * {@code <? extends E>}
  14. * {@code <? super T>}
  15. * </pre>
  16. * A wildcard type can have explicit <i>extends</i> bounds
  17. * or explicit <i>super</i> bounds or neither, but not both.
  18. *
  19. * @author Scott Seligman
  20. * @version 1.2 03/12/19
  21. * @since 1.5
  22. */
  23. public interface WildcardType extends Type {
  24. /**
  25. * Return the upper bounds of this wildcard type argument
  26. * as given by the <i>extends</i> clause.
  27. * Return an empty array if no such bounds are explicitly given.
  28. *
  29. * @return the extends bounds of this wildcard type argument
  30. */
  31. Type[] extendsBounds();
  32. /**
  33. * Return the lower bounds of this wildcard type argument
  34. * as given by the <i>super</i> clause.
  35. * Return an empty array if no such bounds are explicitly given.
  36. *
  37. * @return the super bounds of this wildcard type argument
  38. */
  39. Type[] superBounds();
  40. }