< prev index next >

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

Print this page




  57  * <p>Note that adding a default implementation of a new visit method
  58  * in a visitor class will occur instead of adding a <em>default
  59  * method</em> directly in the visitor interface since a Java SE 8
  60  * language feature cannot be used to this version of the API since
  61  * this version is required to be runnable on Java SE 7
  62  * implementations.  Future versions of the API that are only required
  63  * to run on Java SE 8 and later may take advantage of default methods
  64  * in this situation.
  65  *
  66  * @param <R> the return type of this visitor's methods
  67  * @param <P> the type of the additional parameter to this visitor's methods.
  68  *
  69  * @author Joseph D. Darcy
  70  * @author Scott Seligman
  71  * @author Peter von der Ah&eacute;
  72  *
  73  * @see AbstractAnnotationValueVisitor7
  74  * @see AbstractAnnotationValueVisitor8
  75  * @see AbstractAnnotationValueVisitor9
  76  * @since 1.6
  77  * @deprecated Release 6 is obsolete; update to a visitor for a newer
  78  * release level.
  79  */
  80 @Deprecated
  81 @SupportedSourceVersion(RELEASE_6)
  82 public abstract class AbstractAnnotationValueVisitor6<R, P>
  83     implements AnnotationValueVisitor<R, P> {
  84 
  85     /**
  86      * Constructor for concrete subclasses to call.


  87      */

  88     protected AbstractAnnotationValueVisitor6() {}
  89 
  90     /**
  91      * Visits an annotation value as if by passing itself to that
  92      * value's {@link AnnotationValue#accept accept}.  The invocation
  93      * {@code v.visit(av)} is equivalent to {@code av.accept(v, p)}.
  94      * @param av {@inheritDoc}
  95      * @param p  {@inheritDoc}
  96      */
  97     public final R visit(AnnotationValue av, P p) {
  98         return av.accept(this, p);
  99     }
 100 
 101     /**
 102      * Visits an annotation value as if by passing itself to that
 103      * value's {@link AnnotationValue#accept accept} method passing
 104      * {@code null} for the additional parameter.  The invocation
 105      * {@code v.visit(av)} is equivalent to {@code av.accept(v,
 106      * null)}.
 107      * @param av {@inheritDoc}




  57  * <p>Note that adding a default implementation of a new visit method
  58  * in a visitor class will occur instead of adding a <em>default
  59  * method</em> directly in the visitor interface since a Java SE 8
  60  * language feature cannot be used to this version of the API since
  61  * this version is required to be runnable on Java SE 7
  62  * implementations.  Future versions of the API that are only required
  63  * to run on Java SE 8 and later may take advantage of default methods
  64  * in this situation.
  65  *
  66  * @param <R> the return type of this visitor's methods
  67  * @param <P> the type of the additional parameter to this visitor's methods.
  68  *
  69  * @author Joseph D. Darcy
  70  * @author Scott Seligman
  71  * @author Peter von der Ah&eacute;
  72  *
  73  * @see AbstractAnnotationValueVisitor7
  74  * @see AbstractAnnotationValueVisitor8
  75  * @see AbstractAnnotationValueVisitor9
  76  * @since 1.6


  77  */

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


< prev index next >