< prev index next >

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

Print this page

        

*** 81,92 **** * @jls 7.4.2 Unnamed Packages */ boolean isUnnamed(); /** ! * Returns the enclosing module. * ! * @return the enclosing module */ @Override Element getEnclosingElement(); } --- 81,99 ---- * @jls 7.4.2 Unnamed Packages */ boolean isUnnamed(); /** ! * Returns the enclosing module if such a module exists; otherwise ! * returns {@code null}. * ! * One situation where a module does not exist for a package is if ! * the environment does not include modules, such as an annotation ! * processing environment configured for a {@linkplain ! * javax.annotation.processing.ProcessingEnvironment#getSourceVersion ! * source version} without modules. ! * ! * @return the enclosing module or {@code null} if no such module exists */ @Override Element getEnclosingElement(); }
< prev index next >