64 * 65 * @param <R> the return type of this visitor's methods. Use {@code Void} 66 * for visitors that do not need to return results. 67 * @param <P> the type of the additional parameter to this visitor's methods. Use {@code Void} 68 * for visitors that do not need an additional parameter. 69 * 70 * @see SimpleElementVisitor6 71 * @see SimpleElementVisitor8 72 * @see SimpleElementVisitor9 73 * @since 1.7 74 */ 75 @SupportedSourceVersion(RELEASE_7) 76 public class SimpleElementVisitor7<R, P> extends SimpleElementVisitor6<R, P> { 77 /** 78 * Constructor for concrete subclasses; uses {@code null} for the 79 * default value. 80 * 81 * @deprecated Release 7 is obsolete; update to a visitor for a newer 82 * release level. 83 */ 84 @Deprecated 85 protected SimpleElementVisitor7(){ 86 super(null); // Superclass constructor deprecated too 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 * @deprecated Release 7 is obsolete; update to a visitor for a newer 96 * release level. 97 */ 98 @Deprecated 99 protected SimpleElementVisitor7(R defaultValue){ 100 super(defaultValue); // Superclass constructor deprecated too 101 } 102 103 /** 104 * {@inheritDoc} 105 * 106 * @implSpec This implementation calls {@code defaultAction}. 107 * 108 * @param e {@inheritDoc} 109 * @param p {@inheritDoc} 110 * @return {@inheritDoc} 111 */ 112 @Override 113 public R visitVariable(VariableElement e, P p) { 114 return defaultAction(e, p); 115 } 116 } | 64 * 65 * @param <R> the return type of this visitor's methods. Use {@code Void} 66 * for visitors that do not need to return results. 67 * @param <P> the type of the additional parameter to this visitor's methods. Use {@code Void} 68 * for visitors that do not need an additional parameter. 69 * 70 * @see SimpleElementVisitor6 71 * @see SimpleElementVisitor8 72 * @see SimpleElementVisitor9 73 * @since 1.7 74 */ 75 @SupportedSourceVersion(RELEASE_7) 76 public class SimpleElementVisitor7<R, P> extends SimpleElementVisitor6<R, P> { 77 /** 78 * Constructor for concrete subclasses; uses {@code null} for the 79 * default value. 80 * 81 * @deprecated Release 7 is obsolete; update to a visitor for a newer 82 * release level. 83 */ 84 @Deprecated(since="12") 85 protected SimpleElementVisitor7(){ 86 super(null); // Superclass constructor deprecated too 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 * @deprecated Release 7 is obsolete; update to a visitor for a newer 96 * release level. 97 */ 98 @Deprecated(since="12") 99 protected SimpleElementVisitor7(R defaultValue){ 100 super(defaultValue); // Superclass constructor deprecated too 101 } 102 103 /** 104 * {@inheritDoc} 105 * 106 * @implSpec This implementation calls {@code defaultAction}. 107 * 108 * @param e {@inheritDoc} 109 * @param p {@inheritDoc} 110 * @return {@inheritDoc} 111 */ 112 @Override 113 public R visitVariable(VariableElement e, P p) { 114 return defaultAction(e, p); 115 } 116 } |