Package net.bytebuddy.description.type
Interface PackageDescription
- All Superinterfaces:
AnnotationSource,NamedElement,NamedElement.WithRuntimeName
- All Known Implementing Classes:
PackageDescription.AbstractBase,PackageDescription.ForLoadedPackage,PackageDescription.Simple,TypePool.Default.LazyTypeDescription.LazyPackageDescription
A package description represents a Java package.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classAn abstract base implementation of a package description.static classRepresents a loadedPackagewrapped as aPackageDescription.static classA simple implementation of a package without annotations.Nested classes/interfaces inherited from interface net.bytebuddy.description.annotation.AnnotationSource
AnnotationSource.Empty, AnnotationSource.ExplicitNested classes/interfaces inherited from interface net.bytebuddy.description.NamedElement
NamedElement.WithDescriptor, NamedElement.WithGenericName, NamedElement.WithOptionalName, NamedElement.WithRuntimeName -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PackageDescriptionA representation of the default package without any annotations.static final StringThe name of a Java class representing a package description.static final intThe modifiers of a Java class representing a package description.static final PackageDescriptionA named constant for an undefined package what applies for primitive and array types.Fields inherited from interface net.bytebuddy.description.NamedElement
EMPTY_NAME, NO_NAME -
Method Summary
Modifier and TypeMethodDescriptionbooleancontains(TypeDescription typeDescription) Checks if this package contains the provided type.booleanReturnstrueif this package description represents the default package.Methods inherited from interface net.bytebuddy.description.annotation.AnnotationSource
getDeclaredAnnotationsMethods inherited from interface net.bytebuddy.description.NamedElement
getActualNameMethods inherited from interface net.bytebuddy.description.NamedElement.WithRuntimeName
getInternalName, getName
-
Field Details
-
DEFAULT
A representation of the default package without any annotations. -
PACKAGE_CLASS_NAME
The name of a Java class representing a package description.- See Also:
-
PACKAGE_MODIFIERS
static final int PACKAGE_MODIFIERSThe modifiers of a Java class representing a package description.- See Also:
-
UNDEFINED
A named constant for an undefined package what applies for primitive and array types.
-
-
Method Details
-
contains
Checks if this package contains the provided type.- Parameters:
typeDescription- The type to examine.- Returns:
trueif the given type contains the provided type.
-
isDefault
boolean isDefault()Returnstrueif this package description represents the default package.- Returns:
trueif this package description represents the default package.
-