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
public interface PackageDescription extends NamedElement.WithRuntimeName, AnnotationSource
A package description represents a Java package.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
PackageDescription.AbstractBase
An abstract base implementation of a package description.static class
PackageDescription.ForLoadedPackage
Represents a loadedPackage
wrapped as aPackageDescription
.static class
PackageDescription.Simple
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
Fields Modifier and Type Field Description static java.lang.String
PACKAGE_CLASS_NAME
The name of a Java class representing a package description.static int
PACKAGE_MODIFIERS
The modifiers of a Java class representing a package description.static PackageDescription
UNDEFINED
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
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 Detail
-
PACKAGE_CLASS_NAME
static final java.lang.String PACKAGE_CLASS_NAME
The name of a Java class representing a package description.- See Also:
- Constant Field Values
-
PACKAGE_MODIFIERS
static final int PACKAGE_MODIFIERS
The modifiers of a Java class representing a package description.- See Also:
- Constant Field Values
-
UNDEFINED
static final PackageDescription UNDEFINED
A named constant for an undefined package what applies for primitive and array types.
-
-
Method Detail
-
contains
boolean contains(TypeDescription typeDescription)
Checks if this package contains the provided type.- Parameters:
typeDescription
- The type to examine.- Returns:
true
if the given type contains the provided type.
-
-