< prev index next >

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

Print this page




  81  * @param <R> the return type of this visitor's methods.  Use {@link
  82  *            Void} for visitors that do not need to return results.
  83  * @param <P> the type of the additional parameter to this visitor's
  84  *            methods.  Use {@code Void} for visitors that do not need an
  85  *            additional parameter.
  86  *
  87  * @see ElementScanner6
  88  * @see ElementScanner8
  89  * @see ElementScanner9
  90  * @since 1.7
  91  */
  92 @SupportedSourceVersion(RELEASE_7)
  93 public class ElementScanner7<R, P> extends ElementScanner6<R, P> {
  94     /**
  95      * Constructor for concrete subclasses; uses {@code null} for the
  96      * default value.
  97      *
  98      * @deprecated Release 7 is obsolete; update to a visitor for a newer
  99      * release level.
 100      */
 101     @Deprecated
 102     protected ElementScanner7(){
 103         super(null); // Superclass constructor deprecated too
 104     }
 105 
 106     /**
 107      * Constructor for concrete subclasses; uses the argument for the
 108      * default value.
 109      *
 110      * @param defaultValue the default value
 111      *
 112      * @deprecated Release 7 is obsolete; update to a visitor for a newer
 113      * release level.
 114      */
 115     @Deprecated
 116     protected ElementScanner7(R defaultValue){
 117         super(defaultValue); // Superclass constructor deprecated too
 118     }
 119 
 120     /**
 121      * {@inheritDoc}
 122      *
 123      * @implSpec This implementation scans the enclosed elements.
 124      *
 125      * @param e  {@inheritDoc}
 126      * @param p  {@inheritDoc}
 127      * @return the result of scanning
 128      */
 129     @Override
 130     public R visitVariable(VariableElement e, P p) {
 131         return scan(e.getEnclosedElements(), p);
 132     }
 133 }


  81  * @param <R> the return type of this visitor's methods.  Use {@link
  82  *            Void} for visitors that do not need to return results.
  83  * @param <P> the type of the additional parameter to this visitor's
  84  *            methods.  Use {@code Void} for visitors that do not need an
  85  *            additional parameter.
  86  *
  87  * @see ElementScanner6
  88  * @see ElementScanner8
  89  * @see ElementScanner9
  90  * @since 1.7
  91  */
  92 @SupportedSourceVersion(RELEASE_7)
  93 public class ElementScanner7<R, P> extends ElementScanner6<R, P> {
  94     /**
  95      * Constructor for concrete subclasses; uses {@code null} for the
  96      * default value.
  97      *
  98      * @deprecated Release 7 is obsolete; update to a visitor for a newer
  99      * release level.
 100      */
 101     @Deprecated(since="12")
 102     protected ElementScanner7(){
 103         super(null); // Superclass constructor deprecated too
 104     }
 105 
 106     /**
 107      * Constructor for concrete subclasses; uses the argument for the
 108      * default value.
 109      *
 110      * @param defaultValue the default value
 111      *
 112      * @deprecated Release 7 is obsolete; update to a visitor for a newer
 113      * release level.
 114      */
 115     @Deprecated(since="12")
 116     protected ElementScanner7(R defaultValue){
 117         super(defaultValue); // Superclass constructor deprecated too
 118     }
 119 
 120     /**
 121      * {@inheritDoc}
 122      *
 123      * @implSpec This implementation scans the enclosed elements.
 124      *
 125      * @param e  {@inheritDoc}
 126      * @param p  {@inheritDoc}
 127      * @return the result of scanning
 128      */
 129     @Override
 130     public R visitVariable(VariableElement e, P p) {
 131         return scan(e.getEnclosedElements(), p);
 132     }
 133 }
< prev index next >