public interface PackageInfo extends DeclarationInfo
package-info.java.
Obtaining the set of members present in this package is not possible.DeclarationInfo.Kind| Modifier and Type | Method and Description |
|---|---|
default PackageInfo |
asPackage()
Returns this declaration as a package.
|
default DeclarationInfo.Kind |
kind()
Returns the kind of this declaration.
|
java.lang.String |
name()
Returns the fully qualified name of this package, as defined by The Java™ Language Specification;
in other words, the package name as returned by
Package.getName(). |
asClass, asDeclaration, asField, asMethod, asParameter, asRecordComponent, asType, isClass, isDeclaration, isField, isMethod, isPackage, isParameter, isRecordComponent, isTypeannotation, annotations, annotations, hasAnnotation, hasAnnotation, repeatableAnnotationjava.lang.String name()
Package.getName().nulldefault DeclarationInfo.Kind kind()
DeclarationInfokind in interface DeclarationInfodefault PackageInfo asPackage()
DeclarationInfoasPackage in interface DeclarationInfonull