src/share/classes/javax/lang/model/util/SimpleTypeVisitor7.java

Print this page




  51  * Therefore, methods whose names begin with {@code "visit"} may be
  52  * added to this class in the future; to avoid incompatibilities,
  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  * @see SimpleTypeVisitor6

  71  * @since 1.7
  72  */
  73 @SupportedSourceVersion(RELEASE_7)
  74 public class SimpleTypeVisitor7<R, P> extends SimpleTypeVisitor6<R, P> {
  75     /**
  76      * Constructor for concrete subclasses; uses {@code null} for the
  77      * default value.
  78      */
  79     protected SimpleTypeVisitor7(){
  80         super(null);
  81     }
  82 
  83     /**
  84      * Constructor for concrete subclasses; uses the argument for the
  85      * default value.
  86      *
  87      * @param defaultValue the value to assign to {@link #DEFAULT_VALUE}
  88      */
  89     protected SimpleTypeVisitor7(R defaultValue){
  90         super(defaultValue);


  51  * Therefore, methods whose names begin with {@code "visit"} may be
  52  * added to this class in the future; to avoid incompatibilities,
  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  * @see SimpleTypeVisitor6
  71  * @see SimpleTypeVisitor8
  72  * @since 1.7
  73  */
  74 @SupportedSourceVersion(RELEASE_7)
  75 public class SimpleTypeVisitor7<R, P> extends SimpleTypeVisitor6<R, P> {
  76     /**
  77      * Constructor for concrete subclasses; uses {@code null} for the
  78      * default value.
  79      */
  80     protected SimpleTypeVisitor7(){
  81         super(null);
  82     }
  83 
  84     /**
  85      * Constructor for concrete subclasses; uses the argument for the
  86      * default value.
  87      *
  88      * @param defaultValue the value to assign to {@link #DEFAULT_VALUE}
  89      */
  90     protected SimpleTypeVisitor7(R defaultValue){
  91         super(defaultValue);