< prev index next >

src/java.compiler/share/classes/javax/lang/model/util/SimpleElementVisitor14.java

Print this page




  65  * implementation in this class will be to call the {@link
  66  * #visitUnknown visitUnknown} method.  A new simple element visitor
  67  * class will also be introduced to correspond to the new language
  68  * level; this visitor will have different default behavior for the
  69  * visit method in question.  When the new visitor is introduced, all
  70  * or portions of this visitor may be deprecated.
  71  *
  72  * @param <R> the return type of this visitor's methods.  Use {@code Void}
  73  *             for visitors that do not need to return results.
  74  * @param <P> the type of the additional parameter to this visitor's methods.  Use {@code Void}
  75  *              for visitors that do not need an additional parameter.
  76  *
  77  * @see SimpleElementVisitor6
  78  * @see SimpleElementVisitor7
  79  * @see SimpleElementVisitor8
  80  * @see SimpleElementVisitor9
  81  * @since 14
  82  */
  83 @jdk.internal.PreviewFeature(feature=jdk.internal.PreviewFeature.Feature.RECORDS,
  84                              essentialAPI=false)
  85 @SupportedSourceVersion(RELEASE_14)
  86 public class SimpleElementVisitor14<R, P> extends SimpleElementVisitor9<R, P> {
  87     /**
  88      * Constructor for concrete subclasses; uses {@code null} for the
  89      * default value.
  90      */
  91     protected SimpleElementVisitor14(){
  92         super(null);
  93     }
  94 
  95     /**
  96      * Constructor for concrete subclasses; uses the argument for the
  97      * default value.
  98      *
  99      * @param defaultValue the value to assign to {@link #DEFAULT_VALUE}
 100      */
 101     protected SimpleElementVisitor14(R defaultValue){
 102         super(defaultValue);
 103     }
 104 
 105     /**


  65  * implementation in this class will be to call the {@link
  66  * #visitUnknown visitUnknown} method.  A new simple element visitor
  67  * class will also be introduced to correspond to the new language
  68  * level; this visitor will have different default behavior for the
  69  * visit method in question.  When the new visitor is introduced, all
  70  * or portions of this visitor may be deprecated.
  71  *
  72  * @param <R> the return type of this visitor's methods.  Use {@code Void}
  73  *             for visitors that do not need to return results.
  74  * @param <P> the type of the additional parameter to this visitor's methods.  Use {@code Void}
  75  *              for visitors that do not need an additional parameter.
  76  *
  77  * @see SimpleElementVisitor6
  78  * @see SimpleElementVisitor7
  79  * @see SimpleElementVisitor8
  80  * @see SimpleElementVisitor9
  81  * @since 14
  82  */
  83 @jdk.internal.PreviewFeature(feature=jdk.internal.PreviewFeature.Feature.RECORDS,
  84                              essentialAPI=false)
  85 @SupportedSourceVersion(RELEASE_15)
  86 public class SimpleElementVisitor14<R, P> extends SimpleElementVisitor9<R, P> {
  87     /**
  88      * Constructor for concrete subclasses; uses {@code null} for the
  89      * default value.
  90      */
  91     protected SimpleElementVisitor14(){
  92         super(null);
  93     }
  94 
  95     /**
  96      * Constructor for concrete subclasses; uses the argument for the
  97      * default value.
  98      *
  99      * @param defaultValue the value to assign to {@link #DEFAULT_VALUE}
 100      */
 101     protected SimpleElementVisitor14(R defaultValue){
 102         super(defaultValue);
 103     }
 104 
 105     /**
< prev index next >