src/jdk.compiler/share/classes/com/sun/source/tree/WildcardTree.java

Print this page




  27 
  28 /**
  29  * A tree node for a wildcard type argument.
  30  * Use {@link #getKind getKind} to determine the kind of bound.
  31  *
  32  * For example:
  33  * <pre>
  34  *   ?
  35  *
  36  *   ? extends <em>bound</em>
  37  *
  38  *   ? super <em>bound</em>
  39  * </pre>
  40  *
  41  * @jls section 4.5.1
  42  *
  43  * @author Peter von der Ah&eacute;
  44  * @author Jonathan Gibbons
  45  * @since 1.6
  46  */
  47 @jdk.Exported
  48 public interface WildcardTree extends Tree {
  49     /**
  50      * Returns the bound of the wildcard.
  51      * @return the bound
  52      */
  53     Tree getBound();
  54 }


  27 
  28 /**
  29  * A tree node for a wildcard type argument.
  30  * Use {@link #getKind getKind} to determine the kind of bound.
  31  *
  32  * For example:
  33  * <pre>
  34  *   ?
  35  *
  36  *   ? extends <em>bound</em>
  37  *
  38  *   ? super <em>bound</em>
  39  * </pre>
  40  *
  41  * @jls section 4.5.1
  42  *
  43  * @author Peter von der Ah&eacute;
  44  * @author Jonathan Gibbons
  45  * @since 1.6
  46  */

  47 public interface WildcardTree extends Tree {
  48     /**
  49      * Returns the bound of the wildcard.
  50      * @return the bound
  51      */
  52     Tree getBound();
  53 }