53 * classes which extend this class should not declare any instance 54 * methods with names beginning with {@code "visit"}. 55 * 56 * <p>When such a new visit method is added, the default 57 * implementation in this class will be to call the {@link 58 * #visitUnknown visitUnknown} method. A new simple type visitor 59 * class will also be introduced to correspond to the new language 60 * level; this visitor will have different default behavior for the 61 * visit method in question. When the new visitor is introduced, all 62 * or portions of this visitor may be deprecated. 63 * 64 * @param <R> the return type of this visitor's methods. Use {@link 65 * Void} for visitors that do not need to return results. 66 * @param <P> the type of the additional parameter to this visitor's 67 * methods. Use {@code Void} for visitors that do not need an 68 * additional parameter. 69 * 70 * @author Joseph D. Darcy 71 * @author Scott Seligman 72 * @author Peter von der Ahé 73 * @since 1.6 74 */ 75 @SupportedSourceVersion(RELEASE_6) 76 public class SimpleTypeVisitor6<R, P> extends AbstractTypeVisitor6<R, P> { 77 /** 78 * Default value to be returned; {@link #defaultAction 79 * defaultAction} returns this value unless the method is 80 * overridden. 81 */ 82 protected final R DEFAULT_VALUE; 83 84 /** 85 * Constructor for concrete subclasses; uses {@code null} for the 86 * default value. 87 */ 88 protected SimpleTypeVisitor6(){ 89 DEFAULT_VALUE = null; 90 } 91 92 /** | 53 * classes which extend this class should not declare any instance 54 * methods with names beginning with {@code "visit"}. 55 * 56 * <p>When such a new visit method is added, the default 57 * implementation in this class will be to call the {@link 58 * #visitUnknown visitUnknown} method. A new simple type visitor 59 * class will also be introduced to correspond to the new language 60 * level; this visitor will have different default behavior for the 61 * visit method in question. When the new visitor is introduced, all 62 * or portions of this visitor may be deprecated. 63 * 64 * @param <R> the return type of this visitor's methods. Use {@link 65 * Void} for visitors that do not need to return results. 66 * @param <P> the type of the additional parameter to this visitor's 67 * methods. Use {@code Void} for visitors that do not need an 68 * additional parameter. 69 * 70 * @author Joseph D. Darcy 71 * @author Scott Seligman 72 * @author Peter von der Ahé 73 * 74 * @see SimpleTypeVisitor7 75 * @since 1.6 76 */ 77 @SupportedSourceVersion(RELEASE_6) 78 public class SimpleTypeVisitor6<R, P> extends AbstractTypeVisitor6<R, P> { 79 /** 80 * Default value to be returned; {@link #defaultAction 81 * defaultAction} returns this value unless the method is 82 * overridden. 83 */ 84 protected final R DEFAULT_VALUE; 85 86 /** 87 * Constructor for concrete subclasses; uses {@code null} for the 88 * default value. 89 */ 90 protected SimpleTypeVisitor6(){ 91 DEFAULT_VALUE = null; 92 } 93 94 /** |