< prev index next >

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

Print this page

        

@@ -29,12 +29,12 @@
 import javax.lang.model.type.TypeMirror;
 import javax.lang.model.type.TypeKind;
 
 /**
  * Represents a field, {@code enum} constant, method or constructor
- * parameter, local variable, resource variable, or exception
- * parameter.
+ * parameter, local variable, resource variable, exception
+ * parameter, or state component.
  *
  * @author Joseph D. Darcy
  * @author Scott Seligman
  * @author Peter von der Ah&eacute;
  * @since 1.6

@@ -96,10 +96,13 @@
      * Returns the enclosing element of this variable.
      *
      * The enclosing element of a method or constructor parameter is
      * the executable declaring the parameter.
      *
+     * The enclosing element of a state component is the type
+     * declaring the state component.
+     *
      * @return the enclosing element of this variable
      */
     @Override
     Element getEnclosingElement();
 }
< prev index next >