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, isType
annotation, annotations, annotations, hasAnnotation, hasAnnotation, repeatableAnnotation
java.lang.String name()
Package.getName()
.null
default DeclarationInfo.Kind kind()
DeclarationInfo
kind
in interface DeclarationInfo
default PackageInfo asPackage()
DeclarationInfo
asPackage
in interface DeclarationInfo
null