< prev index next >

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

Print this page

        

@@ -146,10 +146,15 @@
      * <li> If this is a {@linkplain
      * VariableElement#getEnclosingElement method or constructor
      * parameter}, {@linkplain ExecutableElement the executable
      * element} which declares the parameter is returned.
      *
+     * <li> If this is a {@linkplain
+     * VariableElement#getEnclosingElement state component},
+     * {@linkplain ExecutableElement the type} which declares the
+     * state component is returned.
+     *
      * <li> If this is a {@linkplain ModuleElement#getEnclosingElement
      * module}, {@code null} is returned.
      *
      * </ul>
      *

@@ -164,11 +169,11 @@
      * Returns the elements that are, loosely speaking, directly
      * enclosed by this element.
      *
      * A {@linkplain TypeElement#getEnclosedElements class or
      * interface} is considered to enclose the fields, methods,
-     * constructors, and member types that it directly declares.
+     * constructors, state components, and member types that it directly declares.
      *
      * A {@linkplain PackageElement#getEnclosedElements package}
      * encloses the top-level classes and interfaces within it, but is
      * not considered to enclose subpackages.
      *
< prev index next >