1 /* |
1 /* |
2 * Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2010, 2018, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
108 /* |
108 /* |
109 * The set of visitors below will directly extend the most recent |
109 * The set of visitors below will directly extend the most recent |
110 * corresponding platform visitor type. |
110 * corresponding platform visitor type. |
111 */ |
111 */ |
112 |
112 |
113 @SupportedSourceVersion(RELEASE_11) |
113 @SupportedSourceVersion(RELEASE_12) |
114 public static abstract class AbstractAnnotationValueVisitor<R, P> extends AbstractAnnotationValueVisitor9<R, P> { |
114 public static abstract class AbstractAnnotationValueVisitor<R, P> extends AbstractAnnotationValueVisitor9<R, P> { |
115 |
115 |
116 /** |
116 /** |
117 * Constructor for concrete subclasses to call. |
117 * Constructor for concrete subclasses to call. |
118 */ |
118 */ |
119 protected AbstractAnnotationValueVisitor() { |
119 protected AbstractAnnotationValueVisitor() { |
120 super(); |
120 super(); |
121 } |
121 } |
122 } |
122 } |
123 |
123 |
124 @SupportedSourceVersion(RELEASE_11) |
124 @SupportedSourceVersion(RELEASE_12) |
125 public static abstract class AbstractElementVisitor<R, P> extends AbstractElementVisitor9<R, P> { |
125 public static abstract class AbstractElementVisitor<R, P> extends AbstractElementVisitor9<R, P> { |
126 /** |
126 /** |
127 * Constructor for concrete subclasses to call. |
127 * Constructor for concrete subclasses to call. |
128 */ |
128 */ |
129 protected AbstractElementVisitor(){ |
129 protected AbstractElementVisitor(){ |
130 super(); |
130 super(); |
131 } |
131 } |
132 } |
132 } |
133 |
133 |
134 @SupportedSourceVersion(RELEASE_11) |
134 @SupportedSourceVersion(RELEASE_12) |
135 public static abstract class AbstractTypeVisitor<R, P> extends AbstractTypeVisitor9<R, P> { |
135 public static abstract class AbstractTypeVisitor<R, P> extends AbstractTypeVisitor9<R, P> { |
136 /** |
136 /** |
137 * Constructor for concrete subclasses to call. |
137 * Constructor for concrete subclasses to call. |
138 */ |
138 */ |
139 protected AbstractTypeVisitor() { |
139 protected AbstractTypeVisitor() { |
140 super(); |
140 super(); |
141 } |
141 } |
142 } |
142 } |
143 |
143 |
144 @SupportedSourceVersion(RELEASE_11) |
144 @SupportedSourceVersion(RELEASE_12) |
145 public static class ElementKindVisitor<R, P> extends ElementKindVisitor9<R, P> { |
145 public static class ElementKindVisitor<R, P> extends ElementKindVisitor9<R, P> { |
146 /** |
146 /** |
147 * Constructor for concrete subclasses; uses {@code null} for the |
147 * Constructor for concrete subclasses; uses {@code null} for the |
148 * default value. |
148 * default value. |
149 */ |
149 */ |
160 protected ElementKindVisitor(R defaultValue) { |
160 protected ElementKindVisitor(R defaultValue) { |
161 super(defaultValue); |
161 super(defaultValue); |
162 } |
162 } |
163 } |
163 } |
164 |
164 |
165 @SupportedSourceVersion(RELEASE_11) |
165 @SupportedSourceVersion(RELEASE_12) |
166 public static class ElementScanner<R, P> extends ElementScanner9<R, P> { |
166 public static class ElementScanner<R, P> extends ElementScanner9<R, P> { |
167 /** |
167 /** |
168 * Constructor for concrete subclasses; uses {@code null} for the |
168 * Constructor for concrete subclasses; uses {@code null} for the |
169 * default value. |
169 * default value. |
170 */ |
170 */ |
179 protected ElementScanner(R defaultValue){ |
179 protected ElementScanner(R defaultValue){ |
180 super(defaultValue); |
180 super(defaultValue); |
181 } |
181 } |
182 } |
182 } |
183 |
183 |
184 @SupportedSourceVersion(RELEASE_11) |
184 @SupportedSourceVersion(RELEASE_12) |
185 public static class SimpleAnnotationValueVisitor<R, P> extends SimpleAnnotationValueVisitor9<R, P> { |
185 public static class SimpleAnnotationValueVisitor<R, P> extends SimpleAnnotationValueVisitor9<R, P> { |
186 /** |
186 /** |
187 * Constructor for concrete subclasses; uses {@code null} for the |
187 * Constructor for concrete subclasses; uses {@code null} for the |
188 * default value. |
188 * default value. |
189 */ |
189 */ |
200 protected SimpleAnnotationValueVisitor(R defaultValue) { |
200 protected SimpleAnnotationValueVisitor(R defaultValue) { |
201 super(defaultValue); |
201 super(defaultValue); |
202 } |
202 } |
203 } |
203 } |
204 |
204 |
205 @SupportedSourceVersion(RELEASE_11) |
205 @SupportedSourceVersion(RELEASE_12) |
206 public static class SimpleElementVisitor<R, P> extends SimpleElementVisitor9<R, P> { |
206 public static class SimpleElementVisitor<R, P> extends SimpleElementVisitor9<R, P> { |
207 /** |
207 /** |
208 * Constructor for concrete subclasses; uses {@code null} for the |
208 * Constructor for concrete subclasses; uses {@code null} for the |
209 * default value. |
209 * default value. |
210 */ |
210 */ |
221 protected SimpleElementVisitor(R defaultValue){ |
221 protected SimpleElementVisitor(R defaultValue){ |
222 super(defaultValue); |
222 super(defaultValue); |
223 } |
223 } |
224 } |
224 } |
225 |
225 |
226 @SupportedSourceVersion(RELEASE_11) |
226 @SupportedSourceVersion(RELEASE_12) |
227 public static class SimpleTypeVisitor<R, P> extends SimpleTypeVisitor9<R, P> { |
227 public static class SimpleTypeVisitor<R, P> extends SimpleTypeVisitor9<R, P> { |
228 /** |
228 /** |
229 * Constructor for concrete subclasses; uses {@code null} for the |
229 * Constructor for concrete subclasses; uses {@code null} for the |
230 * default value. |
230 * default value. |
231 */ |
231 */ |
242 protected SimpleTypeVisitor(R defaultValue){ |
242 protected SimpleTypeVisitor(R defaultValue){ |
243 super(defaultValue); |
243 super(defaultValue); |
244 } |
244 } |
245 } |
245 } |
246 |
246 |
247 @SupportedSourceVersion(RELEASE_11) |
247 @SupportedSourceVersion(RELEASE_12) |
248 public static class TypeKindVisitor<R, P> extends TypeKindVisitor9<R, P> { |
248 public static class TypeKindVisitor<R, P> extends TypeKindVisitor9<R, P> { |
249 /** |
249 /** |
250 * Constructor for concrete subclasses to call; uses {@code null} |
250 * Constructor for concrete subclasses to call; uses {@code null} |
251 * for the default value. |
251 * for the default value. |
252 */ |
252 */ |