< prev index next >

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

Print this page




  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  * @see SimpleTypeVisitor6
  71  * @see SimpleTypeVisitor8
  72  * @see SimpleTypeVisitor9
  73  * @since 1.7
  74  */
  75 @SupportedSourceVersion(RELEASE_7)
  76 public class SimpleTypeVisitor7<R, P> extends SimpleTypeVisitor6<R, P> {
  77     /**
  78      * Constructor for concrete subclasses; uses {@code null} for the
  79      * default value.
  80      *
  81      * @deprecated Release 7 is obsolete; update to a visitor for a newer
  82      * release level.
  83      */
  84     @Deprecated
  85     protected SimpleTypeVisitor7(){
  86         super(null); // Superclass constructor deprecated too
  87     }
  88 
  89     /**
  90      * Constructor for concrete subclasses; uses the argument for the
  91      * default value.
  92      *
  93      * @param defaultValue the value to assign to {@link #DEFAULT_VALUE}
  94      *
  95      * @deprecated Release 7 is obsolete; update to a visitor for a newer
  96      * release level.
  97      */
  98     @Deprecated
  99     protected SimpleTypeVisitor7(R defaultValue){
 100         super(defaultValue); // Superclass constructor deprecated too
 101     }
 102 
 103     /**
 104      * {@inheritDoc}
 105      *
 106      * @implSpec This implementation calls {@code defaultAction}.
 107      *
 108      * @param t  {@inheritDoc}
 109      * @param p  {@inheritDoc}
 110      * @return the result of {@code defaultAction}
 111      */
 112     @Override
 113     public R visitUnion(UnionType t, P p) {
 114         return defaultAction(t, p);
 115     }
 116 }


  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  * @see SimpleTypeVisitor6
  71  * @see SimpleTypeVisitor8
  72  * @see SimpleTypeVisitor9
  73  * @since 1.7
  74  */
  75 @SupportedSourceVersion(RELEASE_7)
  76 public class SimpleTypeVisitor7<R, P> extends SimpleTypeVisitor6<R, P> {
  77     /**
  78      * Constructor for concrete subclasses; uses {@code null} for the
  79      * default value.
  80      *
  81      * @deprecated Release 7 is obsolete; update to a visitor for a newer
  82      * release level.
  83      */
  84     @Deprecated(since="12")
  85     protected SimpleTypeVisitor7(){
  86         super(null); // Superclass constructor deprecated too
  87     }
  88 
  89     /**
  90      * Constructor for concrete subclasses; uses the argument for the
  91      * default value.
  92      *
  93      * @param defaultValue the value to assign to {@link #DEFAULT_VALUE}
  94      *
  95      * @deprecated Release 7 is obsolete; update to a visitor for a newer
  96      * release level.
  97      */
  98     @Deprecated(since="12")
  99     protected SimpleTypeVisitor7(R defaultValue){
 100         super(defaultValue); // Superclass constructor deprecated too
 101     }
 102 
 103     /**
 104      * {@inheritDoc}
 105      *
 106      * @implSpec This implementation calls {@code defaultAction}.
 107      *
 108      * @param t  {@inheritDoc}
 109      * @param p  {@inheritDoc}
 110      * @return the result of {@code defaultAction}
 111      */
 112     @Override
 113     public R visitUnion(UnionType t, P p) {
 114         return defaultAction(t, p);
 115     }
 116 }
< prev index next >