1 /* |
1 /* |
2 * Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2005, 2011, 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. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
26 package javax.lang.model.element; |
26 package javax.lang.model.element; |
27 |
27 |
28 import javax.lang.model.type.TypeMirror; |
28 import javax.lang.model.type.TypeMirror; |
29 import javax.lang.model.util.Elements; |
29 import javax.lang.model.util.Elements; |
30 |
30 |
31 |
|
32 /** |
31 /** |
33 * Represents a field, {@code enum} constant, method or constructor |
32 * Represents a field, {@code enum} constant, method or constructor |
34 * parameter, local variable, or exception parameter. |
33 * parameter, local variable, resource variable, or exception |
|
34 * parameter. |
35 * |
35 * |
36 * @author Joseph D. Darcy |
36 * @author Joseph D. Darcy |
37 * @author Scott Seligman |
37 * @author Scott Seligman |
38 * @author Peter von der Ahé |
38 * @author Peter von der Ahé |
39 * @since 1.6 |
39 * @since 1.6 |
40 */ |
40 */ |
41 |
|
42 public interface VariableElement extends Element { |
41 public interface VariableElement extends Element { |
43 |
42 |
44 /** |
43 /** |
45 * Returns the value of this variable if this is a {@code final} |
44 * Returns the value of this variable if this is a {@code final} |
46 * field initialized to a compile-time constant. Returns {@code |
45 * field initialized to a compile-time constant. Returns {@code |