48 * subclasses with {@link java.lang.Override @Override} will help 49 * ensure that methods are overridden as intended. 50 * 51 * <p> <b>WARNING:</b> The {@code ElementVisitor} interface 52 * implemented by this class may have methods added to it in the 53 * future to accommodate new, currently unknown, language structures 54 * added to future versions of the Java™ programming language. 55 * Therefore, methods whose names begin with {@code "visit"} may be 56 * added to this class in the future; to avoid incompatibilities, 57 * classes which extend this class should not declare any instance 58 * methods with names beginning with {@code "visit"}. 59 * 60 * <p>When such a new visit method is added, the default 61 * implementation in this class will be to call the {@link 62 * #visitUnknown visitUnknown} method. A new simple element visitor 63 * class will also be introduced to correspond to the new language 64 * level; this visitor will have different default behavior for the 65 * visit method in question. When the new visitor is introduced, all 66 * or portions of this visitor may be deprecated. 67 * 68 * <p>Note that adding a default implementation of a new visit method 69 * in a visitor class will occur instead of adding a <em>default 70 * method</em> directly in the visitor interface since a Java SE 8 71 * language feature cannot be used to this version of the API since 72 * this version is required to be runnable on Java SE 7 73 * implementations. Future versions of the API that are only required 74 * to run on Java SE 8 and later may take advantage of default methods 75 * in this situation. 76 * 77 * @param <R> the return type of this visitor's methods. Use {@code Void} 78 * for visitors that do not need to return results. 79 * @param <P> the type of the additional parameter to this visitor's methods. Use {@code Void} 80 * for visitors that do not need an additional parameter. 81 * 82 * @author Joseph D. Darcy 83 * @author Scott Seligman 84 * @author Peter von der Ahé 85 * 86 * @see SimpleElementVisitor7 87 * @see SimpleElementVisitor8 88 * @see SimpleElementVisitor9 89 * @since 1.6 90 * @deprecated Release 6 is obsolete; update to a visitor for a newer 91 * release level. 92 */ 93 @Deprecated 94 @SupportedSourceVersion(RELEASE_6) 95 public class SimpleElementVisitor6<R, P> extends AbstractElementVisitor6<R, P> { 96 /** | 48 * subclasses with {@link java.lang.Override @Override} will help 49 * ensure that methods are overridden as intended. 50 * 51 * <p> <b>WARNING:</b> The {@code ElementVisitor} interface 52 * implemented by this class may have methods added to it in the 53 * future to accommodate new, currently unknown, language structures 54 * added to future versions of the Java™ programming language. 55 * Therefore, methods whose names begin with {@code "visit"} may be 56 * added to this class in the future; to avoid incompatibilities, 57 * classes which extend this class should not declare any instance 58 * methods with names beginning with {@code "visit"}. 59 * 60 * <p>When such a new visit method is added, the default 61 * implementation in this class will be to call the {@link 62 * #visitUnknown visitUnknown} method. A new simple element visitor 63 * class will also be introduced to correspond to the new language 64 * level; this visitor will have different default behavior for the 65 * visit method in question. When the new visitor is introduced, all 66 * or portions of this visitor may be deprecated. 67 * 68 * @param <R> the return type of this visitor's methods. Use {@code Void} 69 * for visitors that do not need to return results. 70 * @param <P> the type of the additional parameter to this visitor's methods. Use {@code Void} 71 * for visitors that do not need an additional parameter. 72 * 73 * @author Joseph D. Darcy 74 * @author Scott Seligman 75 * @author Peter von der Ahé 76 * 77 * @see SimpleElementVisitor7 78 * @see SimpleElementVisitor8 79 * @see SimpleElementVisitor9 80 * @since 1.6 81 * @deprecated Release 6 is obsolete; update to a visitor for a newer 82 * release level. 83 */ 84 @Deprecated 85 @SupportedSourceVersion(RELEASE_6) 86 public class SimpleElementVisitor6<R, P> extends AbstractElementVisitor6<R, P> { 87 /** |