< prev index next >

src/java.compiler/share/classes/javax/lang/model/util/SimpleAnnotationValueVisitor7.java

Print this page




  58  * behavior for the visit method in question.  When the new visitor is
  59  * introduced, all or portions of this visitor may be deprecated.
  60  *
  61  * <p>Note that adding a default implementation of a new visit method
  62  * in a visitor class will occur instead of adding a <em>default
  63  * method</em> directly in the visitor interface since a Java SE 8
  64  * language feature cannot be used to this version of the API since
  65  * this version is required to be runnable on Java SE 7
  66  * implementations.  Future versions of the API that are only required
  67  * to run on Java SE 8 and later may take advantage of default methods
  68  * in this situation.
  69  *
  70  * @param <R> the return type of this visitor's methods
  71  * @param <P> the type of the additional parameter to this visitor's methods.
  72  *
  73  * @see SimpleAnnotationValueVisitor6
  74  * @see SimpleAnnotationValueVisitor8
  75  * @see SimpleAnnotationValueVisitor9
  76  * @since 1.7
  77  */
  78 @SuppressWarnings("deprecation") // Superclass deprecated
  79 @SupportedSourceVersion(RELEASE_7)
  80 public class SimpleAnnotationValueVisitor7<R, P> extends SimpleAnnotationValueVisitor6<R, P> {
  81     /**
  82      * Constructor for concrete subclasses; uses {@code null} for the
  83      * default value.
  84      */

  85     protected SimpleAnnotationValueVisitor7() {
  86         super(null);
  87     }
  88 
  89     /**
  90      * Constructor for concrete subclasses; uses the argument for the
  91      * default value.
  92      *
  93      * @param defaultValue the value to assign to {@link #DEFAULT_VALUE}
  94      */

  95     protected SimpleAnnotationValueVisitor7(R defaultValue) {
  96         super(defaultValue);
  97     }
  98 }


  58  * behavior for the visit method in question.  When the new visitor is
  59  * introduced, all or portions of this visitor may be deprecated.
  60  *
  61  * <p>Note that adding a default implementation of a new visit method
  62  * in a visitor class will occur instead of adding a <em>default
  63  * method</em> directly in the visitor interface since a Java SE 8
  64  * language feature cannot be used to this version of the API since
  65  * this version is required to be runnable on Java SE 7
  66  * implementations.  Future versions of the API that are only required
  67  * to run on Java SE 8 and later may take advantage of default methods
  68  * in this situation.
  69  *
  70  * @param <R> the return type of this visitor's methods
  71  * @param <P> the type of the additional parameter to this visitor's methods.
  72  *
  73  * @see SimpleAnnotationValueVisitor6
  74  * @see SimpleAnnotationValueVisitor8
  75  * @see SimpleAnnotationValueVisitor9
  76  * @since 1.7
  77  */

  78 @SupportedSourceVersion(RELEASE_7)
  79 public class SimpleAnnotationValueVisitor7<R, P> extends SimpleAnnotationValueVisitor6<R, P> {
  80     /**
  81      * Constructor for concrete subclasses; uses {@code null} for the
  82      * default value.
  83      */
  84     @SuppressWarnings("deprecation") // Superclass constructor deprecated
  85     protected SimpleAnnotationValueVisitor7() {
  86         super(null);
  87     }
  88 
  89     /**
  90      * Constructor for concrete subclasses; uses the argument for the
  91      * default value.
  92      *
  93      * @param defaultValue the value to assign to {@link #DEFAULT_VALUE}
  94      */
  95     @SuppressWarnings("deprecation") // Superclass constructor deprecated
  96     protected SimpleAnnotationValueVisitor7(R defaultValue) {
  97         super(defaultValue);
  98     }
  99 }
< prev index next >