68 * @return the top-level classes and interfaces within this 69 * package 70 */ 71 @Override 72 List<? extends Element> getEnclosedElements(); 73 74 /** 75 * Returns {@code true} if this is an unnamed package and {@code 76 * false} otherwise. 77 * 78 * @return {@code true} if this is an unnamed package and {@code 79 * false} otherwise 80 * @jls 7.4.2 Unnamed Packages 81 */ 82 boolean isUnnamed(); 83 84 /** 85 * Returns the enclosing module. 86 * 87 * @return the enclosing module 88 */ 89 @Override 90 Element getEnclosingElement(); 91 } | 68 * @return the top-level classes and interfaces within this 69 * package 70 */ 71 @Override 72 List<? extends Element> getEnclosedElements(); 73 74 /** 75 * Returns {@code true} if this is an unnamed package and {@code 76 * false} otherwise. 77 * 78 * @return {@code true} if this is an unnamed package and {@code 79 * false} otherwise 80 * @jls 7.4.2 Unnamed Packages 81 */ 82 boolean isUnnamed(); 83 84 /** 85 * Returns the enclosing module. 86 * 87 * @return the enclosing module 88 * 89 * @revised 9 90 * @spec JPMS 91 */ 92 @Override 93 Element getEnclosingElement(); 94 } |