< prev index next >

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

Print this page




  58  * language feature cannot be used to this version of the API since
  59  * this version is required to be runnable on Java SE 7
  60  * implementations.  Future versions of the API that are only required
  61  * to run on Java SE 8 and later may take advantage of default methods
  62  * in this situation.
  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&eacute;
  73  *
  74  * @see AbstractTypeVisitor7
  75  * @see AbstractTypeVisitor8
  76  * @see AbstractTypeVisitor9
  77  * @since 1.6
  78  * @deprecated Release 6 is obsolete; update to a visitor for a newer
  79  * release level.
  80  */
  81 @Deprecated
  82 @SupportedSourceVersion(RELEASE_6)
  83 public abstract class AbstractTypeVisitor6<R, P> implements TypeVisitor<R, P> {
  84     /**
  85      * Constructor for concrete subclasses to call.


  86      */

  87     protected AbstractTypeVisitor6() {}
  88 
  89     /**
  90      * Visits any type mirror as if by passing itself to that type
  91      * mirror's {@link TypeMirror#accept accept} method.  The
  92      * invocation {@code v.visit(t, p)} is equivalent to {@code
  93      * t.accept(v, p)}.
  94      *
  95      * @param t  the type to visit
  96      * @param p  a visitor-specified parameter
  97      * @return a visitor-specified result
  98      */
  99     public final R visit(TypeMirror t, P p) {
 100         return t.accept(this, p);
 101     }
 102 
 103     /**
 104      * Visits any type mirror as if by passing itself to that type
 105      * mirror's {@link TypeMirror#accept accept} method and passing
 106      * {@code null} for the additional parameter.  The invocation




  58  * language feature cannot be used to this version of the API since
  59  * this version is required to be runnable on Java SE 7
  60  * implementations.  Future versions of the API that are only required
  61  * to run on Java SE 8 and later may take advantage of default methods
  62  * in this situation.
  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&eacute;
  73  *
  74  * @see AbstractTypeVisitor7
  75  * @see AbstractTypeVisitor8
  76  * @see AbstractTypeVisitor9
  77  * @since 1.6


  78  */

  79 @SupportedSourceVersion(RELEASE_6)
  80 public abstract class AbstractTypeVisitor6<R, P> implements TypeVisitor<R, P> {
  81     /**
  82      * Constructor for concrete subclasses to call.
  83      * @deprecated Release 6 is obsolete; update to a visitor for a newer
  84      * release level.
  85      */
  86     @Deprecated
  87     protected AbstractTypeVisitor6() {}
  88 
  89     /**
  90      * Visits any type mirror as if by passing itself to that type
  91      * mirror's {@link TypeMirror#accept accept} method.  The
  92      * invocation {@code v.visit(t, p)} is equivalent to {@code
  93      * t.accept(v, p)}.
  94      *
  95      * @param t  the type to visit
  96      * @param p  a visitor-specified parameter
  97      * @return a visitor-specified result
  98      */
  99     public final R visit(TypeMirror t, P p) {
 100         return t.accept(this, p);
 101     }
 102 
 103     /**
 104      * Visits any type mirror as if by passing itself to that type
 105      * mirror's {@link TypeMirror#accept accept} method and passing
 106      * {@code null} for the additional parameter.  The invocation


< prev index next >