Debian Codegraph @

lang-model/src/main/java/jakarta/enterprise/lang/model/declarations/PackageInfo.java

raw
1 package jakarta.enterprise.lang.model.declarations;
2
3 /**
4 * A package, possibly annotated in {@code package-info.java}.
5 * Obtaining the set of members present in this package is not possible.
6 *
7 * @since 4.0
8 */
9 public interface PackageInfo extends DeclarationInfo {
10 /**
11 * Returns the fully qualified name of this package, as defined by <cite>The Java&trade; Language Specification</cite>;
12 * in other words, the package name as returned by {@link Package#getName()}.
13 *
14 * @return fully qualified name of this package, never {@code null}
15 */
16 String name();
17
18 // ---
19
20 @Override
21 default Kind kind() {
22 return Kind.PACKAGE;
23 }
24
25 @Override
26 default PackageInfo asPackage() {
27 return this;
28 }
29 }