< prev index next >

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

Print this page




  85  * #visitUnknown visitUnknown} method.  A new element scanner visitor
  86  * class will also be introduced to correspond to the new language
  87  * level; this visitor will have different default behavior for the
  88  * visit method in question.  When the new visitor is introduced, all
  89  * or portions of this visitor may be deprecated.
  90  *
  91  * @param <R> the return type of this visitor's methods.  Use {@link
  92  *            Void} for visitors that do not need to return results.
  93  * @param <P> the type of the additional parameter to this visitor's
  94  *            methods.  Use {@code Void} for visitors that do not need an
  95  *            additional parameter.
  96  *
  97  * @see ElementScanner6
  98  * @see ElementScanner7
  99  * @see ElementScanner8
 100  * @see ElementScanner9
 101  * @since 14
 102  */
 103 @jdk.internal.PreviewFeature(feature=jdk.internal.PreviewFeature.Feature.RECORDS,
 104                              essentialAPI=false)
 105 @SupportedSourceVersion(RELEASE_14)
 106 public class ElementScanner14<R, P> extends ElementScanner9<R, P> {
 107     /**
 108      * Constructor for concrete subclasses; uses {@code null} for the
 109      * default value.
 110      */
 111     protected ElementScanner14(){
 112         super(null);
 113     }
 114 
 115     /**
 116      * Constructor for concrete subclasses; uses the argument for the
 117      * default value.
 118      *
 119      * @param defaultValue the default value
 120      */
 121     protected ElementScanner14(R defaultValue){
 122         super(defaultValue);
 123     }
 124 
 125     /**




  85  * #visitUnknown visitUnknown} method.  A new element scanner visitor
  86  * class will also be introduced to correspond to the new language
  87  * level; this visitor will have different default behavior for the
  88  * visit method in question.  When the new visitor is introduced, all
  89  * or portions of this visitor may be deprecated.
  90  *
  91  * @param <R> the return type of this visitor's methods.  Use {@link
  92  *            Void} for visitors that do not need to return results.
  93  * @param <P> the type of the additional parameter to this visitor's
  94  *            methods.  Use {@code Void} for visitors that do not need an
  95  *            additional parameter.
  96  *
  97  * @see ElementScanner6
  98  * @see ElementScanner7
  99  * @see ElementScanner8
 100  * @see ElementScanner9
 101  * @since 14
 102  */
 103 @jdk.internal.PreviewFeature(feature=jdk.internal.PreviewFeature.Feature.RECORDS,
 104                              essentialAPI=false)
 105 @SupportedSourceVersion(RELEASE_15)
 106 public class ElementScanner14<R, P> extends ElementScanner9<R, P> {
 107     /**
 108      * Constructor for concrete subclasses; uses {@code null} for the
 109      * default value.
 110      */
 111     protected ElementScanner14(){
 112         super(null);
 113     }
 114 
 115     /**
 116      * Constructor for concrete subclasses; uses the argument for the
 117      * default value.
 118      *
 119      * @param defaultValue the default value
 120      */
 121     protected ElementScanner14(R defaultValue){
 122         super(defaultValue);
 123     }
 124 
 125     /**


< prev index next >