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

Print this page




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

  79  * @since 1.6
  80  */
  81 @SupportedSourceVersion(RELEASE_6)
  82 public class SimpleElementVisitor6<R, P> extends AbstractElementVisitor6<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 SimpleElementVisitor6(){
  95         DEFAULT_VALUE = null;
  96     }
  97 
  98     /**




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