8191162: Use @implSpec tag for javax.lang.model.util visitor methods
Reviewed-by: vromero
This commit is contained in:
parent
53ee22647f
commit
38f5cea050
src/java.compiler/share/classes/javax/lang/model/util
AbstractAnnotationValueVisitor6.javaAbstractElementVisitor6.javaAbstractElementVisitor9.javaElementKindVisitor6.javaElementKindVisitor7.javaElementKindVisitor9.javaElementScanner6.javaElementScanner7.javaElementScanner9.javaSimpleAnnotationValueVisitor6.javaSimpleElementVisitor6.javaSimpleElementVisitor7.javaSimpleElementVisitor9.javaSimpleTypeVisitor6.javaSimpleTypeVisitor7.javaSimpleTypeVisitor8.javaTypeKindVisitor6.javaTypeKindVisitor7.javaTypeKindVisitor8.java
@ -84,6 +84,7 @@ public abstract class AbstractAnnotationValueVisitor6<R, P>
|
||||
* {@code v.visit(av, p)} is equivalent to {@code av.accept(v, p)}.
|
||||
* @param av {@inheritDoc}
|
||||
* @param p {@inheritDoc}
|
||||
* @return {@inheritDoc}
|
||||
*/
|
||||
public final R visit(AnnotationValue av, P p) {
|
||||
return av.accept(this, p);
|
||||
@ -96,6 +97,7 @@ public abstract class AbstractAnnotationValueVisitor6<R, P>
|
||||
* {@code v.visit(av)} is equivalent to {@code av.accept(v,
|
||||
* null)}.
|
||||
* @param av {@inheritDoc}
|
||||
* @return {@inheritDoc}
|
||||
*/
|
||||
public final R visit(AnnotationValue av) {
|
||||
return av.accept(this, null);
|
||||
@ -111,6 +113,7 @@ public abstract class AbstractAnnotationValueVisitor6<R, P>
|
||||
*
|
||||
* @param av {@inheritDoc}
|
||||
* @param p {@inheritDoc}
|
||||
* @return {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public R visitUnknown(AnnotationValue av, P p) {
|
||||
|
@ -116,7 +116,7 @@ public abstract class AbstractElementVisitor6<R, P> implements ElementVisitor<R,
|
||||
*
|
||||
* @param e {@inheritDoc}
|
||||
* @param p {@inheritDoc}
|
||||
* @return a visitor-specified result
|
||||
* @return {@inheritDoc}
|
||||
* @throws UnknownElementException
|
||||
* a visitor implementation may optionally throw this exception
|
||||
*/
|
||||
@ -133,7 +133,7 @@ public abstract class AbstractElementVisitor6<R, P> implements ElementVisitor<R,
|
||||
*
|
||||
* @param e {@inheritDoc}
|
||||
* @param p {@inheritDoc}
|
||||
* @return the result of {@code visitUnknown}
|
||||
* @return {@inheritDoc}
|
||||
*
|
||||
* @since 9
|
||||
* @spec JPMS
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -75,12 +75,14 @@ public abstract class AbstractElementVisitor9<R, P> extends AbstractElementVisit
|
||||
}
|
||||
|
||||
/**
|
||||
* Visits a {@code ModuleElement} in a manner defined by a
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* @implSpec Visits a {@code ModuleElement} in a manner defined by a
|
||||
* subclass.
|
||||
*
|
||||
* @param t {@inheritDoc}
|
||||
* @param p {@inheritDoc}
|
||||
* @return the result of the visit as defined by a subclass
|
||||
* @return {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public abstract R visitModule(ModuleElement t, P p);
|
||||
|
@ -114,6 +114,8 @@ public class ElementKindVisitor6<R, P>
|
||||
*
|
||||
* The element argument has kind {@code PACKAGE}.
|
||||
*
|
||||
* @implSpec This implementation calls {@code defaultAction}.
|
||||
*
|
||||
* @param e {@inheritDoc}
|
||||
* @param p {@inheritDoc}
|
||||
* @return {@inheritDoc}
|
||||
@ -125,7 +127,9 @@ public class ElementKindVisitor6<R, P>
|
||||
}
|
||||
|
||||
/**
|
||||
* Visits a type element, dispatching to the visit method for the
|
||||
* {@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}.
|
||||
@ -156,8 +160,9 @@ public class ElementKindVisitor6<R, P>
|
||||
}
|
||||
|
||||
/**
|
||||
* Visits an {@code ANNOTATION_TYPE} type element by calling
|
||||
* {@code defaultAction}.
|
||||
* 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
|
||||
@ -168,8 +173,9 @@ public class ElementKindVisitor6<R, P>
|
||||
}
|
||||
|
||||
/**
|
||||
* Visits a {@code CLASS} type element by calling {@code
|
||||
* defaultAction}.
|
||||
* Visits a {@code CLASS} type element.
|
||||
*
|
||||
* @implSpec This implementation calls {@code defaultAction}.
|
||||
*
|
||||
* @param e the element to visit
|
||||
* @param p a visitor-specified parameter
|
||||
@ -180,8 +186,9 @@ public class ElementKindVisitor6<R, P>
|
||||
}
|
||||
|
||||
/**
|
||||
* Visits an {@code ENUM} type element by calling {@code
|
||||
* defaultAction}.
|
||||
* Visits an {@code ENUM} type element.
|
||||
*
|
||||
* @implSpec This implementation calls {@code defaultAction}.
|
||||
*
|
||||
* @param e the element to visit
|
||||
* @param p a visitor-specified parameter
|
||||
@ -192,8 +199,9 @@ public class ElementKindVisitor6<R, P>
|
||||
}
|
||||
|
||||
/**
|
||||
* Visits an {@code INTERFACE} type element by calling {@code
|
||||
* defaultAction}.
|
||||
* Visits an {@code INTERFACE} type element.
|
||||
*
|
||||
* @implSpec This implementation calls {@code defaultAction}.
|
||||
*.
|
||||
* @param e the element to visit
|
||||
* @param p a visitor-specified parameter
|
||||
@ -204,7 +212,9 @@ public class ElementKindVisitor6<R, P>
|
||||
}
|
||||
|
||||
/**
|
||||
* Visits a variable element, dispatching to the visit method for
|
||||
* 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}.
|
||||
@ -241,9 +251,10 @@ public class ElementKindVisitor6<R, P>
|
||||
}
|
||||
|
||||
/**
|
||||
* Visits an {@code ENUM_CONSTANT} variable element by calling
|
||||
* {@code defaultAction}.
|
||||
* 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}
|
||||
@ -253,9 +264,10 @@ public class ElementKindVisitor6<R, P>
|
||||
}
|
||||
|
||||
/**
|
||||
* Visits an {@code EXCEPTION_PARAMETER} variable element by calling
|
||||
* {@code defaultAction}.
|
||||
* 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}
|
||||
@ -265,9 +277,10 @@ public class ElementKindVisitor6<R, P>
|
||||
}
|
||||
|
||||
/**
|
||||
* Visits a {@code FIELD} variable element by calling
|
||||
* {@code defaultAction}.
|
||||
* 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}
|
||||
@ -277,8 +290,9 @@ public class ElementKindVisitor6<R, P>
|
||||
}
|
||||
|
||||
/**
|
||||
* Visits a {@code LOCAL_VARIABLE} variable element by calling
|
||||
* {@code defaultAction}.
|
||||
* 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
|
||||
@ -289,8 +303,9 @@ public class ElementKindVisitor6<R, P>
|
||||
}
|
||||
|
||||
/**
|
||||
* Visits a {@code PARAMETER} variable element by calling
|
||||
* {@code defaultAction}.
|
||||
* Visits a {@code PARAMETER} variable element.
|
||||
*
|
||||
* @implSpec This implementation calls {@code defaultAction}.
|
||||
*
|
||||
* @param e the element to visit
|
||||
* @param p a visitor-specified parameter
|
||||
@ -301,8 +316,9 @@ public class ElementKindVisitor6<R, P>
|
||||
}
|
||||
|
||||
/**
|
||||
* Visits a {@code RESOURCE_VARIABLE} variable element by calling
|
||||
* {@code visitUnknown}.
|
||||
* 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
|
||||
@ -315,7 +331,9 @@ public class ElementKindVisitor6<R, P>
|
||||
}
|
||||
|
||||
/**
|
||||
* Visits an executable element, dispatching to the visit method
|
||||
* {@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}.
|
||||
@ -346,8 +364,9 @@ public class ElementKindVisitor6<R, P>
|
||||
}
|
||||
|
||||
/**
|
||||
* Visits a {@code CONSTRUCTOR} executable element by calling
|
||||
* {@code defaultAction}.
|
||||
* Visits a {@code CONSTRUCTOR} executable element.
|
||||
*
|
||||
* @implSpec This implementation calls {@code defaultAction}.
|
||||
*
|
||||
* @param e the element to visit
|
||||
* @param p a visitor-specified parameter
|
||||
@ -358,8 +377,9 @@ public class ElementKindVisitor6<R, P>
|
||||
}
|
||||
|
||||
/**
|
||||
* Visits an {@code INSTANCE_INIT} executable element by calling
|
||||
* {@code defaultAction}.
|
||||
* 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
|
||||
@ -370,8 +390,9 @@ public class ElementKindVisitor6<R, P>
|
||||
}
|
||||
|
||||
/**
|
||||
* Visits a {@code METHOD} executable element by calling
|
||||
* {@code defaultAction}.
|
||||
* Visits a {@code METHOD} executable element.
|
||||
*
|
||||
* @implSpec This implementation calls {@code defaultAction}.
|
||||
*
|
||||
* @param e the element to visit
|
||||
* @param p a visitor-specified parameter
|
||||
@ -382,8 +403,9 @@ public class ElementKindVisitor6<R, P>
|
||||
}
|
||||
|
||||
/**
|
||||
* Visits a {@code STATIC_INIT} executable element by calling
|
||||
* {@code defaultAction}.
|
||||
* 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
|
||||
@ -393,12 +415,13 @@ public class ElementKindVisitor6<R, 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}
|
||||
|
@ -99,8 +99,9 @@ public class ElementKindVisitor7<R, P> extends ElementKindVisitor6<R, P> {
|
||||
}
|
||||
|
||||
/**
|
||||
* Visits a {@code RESOURCE_VARIABLE} variable element by calling
|
||||
* {@code defaultAction}.
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* @implSpec This implementation calls {@code defaultAction}.
|
||||
*
|
||||
* @param e {@inheritDoc}
|
||||
* @param p {@inheritDoc}
|
||||
|
@ -98,8 +98,9 @@ public class ElementKindVisitor9<R, P> extends ElementKindVisitor8<R, P> {
|
||||
}
|
||||
|
||||
/**
|
||||
* Visits a {@code ModuleElement} by calling {@code
|
||||
* defaultAction}.
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* @implSpec This implementation calls {@code defaultAction}.
|
||||
*
|
||||
* @param e the element to visit
|
||||
* @param p a visitor-specified parameter
|
||||
|
@ -164,7 +164,9 @@ public class ElementScanner6<R, P> extends AbstractElementVisitor6<R, P> {
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc} This implementation scans the enclosed elements.
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* @implSpec This implementation scans the enclosed elements.
|
||||
*
|
||||
* @param e {@inheritDoc}
|
||||
* @param p {@inheritDoc}
|
||||
@ -175,7 +177,9 @@ public class ElementScanner6<R, P> extends AbstractElementVisitor6<R, P> {
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc} This implementation scans the enclosed elements.
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* @implSpec This implementation scans the enclosed elements.
|
||||
*
|
||||
* @param e {@inheritDoc}
|
||||
* @param p {@inheritDoc}
|
||||
@ -188,7 +192,7 @@ public class ElementScanner6<R, P> extends AbstractElementVisitor6<R, P> {
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* This implementation scans the enclosed elements, unless the
|
||||
* @implSpec This implementation scans the enclosed elements, unless the
|
||||
* element is a {@code RESOURCE_VARIABLE} in which case {@code
|
||||
* visitUnknown} is called.
|
||||
*
|
||||
@ -204,7 +208,9 @@ public class ElementScanner6<R, P> extends AbstractElementVisitor6<R, P> {
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc} This implementation scans the parameters.
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* @implSpec This implementation scans the parameters.
|
||||
*
|
||||
* @param e {@inheritDoc}
|
||||
* @param p {@inheritDoc}
|
||||
@ -215,7 +221,9 @@ public class ElementScanner6<R, P> extends AbstractElementVisitor6<R, P> {
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc} This implementation scans the enclosed elements.
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* @implSpec This implementation scans the enclosed elements.
|
||||
*
|
||||
* @param e {@inheritDoc}
|
||||
* @param p {@inheritDoc}
|
||||
|
@ -112,7 +112,9 @@ public class ElementScanner7<R, P> extends ElementScanner6<R, P> {
|
||||
}
|
||||
|
||||
/**
|
||||
* This implementation scans the enclosed elements.
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* @implSpec This implementation scans the enclosed elements.
|
||||
*
|
||||
* @param e {@inheritDoc}
|
||||
* @param p {@inheritDoc}
|
||||
|
@ -111,8 +111,9 @@ public class ElementScanner9<R, P> extends ElementScanner8<R, P> {
|
||||
}
|
||||
|
||||
/**
|
||||
* Visits a {@code ModuleElement} by scanning the enclosed
|
||||
* elements.
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* @implSpec This implementation scans the enclosed elements.
|
||||
*
|
||||
* @param e the element to visit
|
||||
* @param p a visitor-specified parameter
|
||||
|
@ -113,9 +113,10 @@ public class SimpleAnnotationValueVisitor6<R, P>
|
||||
}
|
||||
|
||||
/**
|
||||
* The default action for visit methods. The implementation in
|
||||
* this class just returns {@link #DEFAULT_VALUE}; subclasses will
|
||||
* commonly override this method.
|
||||
* The default action for visit methods.
|
||||
*
|
||||
* @implSpec The implementation in this class just returns {@link
|
||||
* #DEFAULT_VALUE}; subclasses will commonly override this method.
|
||||
*
|
||||
* @param o the value of the annotation
|
||||
* @param p a visitor-specified parameter
|
||||
@ -126,7 +127,9 @@ public class SimpleAnnotationValueVisitor6<R, P>
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc} This implementation calls {@code defaultAction}.
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* @implSpec This implementation calls {@code defaultAction}.
|
||||
*
|
||||
* @param b {@inheritDoc}
|
||||
* @param p {@inheritDoc}
|
||||
@ -137,7 +140,9 @@ public class SimpleAnnotationValueVisitor6<R, P>
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc} This implementation calls {@code defaultAction}.
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* @implSpec This implementation calls {@code defaultAction}.
|
||||
*
|
||||
* @param b {@inheritDoc}
|
||||
* @param p {@inheritDoc}
|
||||
@ -148,7 +153,9 @@ public class SimpleAnnotationValueVisitor6<R, P>
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc} This implementation calls {@code defaultAction}.
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* @implSpec This implementation calls {@code defaultAction}.
|
||||
*
|
||||
* @param c {@inheritDoc}
|
||||
* @param p {@inheritDoc}
|
||||
@ -159,7 +166,10 @@ public class SimpleAnnotationValueVisitor6<R, P>
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc} This implementation calls {@code defaultAction}.
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* @implSpec This implementation calls {@code defaultAction}.
|
||||
*
|
||||
*
|
||||
* @param d {@inheritDoc}
|
||||
* @param p {@inheritDoc}
|
||||
@ -170,7 +180,10 @@ public class SimpleAnnotationValueVisitor6<R, P>
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc} This implementation calls {@code defaultAction}.
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* @implSpec This implementation calls {@code defaultAction}.
|
||||
*
|
||||
*
|
||||
* @param f {@inheritDoc}
|
||||
* @param p {@inheritDoc}
|
||||
@ -181,7 +194,9 @@ public class SimpleAnnotationValueVisitor6<R, P>
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc} This implementation calls {@code defaultAction}.
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* @implSpec This implementation calls {@code defaultAction}.
|
||||
*
|
||||
* @param i {@inheritDoc}
|
||||
* @param p {@inheritDoc}
|
||||
@ -192,7 +207,9 @@ public class SimpleAnnotationValueVisitor6<R, P>
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc} This implementation calls {@code defaultAction}.
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* @implSpec This implementation calls {@code defaultAction}.
|
||||
*
|
||||
* @param i {@inheritDoc}
|
||||
* @param p {@inheritDoc}
|
||||
@ -203,7 +220,9 @@ public class SimpleAnnotationValueVisitor6<R, P>
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc} This implementation calls {@code defaultAction}.
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* @implSpec This implementation calls {@code defaultAction}.
|
||||
*
|
||||
* @param s {@inheritDoc}
|
||||
* @param p {@inheritDoc}
|
||||
@ -214,7 +233,9 @@ public class SimpleAnnotationValueVisitor6<R, P>
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc} This implementation calls {@code defaultAction}.
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* @implSpec This implementation calls {@code defaultAction}.
|
||||
*
|
||||
* @param s {@inheritDoc}
|
||||
* @param p {@inheritDoc}
|
||||
@ -225,7 +246,9 @@ public class SimpleAnnotationValueVisitor6<R, P>
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc} This implementation calls {@code defaultAction}.
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* @implSpec This implementation calls {@code defaultAction}.
|
||||
*
|
||||
* @param t {@inheritDoc}
|
||||
* @param p {@inheritDoc}
|
||||
@ -236,7 +259,9 @@ public class SimpleAnnotationValueVisitor6<R, P>
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc} This implementation calls {@code defaultAction}.
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* @implSpec This implementation calls {@code defaultAction}.
|
||||
*
|
||||
* @param c {@inheritDoc}
|
||||
* @param p {@inheritDoc}
|
||||
@ -247,7 +272,9 @@ public class SimpleAnnotationValueVisitor6<R, P>
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc} This implementation calls {@code defaultAction}.
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* @implSpec This implementation calls {@code defaultAction}.
|
||||
*
|
||||
* @param a {@inheritDoc}
|
||||
* @param p {@inheritDoc}
|
||||
@ -258,7 +285,9 @@ public class SimpleAnnotationValueVisitor6<R, P>
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc} This implementation calls {@code defaultAction}.
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* @implSpec This implementation calls {@code defaultAction}.
|
||||
*
|
||||
* @param vals {@inheritDoc}
|
||||
* @param p {@inheritDoc}
|
||||
|
@ -112,9 +112,10 @@ public class SimpleElementVisitor6<R, P> extends AbstractElementVisitor6<R, P> {
|
||||
DEFAULT_VALUE = defaultValue;
|
||||
}
|
||||
/**
|
||||
* The default action for visit methods. The implementation in
|
||||
* this class just returns {@link #DEFAULT_VALUE}; subclasses will
|
||||
* commonly override this method.
|
||||
* The default action for visit methods.
|
||||
*
|
||||
* @implSpec The implementation in this class just returns {@link
|
||||
* #DEFAULT_VALUE}; subclasses will commonly override this method.
|
||||
*
|
||||
* @param e the element to process
|
||||
* @param p a visitor-specified parameter
|
||||
@ -125,22 +126,26 @@ public class SimpleElementVisitor6<R, P> extends AbstractElementVisitor6<R, P> {
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc} This implementation calls {@code defaultAction}.
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* @implSpec This implementation calls {@code defaultAction}.
|
||||
*
|
||||
* @param e {@inheritDoc}
|
||||
* @param p {@inheritDoc}
|
||||
* @return the result of {@code defaultAction}
|
||||
* @return {@inheritDoc}
|
||||
*/
|
||||
public R visitPackage(PackageElement e, P p) {
|
||||
return defaultAction(e, p);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc} This implementation calls {@code defaultAction}.
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* @implSpec This implementation calls {@code defaultAction}.
|
||||
*
|
||||
* @param e {@inheritDoc}
|
||||
* @param p {@inheritDoc}
|
||||
* @return the result of {@code defaultAction}
|
||||
* @return {@inheritDoc}
|
||||
*/
|
||||
public R visitType(TypeElement e, P p) {
|
||||
return defaultAction(e, p);
|
||||
@ -149,13 +154,13 @@ public class SimpleElementVisitor6<R, P> extends AbstractElementVisitor6<R, P> {
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* This implementation calls {@code defaultAction}, unless the
|
||||
* @implSpec This implementation calls {@code defaultAction}, unless the
|
||||
* element is a {@code RESOURCE_VARIABLE} in which case {@code
|
||||
* visitUnknown} is called.
|
||||
*
|
||||
* @param e {@inheritDoc}
|
||||
* @param p {@inheritDoc}
|
||||
* @return the result of {@code defaultAction} or {@code visitUnknown}
|
||||
* @return {@inheritDoc}
|
||||
*/
|
||||
public R visitVariable(VariableElement e, P p) {
|
||||
if (e.getKind() != ElementKind.RESOURCE_VARIABLE)
|
||||
@ -165,22 +170,26 @@ public class SimpleElementVisitor6<R, P> extends AbstractElementVisitor6<R, P> {
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc} This implementation calls {@code defaultAction}.
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* @implSpec This implementation calls {@code defaultAction}.
|
||||
*
|
||||
* @param e {@inheritDoc}
|
||||
* @param p {@inheritDoc}
|
||||
* @return the result of {@code defaultAction}
|
||||
* @return {@inheritDoc}
|
||||
*/
|
||||
public R visitExecutable(ExecutableElement e, P p) {
|
||||
return defaultAction(e, p);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc} This implementation calls {@code defaultAction}.
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* @implSpec This implementation calls {@code defaultAction}.
|
||||
*
|
||||
* @param e {@inheritDoc}
|
||||
* @param p {@inheritDoc}
|
||||
* @return the result of {@code defaultAction}
|
||||
* @return {@inheritDoc}
|
||||
*/
|
||||
public R visitTypeParameter(TypeParameterElement e, P p) {
|
||||
return defaultAction(e, p);
|
||||
|
@ -95,11 +95,13 @@ public class SimpleElementVisitor7<R, P> extends SimpleElementVisitor6<R, P> {
|
||||
}
|
||||
|
||||
/**
|
||||
* This implementation calls {@code defaultAction}.
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* @implSpec This implementation calls {@code defaultAction}.
|
||||
*
|
||||
* @param e {@inheritDoc}
|
||||
* @param p {@inheritDoc}
|
||||
* @return the result of {@code defaultAction}
|
||||
* @return {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public R visitVariable(VariableElement e, P p) {
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -94,12 +94,14 @@ public class SimpleElementVisitor9<R, P> extends SimpleElementVisitor8<R, P> {
|
||||
}
|
||||
|
||||
/**
|
||||
* Visits a {@code ModuleElement} by calling {@code
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* @implSpec Visits a {@code ModuleElement} by calling {@code
|
||||
* defaultAction}.
|
||||
*
|
||||
* @param e the element to visit
|
||||
* @param p a visitor-specified parameter
|
||||
* @return the result of {@code defaultAction}
|
||||
* @return {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public R visitModule(ModuleElement e, P p) {
|
||||
|
@ -113,9 +113,10 @@ public class SimpleTypeVisitor6<R, P> extends AbstractTypeVisitor6<R, P> {
|
||||
}
|
||||
|
||||
/**
|
||||
* The default action for visit methods. The implementation in
|
||||
* this class just returns {@link #DEFAULT_VALUE}; subclasses will
|
||||
* commonly override this method.
|
||||
* The default action for visit methods.
|
||||
*
|
||||
* @implSpec The implementation in this class just returns {@link
|
||||
* #DEFAULT_VALUE}; subclasses will commonly override this method.
|
||||
*
|
||||
* @param e the type to process
|
||||
* @param p a visitor-specified parameter
|
||||
@ -126,7 +127,9 @@ public class SimpleTypeVisitor6<R, P> extends AbstractTypeVisitor6<R, P> {
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc} This implementation calls {@code defaultAction}.
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* @implSpec This implementation calls {@code defaultAction}.
|
||||
*
|
||||
* @param t {@inheritDoc}
|
||||
* @param p {@inheritDoc}
|
||||
@ -139,6 +142,8 @@ public class SimpleTypeVisitor6<R, P> extends AbstractTypeVisitor6<R, P> {
|
||||
/**
|
||||
* {@inheritDoc} This implementation calls {@code defaultAction}.
|
||||
*
|
||||
* @implSpec This implementation calls {@code defaultAction}.
|
||||
*
|
||||
* @param t {@inheritDoc}
|
||||
* @param p {@inheritDoc}
|
||||
* @return the result of {@code defaultAction}
|
||||
@ -148,7 +153,9 @@ public class SimpleTypeVisitor6<R, P> extends AbstractTypeVisitor6<R, P> {
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc} This implementation calls {@code defaultAction}.
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* @implSpec This implementation calls {@code defaultAction}.
|
||||
*
|
||||
* @param t {@inheritDoc}
|
||||
* @param p {@inheritDoc}
|
||||
@ -159,7 +166,9 @@ public class SimpleTypeVisitor6<R, P> extends AbstractTypeVisitor6<R, P> {
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc} This implementation calls {@code defaultAction}.
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* @implSpec This implementation calls {@code defaultAction}.
|
||||
*
|
||||
* @param t {@inheritDoc}
|
||||
* @param p {@inheritDoc}
|
||||
@ -170,7 +179,9 @@ public class SimpleTypeVisitor6<R, P> extends AbstractTypeVisitor6<R, P> {
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc} This implementation calls {@code defaultAction}.
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* @implSpec This implementation calls {@code defaultAction}.
|
||||
*
|
||||
* @param t {@inheritDoc}
|
||||
* @param p {@inheritDoc}
|
||||
@ -181,7 +192,9 @@ public class SimpleTypeVisitor6<R, P> extends AbstractTypeVisitor6<R, P> {
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc} This implementation calls {@code defaultAction}.
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* @implSpec This implementation calls {@code defaultAction}.
|
||||
*
|
||||
* @param t {@inheritDoc}
|
||||
* @param p {@inheritDoc}
|
||||
@ -192,7 +205,9 @@ public class SimpleTypeVisitor6<R, P> extends AbstractTypeVisitor6<R, P> {
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc} This implementation calls {@code defaultAction}.
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* @implSpec This implementation calls {@code defaultAction}.
|
||||
*
|
||||
* @param t {@inheritDoc}
|
||||
* @param p {@inheritDoc}
|
||||
@ -203,7 +218,9 @@ public class SimpleTypeVisitor6<R, P> extends AbstractTypeVisitor6<R, P> {
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc} This implementation calls {@code defaultAction}.
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* @implSpec This implementation calls {@code defaultAction}.
|
||||
*
|
||||
* @param t {@inheritDoc}
|
||||
* @param p {@inheritDoc}
|
||||
@ -214,7 +231,9 @@ public class SimpleTypeVisitor6<R, P> extends AbstractTypeVisitor6<R, P> {
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc} This implementation calls {@code defaultAction}.
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* @implSpec This implementation calls {@code defaultAction}.
|
||||
*
|
||||
* @param t {@inheritDoc}
|
||||
* @param p {@inheritDoc}
|
||||
|
@ -95,8 +95,9 @@ public class SimpleTypeVisitor7<R, P> extends SimpleTypeVisitor6<R, P> {
|
||||
}
|
||||
|
||||
/**
|
||||
* This implementation visits a {@code UnionType} by calling
|
||||
* {@code defaultAction}.
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* @implSpec This implementation calls {@code defaultAction}.
|
||||
*
|
||||
* @param t {@inheritDoc}
|
||||
* @param p {@inheritDoc}
|
||||
|
@ -93,8 +93,9 @@ public class SimpleTypeVisitor8<R, P> extends SimpleTypeVisitor7<R, P> {
|
||||
}
|
||||
|
||||
/**
|
||||
* This implementation visits an {@code IntersectionType} by calling
|
||||
* {@code defaultAction}.
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* @implSpec This implementation calls {@code defaultAction}.
|
||||
*
|
||||
* @param t {@inheritDoc}
|
||||
* @param p {@inheritDoc}
|
||||
|
@ -105,7 +105,9 @@ public class TypeKindVisitor6<R, P> extends SimpleTypeVisitor6<R, P> {
|
||||
}
|
||||
|
||||
/**
|
||||
* Visits a primitive type, dispatching to the visit method for
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* @implSpec This implementation dispatches to the visit method for
|
||||
* the specific {@linkplain TypeKind kind} of primitive type:
|
||||
* {@code BOOLEAN}, {@code BYTE}, etc.
|
||||
*
|
||||
@ -147,8 +149,9 @@ public class TypeKindVisitor6<R, P> extends SimpleTypeVisitor6<R, P> {
|
||||
}
|
||||
|
||||
/**
|
||||
* Visits a {@code BOOLEAN} primitive type by calling
|
||||
* {@code defaultAction}.
|
||||
* Visits a {@code BOOLEAN} primitive type.
|
||||
*
|
||||
* @implSpec This implementation calls {@code defaultAction}.
|
||||
*
|
||||
* @param t the type to visit
|
||||
* @param p a visitor-specified parameter
|
||||
@ -159,8 +162,9 @@ public class TypeKindVisitor6<R, P> extends SimpleTypeVisitor6<R, P> {
|
||||
}
|
||||
|
||||
/**
|
||||
* Visits a {@code BYTE} primitive type by calling
|
||||
* {@code defaultAction}.
|
||||
* Visits a {@code BYTE} primitive type.
|
||||
*
|
||||
* @implSpec This implementation calls {@code defaultAction}.
|
||||
*
|
||||
* @param t the type to visit
|
||||
* @param p a visitor-specified parameter
|
||||
@ -171,8 +175,9 @@ public class TypeKindVisitor6<R, P> extends SimpleTypeVisitor6<R, P> {
|
||||
}
|
||||
|
||||
/**
|
||||
* Visits a {@code SHORT} primitive type by calling
|
||||
* {@code defaultAction}.
|
||||
* Visits a {@code SHORT} primitive type.
|
||||
*
|
||||
* @implSpec This implementation calls {@code defaultAction}.
|
||||
*
|
||||
* @param t the type to visit
|
||||
* @param p a visitor-specified parameter
|
||||
@ -183,8 +188,9 @@ public class TypeKindVisitor6<R, P> extends SimpleTypeVisitor6<R, P> {
|
||||
}
|
||||
|
||||
/**
|
||||
* Visits an {@code INT} primitive type by calling
|
||||
* {@code defaultAction}.
|
||||
* Visits an {@code INT} primitive type.
|
||||
*
|
||||
* @implSpec This implementation calls {@code defaultAction}.
|
||||
*
|
||||
* @param t the type to visit
|
||||
* @param p a visitor-specified parameter
|
||||
@ -195,8 +201,9 @@ public class TypeKindVisitor6<R, P> extends SimpleTypeVisitor6<R, P> {
|
||||
}
|
||||
|
||||
/**
|
||||
* Visits a {@code LONG} primitive type by calling
|
||||
* {@code defaultAction}.
|
||||
* Visits a {@code LONG} primitive type.
|
||||
*
|
||||
* @implSpec This implementation calls {@code defaultAction}.
|
||||
*
|
||||
* @param t the type to visit
|
||||
* @param p a visitor-specified parameter
|
||||
@ -207,8 +214,9 @@ public class TypeKindVisitor6<R, P> extends SimpleTypeVisitor6<R, P> {
|
||||
}
|
||||
|
||||
/**
|
||||
* Visits a {@code CHAR} primitive type by calling
|
||||
* {@code defaultAction}.
|
||||
* Visits a {@code CHAR} primitive type.
|
||||
*
|
||||
* @implSpec This implementation calls {@code defaultAction}.
|
||||
*
|
||||
* @param t the type to visit
|
||||
* @param p a visitor-specified parameter
|
||||
@ -219,8 +227,9 @@ public class TypeKindVisitor6<R, P> extends SimpleTypeVisitor6<R, P> {
|
||||
}
|
||||
|
||||
/**
|
||||
* Visits a {@code FLOAT} primitive type by calling
|
||||
* {@code defaultAction}.
|
||||
* Visits a {@code FLOAT} primitive type.
|
||||
*
|
||||
* @implSpec This implementation calls {@code defaultAction}.
|
||||
*
|
||||
* @param t the type to visit
|
||||
* @param p a visitor-specified parameter
|
||||
@ -231,8 +240,9 @@ public class TypeKindVisitor6<R, P> extends SimpleTypeVisitor6<R, P> {
|
||||
}
|
||||
|
||||
/**
|
||||
* Visits a {@code DOUBLE} primitive type by calling
|
||||
* {@code defaultAction}.
|
||||
* Visits a {@code DOUBLE} primitive type.
|
||||
*
|
||||
* @implSpec This implementation calls {@code defaultAction}.
|
||||
*
|
||||
* @param t the type to visit
|
||||
* @param p a visitor-specified parameter
|
||||
@ -243,7 +253,9 @@ public class TypeKindVisitor6<R, P> extends SimpleTypeVisitor6<R, P> {
|
||||
}
|
||||
|
||||
/**
|
||||
* Visits a {@link NoType} instance, dispatching to the visit method for
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* @implSpec This implementation dispatches to the visit method for
|
||||
* the specific {@linkplain TypeKind kind} of pseudo-type:
|
||||
* {@code VOID}, {@code PACKAGE}, or {@code NONE}.
|
||||
*
|
||||
@ -270,8 +282,9 @@ public class TypeKindVisitor6<R, P> extends SimpleTypeVisitor6<R, P> {
|
||||
}
|
||||
|
||||
/**
|
||||
* Visits a {@link TypeKind#VOID VOID} pseudo-type by calling
|
||||
* {@code defaultAction}.
|
||||
* Visits a {@link TypeKind#VOID VOID} pseudo-type.
|
||||
*
|
||||
* @implSpec This implementation calls {@code defaultAction}.
|
||||
*
|
||||
* @param t the type to visit
|
||||
* @param p a visitor-specified parameter
|
||||
@ -282,8 +295,9 @@ public class TypeKindVisitor6<R, P> extends SimpleTypeVisitor6<R, P> {
|
||||
}
|
||||
|
||||
/**
|
||||
* Visits a {@link TypeKind#PACKAGE PACKAGE} pseudo-type by calling
|
||||
* {@code defaultAction}.
|
||||
* Visits a {@link TypeKind#PACKAGE PACKAGE} pseudo-type.
|
||||
*
|
||||
* @implSpec This implementation calls {@code defaultAction}.
|
||||
*
|
||||
* @param t the type to visit
|
||||
* @param p a visitor-specified parameter
|
||||
@ -294,8 +308,9 @@ public class TypeKindVisitor6<R, P> extends SimpleTypeVisitor6<R, P> {
|
||||
}
|
||||
|
||||
/**
|
||||
* Visits a {@link TypeKind#NONE NONE} pseudo-type by calling
|
||||
* {@code defaultAction}.
|
||||
* Visits a {@link TypeKind#NONE NONE} pseudo-type.
|
||||
*
|
||||
* @implSpec This implementation calls {@code defaultAction}.
|
||||
*
|
||||
* @param t the type to visit
|
||||
* @param p a visitor-specified parameter
|
||||
|
@ -96,8 +96,9 @@ public class TypeKindVisitor7<R, P> extends TypeKindVisitor6<R, P> {
|
||||
}
|
||||
|
||||
/**
|
||||
* This implementation visits a {@code UnionType} by calling
|
||||
* {@code defaultAction}.
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* @implSpec This implementation calls {@code defaultAction}.
|
||||
*
|
||||
* @param t {@inheritDoc}
|
||||
* @param p {@inheritDoc}
|
||||
|
@ -94,8 +94,9 @@ public class TypeKindVisitor8<R, P> extends TypeKindVisitor7<R, P> {
|
||||
}
|
||||
|
||||
/**
|
||||
* This implementation visits an {@code IntersectionType} by calling
|
||||
* {@code defaultAction}.
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* @implSpec This implementation calls {@code defaultAction}.
|
||||
*
|
||||
* @param t {@inheritDoc}
|
||||
* @param p {@inheritDoc}
|
||||
|
Loading…
x
Reference in New Issue
Block a user