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 class
An abstract base implementation of a package description.static class
Represents a loadedPackage
wrapped as aPackageDescription
.static class
A simple implementation of a package without annotations.Nested classes/interfaces inherited from interface net.bytebuddy.description.annotation.AnnotationSource
AnnotationSource.Empty, AnnotationSource.Explicit
Nested classes/interfaces inherited from interface net.bytebuddy.description.NamedElement
NamedElement.WithDescriptor, NamedElement.WithGenericName, NamedElement.WithOptionalName, NamedElement.WithRuntimeName
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The name of a Java class representing a package description.static final int
The modifiers of a Java class representing a package description.static final PackageDescription
A 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 TypeMethodDescriptionboolean
contains
(TypeDescription typeDescription) Checks if this package contains the provided type.Methods inherited from interface net.bytebuddy.description.annotation.AnnotationSource
getDeclaredAnnotations
Methods inherited from interface net.bytebuddy.description.NamedElement
getActualName
Methods inherited from interface net.bytebuddy.description.NamedElement.WithRuntimeName
getInternalName, getName
-
Field Details
-
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:
true
if the given type contains the provided type.
-