< prev index next >

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

Print this page

        

*** 112,121 **** --- 112,123 ---- /** * {@inheritDoc} * * The element argument has kind {@code PACKAGE}. * + * @implSpec This implementation calls {@code defaultAction}. + * * @param e {@inheritDoc} * @param p {@inheritDoc} * @return {@inheritDoc} */ @Override
*** 123,133 **** assert e.getKind() == PACKAGE: "Bad kind on PackageElement"; return defaultAction(e, p); } /** ! * Visits a type element, dispatching to the visit method for the * specific {@linkplain ElementKind kind} of type, {@code * ANNOTATION_TYPE}, {@code CLASS}, {@code ENUM}, or {@code * INTERFACE}. * * @param e {@inheritDoc} --- 125,137 ---- assert e.getKind() == PACKAGE: "Bad kind on PackageElement"; return defaultAction(e, p); } /** ! * {@inheritDoc} ! * ! * @implSpec This implementation dispatches to the visit method for the * specific {@linkplain ElementKind kind} of type, {@code * ANNOTATION_TYPE}, {@code CLASS}, {@code ENUM}, or {@code * INTERFACE}. * * @param e {@inheritDoc}
*** 154,212 **** throw new AssertionError("Bad kind " + k + " for TypeElement" + e); } } /** ! * Visits an {@code ANNOTATION_TYPE} type element by calling ! * {@code defaultAction}. * * @param e the element to visit * @param p a visitor-specified parameter * @return the result of {@code defaultAction} */ public R visitTypeAsAnnotationType(TypeElement e, P p) { return defaultAction(e, p); } /** ! * Visits a {@code CLASS} type element by calling {@code ! * defaultAction}. * * @param e the element to visit * @param p a visitor-specified parameter * @return the result of {@code defaultAction} */ public R visitTypeAsClass(TypeElement e, P p) { return defaultAction(e, p); } /** ! * Visits an {@code ENUM} type element by calling {@code ! * defaultAction}. * * @param e the element to visit * @param p a visitor-specified parameter * @return the result of {@code defaultAction} */ public R visitTypeAsEnum(TypeElement e, P p) { return defaultAction(e, p); } /** ! * Visits an {@code INTERFACE} type element by calling {@code ! * defaultAction}. *. * @param e the element to visit * @param p a visitor-specified parameter * @return the result of {@code defaultAction} */ public R visitTypeAsInterface(TypeElement e, P p) { return defaultAction(e, p); } /** ! * Visits a variable element, dispatching to the visit method for * the specific {@linkplain ElementKind kind} of variable, {@code * ENUM_CONSTANT}, {@code EXCEPTION_PARAMETER}, {@code FIELD}, * {@code LOCAL_VARIABLE}, {@code PARAMETER}, or {@code RESOURCE_VARIABLE}. * * @param e {@inheritDoc} --- 158,222 ---- throw new AssertionError("Bad kind " + k + " for TypeElement" + e); } } /** ! * Visits an {@code ANNOTATION_TYPE} type element. ! * ! * @implSpec This implementation calls {@code defaultAction}. * * @param e the element to visit * @param p a visitor-specified parameter * @return the result of {@code defaultAction} */ public R visitTypeAsAnnotationType(TypeElement e, P p) { return defaultAction(e, p); } /** ! * Visits a {@code CLASS} type element. ! * ! * @implSpec This implementation calls {@code defaultAction}. * * @param e the element to visit * @param p a visitor-specified parameter * @return the result of {@code defaultAction} */ public R visitTypeAsClass(TypeElement e, P p) { return defaultAction(e, p); } /** ! * Visits an {@code ENUM} type element. ! * ! * @implSpec This implementation calls {@code defaultAction}. * * @param e the element to visit * @param p a visitor-specified parameter * @return the result of {@code defaultAction} */ public R visitTypeAsEnum(TypeElement e, P p) { return defaultAction(e, p); } /** ! * Visits an {@code INTERFACE} type element. ! * ! * @implSpec This implementation calls {@code defaultAction}. *. * @param e the element to visit * @param p a visitor-specified parameter * @return the result of {@code defaultAction} */ public R visitTypeAsInterface(TypeElement e, P p) { return defaultAction(e, p); } /** ! * Visits a variable element ! * ! * @implSpec This implementation dispatches to the visit method for * the specific {@linkplain ElementKind kind} of variable, {@code * ENUM_CONSTANT}, {@code EXCEPTION_PARAMETER}, {@code FIELD}, * {@code LOCAL_VARIABLE}, {@code PARAMETER}, or {@code RESOURCE_VARIABLE}. * * @param e {@inheritDoc}
*** 239,310 **** throw new AssertionError("Bad kind " + k + " for VariableElement" + e); } } /** ! * Visits an {@code ENUM_CONSTANT} variable element by calling ! * {@code defaultAction}. * * @param e the element to visit * @param p a visitor-specified parameter * @return the result of {@code defaultAction} */ public R visitVariableAsEnumConstant(VariableElement e, P p) { return defaultAction(e, p); } /** ! * Visits an {@code EXCEPTION_PARAMETER} variable element by calling ! * {@code defaultAction}. * * @param e the element to visit * @param p a visitor-specified parameter * @return the result of {@code defaultAction} */ public R visitVariableAsExceptionParameter(VariableElement e, P p) { return defaultAction(e, p); } /** ! * Visits a {@code FIELD} variable element by calling ! * {@code defaultAction}. * * @param e the element to visit * @param p a visitor-specified parameter * @return the result of {@code defaultAction} */ public R visitVariableAsField(VariableElement e, P p) { return defaultAction(e, p); } /** ! * Visits a {@code LOCAL_VARIABLE} variable element by calling ! * {@code defaultAction}. * * @param e the element to visit * @param p a visitor-specified parameter * @return the result of {@code defaultAction} */ public R visitVariableAsLocalVariable(VariableElement e, P p) { return defaultAction(e, p); } /** ! * Visits a {@code PARAMETER} variable element by calling ! * {@code defaultAction}. * * @param e the element to visit * @param p a visitor-specified parameter * @return the result of {@code defaultAction} */ public R visitVariableAsParameter(VariableElement e, P p) { return defaultAction(e, p); } /** ! * Visits a {@code RESOURCE_VARIABLE} variable element by calling ! * {@code visitUnknown}. * * @param e the element to visit * @param p a visitor-specified parameter * @return the result of {@code visitUnknown} * --- 249,326 ---- throw new AssertionError("Bad kind " + k + " for VariableElement" + e); } } /** ! * Visits an {@code ENUM_CONSTANT} variable element. * + * @implSpec This implementation calls {@code defaultAction}. + *. * @param e the element to visit * @param p a visitor-specified parameter * @return the result of {@code defaultAction} */ public R visitVariableAsEnumConstant(VariableElement e, P p) { return defaultAction(e, p); } /** ! * Visits an {@code EXCEPTION_PARAMETER} variable element. * + * @implSpec This implementation calls {@code defaultAction}. + *. * @param e the element to visit * @param p a visitor-specified parameter * @return the result of {@code defaultAction} */ public R visitVariableAsExceptionParameter(VariableElement e, P p) { return defaultAction(e, p); } /** ! * Visits a {@code FIELD} variable element. * + * @implSpec This implementation calls {@code defaultAction}. + *. * @param e the element to visit * @param p a visitor-specified parameter * @return the result of {@code defaultAction} */ public R visitVariableAsField(VariableElement e, P p) { return defaultAction(e, p); } /** ! * Visits a {@code LOCAL_VARIABLE} variable element. ! * ! * @implSpec This implementation calls {@code defaultAction}. * * @param e the element to visit * @param p a visitor-specified parameter * @return the result of {@code defaultAction} */ public R visitVariableAsLocalVariable(VariableElement e, P p) { return defaultAction(e, p); } /** ! * Visits a {@code PARAMETER} variable element. ! * ! * @implSpec This implementation calls {@code defaultAction}. * * @param e the element to visit * @param p a visitor-specified parameter * @return the result of {@code defaultAction} */ public R visitVariableAsParameter(VariableElement e, P p) { return defaultAction(e, p); } /** ! * Visits a {@code RESOURCE_VARIABLE} variable element. ! * ! * @implSpec This implementation calls {@code visitUnknown}. * * @param e the element to visit * @param p a visitor-specified parameter * @return the result of {@code visitUnknown} *
*** 313,323 **** public R visitVariableAsResourceVariable(VariableElement e, P p) { return visitUnknown(e, p); } /** ! * Visits an executable element, dispatching to the visit method * for the specific {@linkplain ElementKind kind} of executable, * {@code CONSTRUCTOR}, {@code INSTANCE_INIT}, {@code METHOD}, or * {@code STATIC_INIT}. * * @param e {@inheritDoc} --- 329,341 ---- public R visitVariableAsResourceVariable(VariableElement e, P p) { return visitUnknown(e, p); } /** ! * {@inheritDoc} ! * ! * @implSpec This implementation dispatches to the visit method * for the specific {@linkplain ElementKind kind} of executable, * {@code CONSTRUCTOR}, {@code INSTANCE_INIT}, {@code METHOD}, or * {@code STATIC_INIT}. * * @param e {@inheritDoc}
*** 344,406 **** throw new AssertionError("Bad kind " + k + " for ExecutableElement" + e); } } /** ! * Visits a {@code CONSTRUCTOR} executable element by calling ! * {@code defaultAction}. * * @param e the element to visit * @param p a visitor-specified parameter * @return the result of {@code defaultAction} */ public R visitExecutableAsConstructor(ExecutableElement e, P p) { return defaultAction(e, p); } /** ! * Visits an {@code INSTANCE_INIT} executable element by calling ! * {@code defaultAction}. * * @param e the element to visit * @param p a visitor-specified parameter * @return the result of {@code defaultAction} */ public R visitExecutableAsInstanceInit(ExecutableElement e, P p) { return defaultAction(e, p); } /** ! * Visits a {@code METHOD} executable element by calling ! * {@code defaultAction}. * * @param e the element to visit * @param p a visitor-specified parameter * @return the result of {@code defaultAction} */ public R visitExecutableAsMethod(ExecutableElement e, P p) { return defaultAction(e, p); } /** ! * Visits a {@code STATIC_INIT} executable element by calling ! * {@code defaultAction}. * * @param e the element to visit * @param p a visitor-specified parameter * @return the result of {@code defaultAction} */ public R visitExecutableAsStaticInit(ExecutableElement e, P p) { return defaultAction(e, p); } - /** * {@inheritDoc} * * The element argument has kind {@code TYPE_PARAMETER}. * * @param e {@inheritDoc} * @param p {@inheritDoc} * @return {@inheritDoc} */ @Override --- 362,429 ---- throw new AssertionError("Bad kind " + k + " for ExecutableElement" + e); } } /** ! * Visits a {@code CONSTRUCTOR} executable element. ! * ! * @implSpec This implementation calls {@code defaultAction}. * * @param e the element to visit * @param p a visitor-specified parameter * @return the result of {@code defaultAction} */ public R visitExecutableAsConstructor(ExecutableElement e, P p) { return defaultAction(e, p); } /** ! * Visits an {@code INSTANCE_INIT} executable element. ! * ! * @implSpec This implementation calls {@code defaultAction}. * * @param e the element to visit * @param p a visitor-specified parameter * @return the result of {@code defaultAction} */ public R visitExecutableAsInstanceInit(ExecutableElement e, P p) { return defaultAction(e, p); } /** ! * Visits a {@code METHOD} executable element. ! * ! * @implSpec This implementation calls {@code defaultAction}. * * @param e the element to visit * @param p a visitor-specified parameter * @return the result of {@code defaultAction} */ public R visitExecutableAsMethod(ExecutableElement e, P p) { return defaultAction(e, p); } /** ! * Visits a {@code STATIC_INIT} executable element. ! * ! * @implSpec This implementation calls {@code defaultAction}. * * @param e the element to visit * @param p a visitor-specified parameter * @return the result of {@code defaultAction} */ public R visitExecutableAsStaticInit(ExecutableElement e, P p) { return defaultAction(e, p); } /** * {@inheritDoc} * * The element argument has kind {@code TYPE_PARAMETER}. * + * @implSpec This implementation calls {@code defaultAction}. + * * @param e {@inheritDoc} * @param p {@inheritDoc} * @return {@inheritDoc} */ @Override
< prev index next >