76 */ 77 @SupportedSourceVersion(RELEASE_9) 78 public class TypeKindVisitor9<R, P> extends TypeKindVisitor8<R, P> { 79 /** 80 * Constructor for concrete subclasses to call; uses {@code null} 81 * for the default value. 82 */ 83 protected TypeKindVisitor9() { 84 super(null); 85 } 86 87 /** 88 * Constructor for concrete subclasses to call; uses the argument 89 * for the default value. 90 * 91 * @param defaultValue the value to assign to {@link #DEFAULT_VALUE} 92 */ 93 protected TypeKindVisitor9(R defaultValue) { 94 super(defaultValue); 95 } 96 } | 76 */ 77 @SupportedSourceVersion(RELEASE_9) 78 public class TypeKindVisitor9<R, P> extends TypeKindVisitor8<R, P> { 79 /** 80 * Constructor for concrete subclasses to call; uses {@code null} 81 * for the default value. 82 */ 83 protected TypeKindVisitor9() { 84 super(null); 85 } 86 87 /** 88 * Constructor for concrete subclasses to call; uses the argument 89 * for the default value. 90 * 91 * @param defaultValue the value to assign to {@link #DEFAULT_VALUE} 92 */ 93 protected TypeKindVisitor9(R defaultValue) { 94 super(defaultValue); 95 } 96 97 /** 98 * {@inheritDoc} 99 * 100 * @implSpec This implementation calls {@code defaultAction}. 101 * 102 * @param t {@inheritDoc} 103 * @param p {@inheritDoc} 104 * @return the result of {@code defaultAction} 105 * 106 * @since 10 107 */ 108 @Override 109 public R visitNoTypeAsModule(NoType t, P p) { 110 return defaultAction(t, p); 111 } 112 } |