src/share/classes/javax/lang/model/element/VariableElement.java

changeset 1484
7612fe48be90
parent 1357
c75be5bc5283
child 2227
998b10c43157
equal deleted inserted replaced
1483:d2eb08b3f64f 1484:7612fe48be90
60 * @see Elements#getConstantExpression(Object) 60 * @see Elements#getConstantExpression(Object)
61 * @jls 15.28 Constant Expression 61 * @jls 15.28 Constant Expression
62 * @jls 4.12.4 final Variables 62 * @jls 4.12.4 final Variables
63 */ 63 */
64 Object getConstantValue(); 64 Object getConstantValue();
65
66 /**
67 * Returns the simple name of this variable element.
68 *
69 * <p>For method and constructor parameters, the name of each
70 * parameter must be distinct from the names of all other
71 * parameters of the same executable. If the original source
72 * names are not available, an implementation may synthesize names
73 * subject to the distinctness requirement above.
74 *
75 * @return the simple name of this variable element
76 */
77 @Override
78 Name getSimpleName();
79
80 /**
81 * Returns the enclosing element of this variable.
82 *
83 * The enclosing element of a method or constructor parameter is
84 * the executable declaring the parameter.
85 *
86 * @return the enclosing element of this variable
87 */
88 @Override
89 Element getEnclosingElement();
65 } 90 }

mercurial