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 type kind visitor class 63 * will also be introduced to correspond to the new language level; 64 * this visitor will have different default behavior for the visit 65 * method in question. When the new visitor is introduced, all or 66 * portions of this visitor may be deprecated. 67 * 68 * @param <R> the return type of this visitor's methods. Use {@link 69 * Void} for visitors that do not need to return results. 70 * @param <P> the type of the additional parameter to this visitor's 71 * methods. Use {@code Void} for visitors that do not need an 72 * additional parameter. 73 * 74 * @author Joseph D. Darcy 75 * @author Scott Seligman 76 * @author Peter von der Ahé 77 * @since 1.6 78 */ 79 @SupportedSourceVersion(RELEASE_6) 80 public class TypeKindVisitor6<R, P> extends SimpleTypeVisitor6<R, P> { 81 /** 82 * Constructor for concrete subclasses to call; uses {@code null} 83 * for the default value. 84 */ 85 protected TypeKindVisitor6() { 86 super(null); 87 } 88 89 90 /** 91 * Constructor for concrete subclasses to call; uses the argument 92 * for the default value. 93 * 94 * @param defaultValue the value to assign to {@link #DEFAULT_VALUE} 95 */ 96 protected TypeKindVisitor6(R defaultValue) { | 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 type kind visitor class 63 * will also be introduced to correspond to the new language level; 64 * this visitor will have different default behavior for the visit 65 * method in question. When the new visitor is introduced, all or 66 * portions of this visitor may be deprecated. 67 * 68 * @param <R> the return type of this visitor's methods. Use {@link 69 * Void} for visitors that do not need to return results. 70 * @param <P> the type of the additional parameter to this visitor's 71 * methods. Use {@code Void} for visitors that do not need an 72 * additional parameter. 73 * 74 * @author Joseph D. Darcy 75 * @author Scott Seligman 76 * @author Peter von der Ahé 77 * 78 * @see TypeKindVisitor7 79 * @since 1.6 80 */ 81 @SupportedSourceVersion(RELEASE_6) 82 public class TypeKindVisitor6<R, P> extends SimpleTypeVisitor6<R, P> { 83 /** 84 * Constructor for concrete subclasses to call; uses {@code null} 85 * for the default value. 86 */ 87 protected TypeKindVisitor6() { 88 super(null); 89 } 90 91 92 /** 93 * Constructor for concrete subclasses to call; uses the argument 94 * for the default value. 95 * 96 * @param defaultValue the value to assign to {@link #DEFAULT_VALUE} 97 */ 98 protected TypeKindVisitor6(R defaultValue) { |