< prev index next >

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

Print this page




  82      * Constructor for concrete subclasses; uses {@code null} for the
  83      * default value.
  84      */
  85     @SuppressWarnings("deprecation") // Superclass constructor deprecated
  86     protected ElementKindVisitor7() {
  87         super(null);
  88     }
  89 
  90     /**
  91      * Constructor for concrete subclasses; uses the argument for the
  92      * default value.
  93      *
  94      * @param defaultValue the value to assign to {@link #DEFAULT_VALUE}
  95      */
  96     @SuppressWarnings("deprecation") // Superclass constructor deprecated
  97     protected ElementKindVisitor7(R defaultValue) {
  98         super(defaultValue);
  99     }
 100 
 101     /**
 102      * Visits a {@code RESOURCE_VARIABLE} variable element by calling
 103      * {@code defaultAction}.

 104      *
 105      * @param e {@inheritDoc}
 106      * @param p {@inheritDoc}
 107      * @return  the result of {@code defaultAction}
 108      */
 109     @Override
 110     public R visitVariableAsResourceVariable(VariableElement e, P p) {
 111         return defaultAction(e, p);
 112     }
 113 }


  82      * Constructor for concrete subclasses; uses {@code null} for the
  83      * default value.
  84      */
  85     @SuppressWarnings("deprecation") // Superclass constructor deprecated
  86     protected ElementKindVisitor7() {
  87         super(null);
  88     }
  89 
  90     /**
  91      * Constructor for concrete subclasses; uses the argument for the
  92      * default value.
  93      *
  94      * @param defaultValue the value to assign to {@link #DEFAULT_VALUE}
  95      */
  96     @SuppressWarnings("deprecation") // Superclass constructor deprecated
  97     protected ElementKindVisitor7(R defaultValue) {
  98         super(defaultValue);
  99     }
 100 
 101     /**
 102      * {@inheritDoc}
 103      * 
 104      * @implSpec This implementation calls {@code defaultAction}.
 105      *
 106      * @param e {@inheritDoc}
 107      * @param p {@inheritDoc}
 108      * @return  the result of {@code defaultAction}
 109      */
 110     @Override
 111     public R visitVariableAsResourceVariable(VariableElement e, P p) {
 112         return defaultAction(e, p);
 113     }
 114 }
< prev index next >