src/share/classes/javax/lang/model/util/SimpleTypeVisitor6.java

Print this page




  58  *
  59  * <p>When such a new visit method is added, the default
  60  * implementation in this class will be to call the {@link
  61  * #visitUnknown visitUnknown} method.  A new simple type visitor
  62  * class will also be introduced to correspond to the new language
  63  * level; this visitor will have different default behavior for the
  64  * visit method in question.  When the new visitor is introduced, all
  65  * or portions of this visitor may be deprecated.
  66  *
  67  * @param <R> the return type of this visitor's methods.  Use {@link
  68  *            Void} for visitors that do not need to return results.
  69  * @param <P> the type of the additional parameter to this visitor's
  70  *            methods.  Use {@code Void} for visitors that do not need an
  71  *            additional parameter.
  72  *
  73  * @author Joseph D. Darcy
  74  * @author Scott Seligman
  75  * @author Peter von der Ah&eacute;
  76  *
  77  * @see SimpleTypeVisitor7

  78  * @since 1.6
  79  */
  80 @SupportedSourceVersion(RELEASE_6)
  81 public class SimpleTypeVisitor6<R, P> extends AbstractTypeVisitor6<R, P> {
  82     /**
  83      * Default value to be returned; {@link #defaultAction
  84      * defaultAction} returns this value unless the method is
  85      * overridden.
  86      */
  87     protected final R DEFAULT_VALUE;
  88 
  89     /**
  90      * Constructor for concrete subclasses; uses {@code null} for the
  91      * default value.
  92      */
  93     protected SimpleTypeVisitor6(){
  94         DEFAULT_VALUE = null;
  95     }
  96 
  97     /**




  58  *
  59  * <p>When such a new visit method is added, the default
  60  * implementation in this class will be to call the {@link
  61  * #visitUnknown visitUnknown} method.  A new simple type visitor
  62  * class will also be introduced to correspond to the new language
  63  * level; this visitor will have different default behavior for the
  64  * visit method in question.  When the new visitor is introduced, all
  65  * or portions of this visitor may be deprecated.
  66  *
  67  * @param <R> the return type of this visitor's methods.  Use {@link
  68  *            Void} for visitors that do not need to return results.
  69  * @param <P> the type of the additional parameter to this visitor's
  70  *            methods.  Use {@code Void} for visitors that do not need an
  71  *            additional parameter.
  72  *
  73  * @author Joseph D. Darcy
  74  * @author Scott Seligman
  75  * @author Peter von der Ah&eacute;
  76  *
  77  * @see SimpleTypeVisitor7
  78  * @see SimpleTypeVisitor8
  79  * @since 1.6
  80  */
  81 @SupportedSourceVersion(RELEASE_6)
  82 public class SimpleTypeVisitor6<R, P> extends AbstractTypeVisitor6<R, P> {
  83     /**
  84      * Default value to be returned; {@link #defaultAction
  85      * defaultAction} returns this value unless the method is
  86      * overridden.
  87      */
  88     protected final R DEFAULT_VALUE;
  89 
  90     /**
  91      * Constructor for concrete subclasses; uses {@code null} for the
  92      * default value.
  93      */
  94     protected SimpleTypeVisitor6(){
  95         DEFAULT_VALUE = null;
  96     }
  97 
  98     /**