81 public class ElementKindVisitor9<R, P> extends ElementKindVisitor8<R, P> { 82 /** 83 * Constructor for concrete subclasses; uses {@code null} for the 84 * default value. 85 */ 86 protected ElementKindVisitor9() { 87 super(null); 88 } 89 90 /** 91 * Constructor for concrete subclasses; uses the argument for the 92 * default value. 93 * 94 * @param defaultValue the value to assign to {@link #DEFAULT_VALUE} 95 */ 96 protected ElementKindVisitor9(R defaultValue) { 97 super(defaultValue); 98 } 99 100 /** 101 * Visits a {@code ModuleElement} by calling {@code 102 * defaultAction}. 103 * 104 * @param e the element to visit 105 * @param p a visitor-specified parameter 106 * @return the result of {@code defaultAction} 107 */ 108 @Override 109 public R visitModule(ModuleElement e, P p) { 110 return defaultAction(e, p); 111 } 112 } | 81 public class ElementKindVisitor9<R, P> extends ElementKindVisitor8<R, P> { 82 /** 83 * Constructor for concrete subclasses; uses {@code null} for the 84 * default value. 85 */ 86 protected ElementKindVisitor9() { 87 super(null); 88 } 89 90 /** 91 * Constructor for concrete subclasses; uses the argument for the 92 * default value. 93 * 94 * @param defaultValue the value to assign to {@link #DEFAULT_VALUE} 95 */ 96 protected ElementKindVisitor9(R defaultValue) { 97 super(defaultValue); 98 } 99 100 /** 101 * {@inheritDoc} 102 * 103 * @implSpec This implementation calls {@code defaultAction}. 104 * 105 * @param e the element to visit 106 * @param p a visitor-specified parameter 107 * @return the result of {@code defaultAction} 108 */ 109 @Override 110 public R visitModule(ModuleElement e, P p) { 111 return defaultAction(e, p); 112 } 113 } |