8184683: Add @since and default methods of Compiler Tree API methods
Reviewed-by: darcy, jjg
This commit is contained in:
parent
f4db9575d1
commit
4fbcc568d3
@ -145,11 +145,19 @@ public interface DocTreeVisitor<R,P> {
|
||||
|
||||
/**
|
||||
* Visits a HiddenTree node.
|
||||
*
|
||||
* @implSpec Visits a {@code HiddenTree} node
|
||||
* by calling {@code visitOther(node, p)}.
|
||||
*
|
||||
* @param node the node being visited
|
||||
* @param p a parameter value
|
||||
* @return a result value
|
||||
*
|
||||
* @since 9
|
||||
*/
|
||||
R visitHidden(HiddenTree node, P p);
|
||||
default R visitHidden(HiddenTree node, P p) {
|
||||
return visitOther(node, p);
|
||||
}
|
||||
|
||||
/**
|
||||
* Visits an IdentifierTree node.
|
||||
@ -161,11 +169,19 @@ public interface DocTreeVisitor<R,P> {
|
||||
|
||||
/**
|
||||
* Visits an IndexTree node.
|
||||
*
|
||||
* @implSpec Visits an {@code IndexTree} node
|
||||
* by calling {@code visitOther(node, p)}.
|
||||
*
|
||||
* @param node the node being visited
|
||||
* @param p a parameter value
|
||||
* @return a result value
|
||||
*
|
||||
* @since 9
|
||||
*/
|
||||
R visitIndex(IndexTree node, P p);
|
||||
default R visitIndex(IndexTree node, P p) {
|
||||
return visitOther(node, p);
|
||||
}
|
||||
|
||||
/**
|
||||
* Visits an InheritDocTree node.
|
||||
@ -201,11 +217,19 @@ public interface DocTreeVisitor<R,P> {
|
||||
|
||||
/**
|
||||
* Visits a ProvidesTree node.
|
||||
*
|
||||
* @implSpec Visits a {@code ProvidesTree} node
|
||||
* by calling {@code visitOther(node, p)}.
|
||||
*
|
||||
* @param node the node being visited
|
||||
* @param p a parameter value
|
||||
* @return a result value
|
||||
*
|
||||
* @since 9
|
||||
*/
|
||||
R visitProvides(ProvidesTree node, P p);
|
||||
default R visitProvides(ProvidesTree node, P p) {
|
||||
return visitOther(node, p);
|
||||
}
|
||||
|
||||
/**
|
||||
* Visits a ReferenceTree node.
|
||||
@ -320,11 +344,19 @@ public interface DocTreeVisitor<R,P> {
|
||||
|
||||
/**
|
||||
* Visits a UsesTree node.
|
||||
*
|
||||
* @implSpec Visits a {@code UsesTree} node
|
||||
* by calling {@code visitOther(node, p)}.
|
||||
*
|
||||
* @param node the node being visited
|
||||
* @param p a parameter value
|
||||
* @return a result value
|
||||
*
|
||||
* @since 9
|
||||
*/
|
||||
R visitUses(UsesTree node, P p);
|
||||
default R visitUses(UsesTree node, P p) {
|
||||
return visitOther(node, p);
|
||||
}
|
||||
|
||||
/**
|
||||
* Visits a ValueTree node.
|
||||
|
@ -220,6 +220,8 @@ public class SimpleDocTreeVisitor<R,P> implements DocTreeVisitor<R, P> {
|
||||
* @param node {@inheritDoc}
|
||||
* @param p {@inheritDoc}
|
||||
* @return the result of {@code defaultAction}
|
||||
*
|
||||
* @since 9
|
||||
*/
|
||||
@Override
|
||||
public R visitHidden(HiddenTree node, P p) {
|
||||
@ -244,6 +246,8 @@ public class SimpleDocTreeVisitor<R,P> implements DocTreeVisitor<R, P> {
|
||||
* @param node {@inheritDoc}
|
||||
* @param p {@inheritDoc}
|
||||
* @return the result of {@code defaultAction}
|
||||
*
|
||||
* @since 9
|
||||
*/
|
||||
@Override
|
||||
public R visitIndex(IndexTree node, P p) {
|
||||
@ -304,6 +308,8 @@ public class SimpleDocTreeVisitor<R,P> implements DocTreeVisitor<R, P> {
|
||||
* @param node {@inheritDoc}
|
||||
* @param p {@inheritDoc}
|
||||
* @return the result of {@code defaultAction}
|
||||
*
|
||||
* @since 9
|
||||
*/
|
||||
@Override
|
||||
public R visitProvides(ProvidesTree node, P p) {
|
||||
@ -473,6 +479,8 @@ public class SimpleDocTreeVisitor<R,P> implements DocTreeVisitor<R, P> {
|
||||
* @param node {@inheritDoc}
|
||||
* @param p {@inheritDoc}
|
||||
* @return the result of {@code defaultAction}
|
||||
*
|
||||
* @since 9
|
||||
*/
|
||||
@Override
|
||||
public R visitUses(UsesTree node, P p) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user