41 * subclasses with {@link java.lang.Override @Override} will help 42 * ensure that methods are overridden as intended. 43 * 44 * <p> <b>WARNING:</b> The {@code AnnotationValueVisitor} interface 45 * implemented by this class may have methods added to it in the 46 * future to accommodate new, currently unknown, language structures 47 * added to future versions of the Java™ programming language. 48 * Therefore, methods whose names begin with {@code "visit"} may be 49 * added to this class in the future; to avoid incompatibilities, 50 * classes which extend this class should not declare any instance 51 * methods with names beginning with {@code "visit"}. 52 * 53 * <p>When such a new visit method is added, the default 54 * implementation in this class will be to call the {@link 55 * #visitUnknown visitUnknown} method. A new simple annotation 56 * value visitor class will also be introduced to correspond to the 57 * new language level; this visitor will have different default 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 SimpleAnnotationValueVisitor7 75 * @see SimpleAnnotationValueVisitor8 76 * @since 1.8 77 */ 78 @SupportedSourceVersion(RELEASE_8) 79 public class SimpleAnnotationValueVisitor8<R, P> extends SimpleAnnotationValueVisitor7<R, P> { 80 /** 81 * Constructor for concrete subclasses; uses {@code null} for the 82 * default value. 83 */ 84 protected SimpleAnnotationValueVisitor8() { 85 super(null); 86 } 87 88 /** 89 * Constructor for concrete subclasses; uses the argument for the | 41 * subclasses with {@link java.lang.Override @Override} will help 42 * ensure that methods are overridden as intended. 43 * 44 * <p> <b>WARNING:</b> The {@code AnnotationValueVisitor} interface 45 * implemented by this class may have methods added to it in the 46 * future to accommodate new, currently unknown, language structures 47 * added to future versions of the Java™ programming language. 48 * Therefore, methods whose names begin with {@code "visit"} may be 49 * added to this class in the future; to avoid incompatibilities, 50 * classes which extend this class should not declare any instance 51 * methods with names beginning with {@code "visit"}. 52 * 53 * <p>When such a new visit method is added, the default 54 * implementation in this class will be to call the {@link 55 * #visitUnknown visitUnknown} method. A new simple annotation 56 * value visitor class will also be introduced to correspond to the 57 * new language level; this visitor will have different default 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 * @param <R> the return type of this visitor's methods 62 * @param <P> the type of the additional parameter to this visitor's methods. 63 * 64 * @see SimpleAnnotationValueVisitor6 65 * @see SimpleAnnotationValueVisitor7 66 * @see SimpleAnnotationValueVisitor8 67 * @since 1.8 68 */ 69 @SupportedSourceVersion(RELEASE_8) 70 public class SimpleAnnotationValueVisitor8<R, P> extends SimpleAnnotationValueVisitor7<R, P> { 71 /** 72 * Constructor for concrete subclasses; uses {@code null} for the 73 * default value. 74 */ 75 protected SimpleAnnotationValueVisitor8() { 76 super(null); 77 } 78 79 /** 80 * Constructor for concrete subclasses; uses the argument for the |