8193194: Update javax.lang.model.util visitors for 10
Reviewed-by: jjg
This commit is contained in:
parent
eb62b5e51e
commit
99332f8fe0
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2011, 2014, 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
|
||||
@ -32,7 +32,7 @@ import javax.annotation.processing.SupportedSourceVersion;
|
||||
/**
|
||||
* A skeletal visitor for annotation values with default behavior
|
||||
* appropriate for the {@link SourceVersion#RELEASE_9 RELEASE_9}
|
||||
* source version.
|
||||
* and {@link SourceVersion#RELEASE_10 RELEASE_10} source versions.
|
||||
*
|
||||
* <p> <b>WARNING:</b> The {@code AnnotationValueVisitor} interface
|
||||
* implemented by this class may have methods added to it in the
|
||||
@ -59,7 +59,7 @@ import javax.annotation.processing.SupportedSourceVersion;
|
||||
* @see AbstractAnnotationValueVisitor8
|
||||
* @since 9
|
||||
*/
|
||||
@SupportedSourceVersion(RELEASE_9)
|
||||
@SupportedSourceVersion(RELEASE_10)
|
||||
public abstract class AbstractAnnotationValueVisitor9<R, P> extends AbstractAnnotationValueVisitor8<R, P> {
|
||||
|
||||
/**
|
||||
|
@ -34,7 +34,7 @@ import static javax.lang.model.SourceVersion.*;
|
||||
/**
|
||||
* A skeletal visitor of program elements with default behavior
|
||||
* appropriate for the {@link SourceVersion#RELEASE_9 RELEASE_9}
|
||||
* source version.
|
||||
* and {@link SourceVersion#RELEASE_10 RELEASE_10} source versions.
|
||||
*
|
||||
* <p> <b>WARNING:</b> The {@code ElementVisitor} interface
|
||||
* implemented by this class may have methods added to it in the
|
||||
@ -65,7 +65,7 @@ import static javax.lang.model.SourceVersion.*;
|
||||
* @since 9
|
||||
* @spec JPMS
|
||||
*/
|
||||
@SupportedSourceVersion(RELEASE_9)
|
||||
@SupportedSourceVersion(RELEASE_10)
|
||||
public abstract class AbstractElementVisitor9<R, P> extends AbstractElementVisitor8<R, P> {
|
||||
/**
|
||||
* Constructor for concrete subclasses to call.
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2011, 2014, 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
|
||||
@ -27,13 +27,13 @@ package javax.lang.model.util;
|
||||
|
||||
import javax.annotation.processing.SupportedSourceVersion;
|
||||
import javax.lang.model.type.*;
|
||||
|
||||
import javax.lang.model.SourceVersion;
|
||||
import static javax.lang.model.SourceVersion.*;
|
||||
|
||||
/**
|
||||
* A skeletal visitor of types with default behavior appropriate for
|
||||
* the {@link javax.lang.model.SourceVersion#RELEASE_9 RELEASE_9}
|
||||
* source version.
|
||||
* the {@link SourceVersion#RELEASE_9 RELEASE_9}
|
||||
* and {@link SourceVersion#RELEASE_10 RELEASE_10} source versions.
|
||||
*
|
||||
* <p> <b>WARNING:</b> The {@code TypeVisitor} interface implemented
|
||||
* by this class may have methods added to it in the future to
|
||||
@ -63,7 +63,7 @@ import static javax.lang.model.SourceVersion.*;
|
||||
* @see AbstractTypeVisitor8
|
||||
* @since 9
|
||||
*/
|
||||
@SupportedSourceVersion(RELEASE_9)
|
||||
@SupportedSourceVersion(RELEASE_10)
|
||||
public abstract class AbstractTypeVisitor9<R, P> extends AbstractTypeVisitor8<R, P> {
|
||||
/**
|
||||
* Constructor for concrete subclasses to call.
|
||||
|
@ -33,7 +33,8 @@ import javax.lang.model.SourceVersion;
|
||||
/**
|
||||
* A visitor of program elements based on their {@linkplain
|
||||
* ElementKind kind} with default behavior appropriate for the {@link
|
||||
* SourceVersion#RELEASE_9 RELEASE_9} source version. For {@linkplain
|
||||
* SourceVersion#RELEASE_9 RELEASE_9} and {@link
|
||||
* SourceVersion#RELEASE_10 RELEASE_10} source versions. For {@linkplain
|
||||
* Element elements} <code><i>Xyz</i></code> that may have more than one
|
||||
* kind, the <code>visit<i>Xyz</i></code> methods in this class delegate
|
||||
* to the <code>visit<i>Xyz</i>As<i>Kind</i></code> method corresponding to the
|
||||
@ -77,7 +78,7 @@ import javax.lang.model.SourceVersion;
|
||||
* @since 9
|
||||
* @spec JPMS
|
||||
*/
|
||||
@SupportedSourceVersion(RELEASE_9)
|
||||
@SupportedSourceVersion(RELEASE_10)
|
||||
public class ElementKindVisitor9<R, P> extends ElementKindVisitor8<R, P> {
|
||||
/**
|
||||
* Constructor for concrete subclasses; uses {@code null} for the
|
||||
|
@ -34,7 +34,8 @@ import static javax.lang.model.SourceVersion.*;
|
||||
/**
|
||||
* A scanning visitor of program elements with default behavior
|
||||
* appropriate for the {@link SourceVersion#RELEASE_9 RELEASE_9}
|
||||
* source version. The <code>visit<i>Xyz</i></code> methods in this
|
||||
* and {@link SourceVersion#RELEASE_10 RELEASE_10} source versions.
|
||||
* The <code>visit<i>Xyz</i></code> methods in this
|
||||
* class scan their component elements by calling {@code scan} on
|
||||
* their {@linkplain Element#getEnclosedElements enclosed elements},
|
||||
* {@linkplain ExecutableElement#getParameters parameters}, etc., as
|
||||
@ -90,7 +91,7 @@ import static javax.lang.model.SourceVersion.*;
|
||||
* @since 9
|
||||
* @spec JPMS
|
||||
*/
|
||||
@SupportedSourceVersion(RELEASE_9)
|
||||
@SupportedSourceVersion(RELEASE_10)
|
||||
public class ElementScanner9<R, P> extends ElementScanner8<R, P> {
|
||||
/**
|
||||
* Constructor for concrete subclasses; uses {@code null} for the
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2011, 2014, 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
|
||||
@ -32,7 +32,8 @@ import static javax.lang.model.SourceVersion.*;
|
||||
/**
|
||||
* A simple visitor for annotation values with default behavior
|
||||
* appropriate for the {@link SourceVersion#RELEASE_9 RELEASE_9}
|
||||
* source version. Visit methods call {@link #defaultAction
|
||||
* and {@link SourceVersion#RELEASE_10 RELEASE_10} source versions.
|
||||
* Visit methods call {@link #defaultAction
|
||||
* defaultAction} passing their arguments to {@code defaultAction}'s
|
||||
* corresponding parameters.
|
||||
*
|
||||
@ -66,7 +67,7 @@ import static javax.lang.model.SourceVersion.*;
|
||||
* @see SimpleAnnotationValueVisitor8
|
||||
* @since 9
|
||||
*/
|
||||
@SupportedSourceVersion(RELEASE_9)
|
||||
@SupportedSourceVersion(RELEASE_10)
|
||||
public class SimpleAnnotationValueVisitor9<R, P> extends SimpleAnnotationValueVisitor8<R, P> {
|
||||
/**
|
||||
* Constructor for concrete subclasses; uses {@code null} for the
|
||||
|
@ -33,7 +33,7 @@ import static javax.lang.model.SourceVersion.*;
|
||||
/**
|
||||
* A simple visitor of program elements with default behavior
|
||||
* appropriate for the {@link SourceVersion#RELEASE_9 RELEASE_9}
|
||||
* source version.
|
||||
* and {@link SourceVersion#RELEASE_10 RELEASE_10} source versions.
|
||||
*
|
||||
* Visit methods corresponding to {@code RELEASE_9} and earlier
|
||||
* language constructs call {@link #defaultAction defaultAction},
|
||||
@ -73,7 +73,7 @@ import static javax.lang.model.SourceVersion.*;
|
||||
* @since 9
|
||||
* @spec JPMS
|
||||
*/
|
||||
@SupportedSourceVersion(RELEASE_9)
|
||||
@SupportedSourceVersion(RELEASE_10)
|
||||
public class SimpleElementVisitor9<R, P> extends SimpleElementVisitor8<R, P> {
|
||||
/**
|
||||
* Constructor for concrete subclasses; uses {@code null} for the
|
||||
|
@ -32,7 +32,8 @@ import static javax.lang.model.SourceVersion.*;
|
||||
|
||||
/**
|
||||
* A simple visitor of types with default behavior appropriate for the
|
||||
* {@link SourceVersion#RELEASE_9 RELEASE_9} source version.
|
||||
* {@link SourceVersion#RELEASE_9 RELEASE_9} and
|
||||
* {@link SourceVersion#RELEASE_10 RELEASE_10} source versions.
|
||||
*
|
||||
* Visit methods corresponding to {@code RELEASE_9} and earlier
|
||||
* language constructs call {@link #defaultAction defaultAction},
|
||||
@ -71,7 +72,7 @@ import static javax.lang.model.SourceVersion.*;
|
||||
* @see SimpleTypeVisitor7
|
||||
* @since 9
|
||||
*/
|
||||
@SupportedSourceVersion(RELEASE_9)
|
||||
@SupportedSourceVersion(RELEASE_10)
|
||||
public class SimpleTypeVisitor9<R, P> extends SimpleTypeVisitor8<R, P> {
|
||||
/**
|
||||
* Constructor for concrete subclasses; uses {@code null} for the
|
||||
|
@ -33,7 +33,8 @@ import static javax.lang.model.SourceVersion.*;
|
||||
/**
|
||||
* A visitor of types based on their {@linkplain TypeKind kind} with
|
||||
* default behavior appropriate for the {@link SourceVersion#RELEASE_9
|
||||
* RELEASE_9} source version. For {@linkplain
|
||||
* RELEASE_9} and {@link SourceVersion#RELEASE_10 RELEASE_10} source
|
||||
* versions. For {@linkplain
|
||||
* TypeMirror types} <code><i>Xyz</i></code> that may have more than one
|
||||
* kind, the <code>visit<i>Xyz</i></code> methods in this class delegate
|
||||
* to the <code>visit<i>Xyz</i>As<i>Kind</i></code> method corresponding to the
|
||||
@ -74,7 +75,7 @@ import static javax.lang.model.SourceVersion.*;
|
||||
* @see TypeKindVisitor8
|
||||
* @since 9
|
||||
*/
|
||||
@SupportedSourceVersion(RELEASE_9)
|
||||
@SupportedSourceVersion(RELEASE_10)
|
||||
public class TypeKindVisitor9<R, P> extends TypeKindVisitor8<R, P> {
|
||||
/**
|
||||
* Constructor for concrete subclasses to call; uses {@code null}
|
||||
|
Loading…
Reference in New Issue
Block a user