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

Print this page




  49  * implemented by this class may have methods added to it in the
  50  * future to accommodate new, currently unknown, language structures
  51  * added to future versions of the Java™ programming language.
  52  * Therefore, methods whose names begin with {@code "visit"} may be
  53  * added to this class in the future; to avoid incompatibilities,
  54  * classes which extend this class should not declare any instance
  55  * methods with names beginning with {@code "visit"}.
  56  *
  57  * <p>When such a new visit method is added, the default
  58  * implementation in this class will be to call the {@link
  59  * #visitUnknown visitUnknown} method.  A new simple annotation
  60  * value visitor class will also be introduced to correspond to the
  61  * new language level; this visitor will have different default
  62  * behavior for the visit method in question.  When the new visitor is
  63  * introduced, all or portions of this visitor may be deprecated.
  64  *
  65  * @param <R> the return type of this visitor's methods
  66  * @param <P> the type of the additional parameter to this visitor's methods.
  67  *
  68  * @see SimpleAnnotationValueVisitor6

  69  * @since 1.7
  70  */
  71 @SupportedSourceVersion(RELEASE_7)
  72 public class SimpleAnnotationValueVisitor7<R, P> extends SimpleAnnotationValueVisitor6<R, P> {
  73     /**
  74      * Constructor for concrete subclasses; uses {@code null} for the
  75      * default value.
  76      */
  77     protected SimpleAnnotationValueVisitor7() {
  78         super(null);
  79     }
  80 
  81     /**
  82      * Constructor for concrete subclasses; uses the argument for the
  83      * default value.
  84      *
  85      * @param defaultValue the value to assign to {@link #DEFAULT_VALUE}
  86      */
  87     protected SimpleAnnotationValueVisitor7(R defaultValue) {
  88         super(defaultValue);


  49  * implemented by this class may have methods added to it in the
  50  * future to accommodate new, currently unknown, language structures
  51  * added to future versions of the Java&trade; programming language.
  52  * Therefore, methods whose names begin with {@code "visit"} may be
  53  * added to this class in the future; to avoid incompatibilities,
  54  * classes which extend this class should not declare any instance
  55  * methods with names beginning with {@code "visit"}.
  56  *
  57  * <p>When such a new visit method is added, the default
  58  * implementation in this class will be to call the {@link
  59  * #visitUnknown visitUnknown} method.  A new simple annotation
  60  * value visitor class will also be introduced to correspond to the
  61  * new language level; this visitor will have different default
  62  * behavior for the visit method in question.  When the new visitor is
  63  * introduced, all or portions of this visitor may be deprecated.
  64  *
  65  * @param <R> the return type of this visitor's methods
  66  * @param <P> the type of the additional parameter to this visitor's methods.
  67  *
  68  * @see SimpleAnnotationValueVisitor6
  69  * @see SimpleAnnotationValueVisitor8
  70  * @since 1.7
  71  */
  72 @SupportedSourceVersion(RELEASE_7)
  73 public class SimpleAnnotationValueVisitor7<R, P> extends SimpleAnnotationValueVisitor6<R, P> {
  74     /**
  75      * Constructor for concrete subclasses; uses {@code null} for the
  76      * default value.
  77      */
  78     protected SimpleAnnotationValueVisitor7() {
  79         super(null);
  80     }
  81 
  82     /**
  83      * Constructor for concrete subclasses; uses the argument for the
  84      * default value.
  85      *
  86      * @param defaultValue the value to assign to {@link #DEFAULT_VALUE}
  87      */
  88     protected SimpleAnnotationValueVisitor7(R defaultValue) {
  89         super(defaultValue);