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 classPackageDescription.AbstractBaseAn abstract base implementation of a package description.static classPackageDescription.ForLoadedPackageRepresents a loadedPackagewrapped as aPackageDescription.static classPackageDescription.SimpleA 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 PackageDescriptionDEFAULTA representation of the default package without any annotations.static java.lang.StringPACKAGE_CLASS_NAMEThe name of a Java class representing a package description.static intPACKAGE_MODIFIERSThe modifiers of a Java class representing a package description.static PackageDescriptionUNDEFINEDA 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 booleancontains(TypeDescription typeDescription)Checks if this package contains the provided type.booleanisDefault()Returnstrueif this package description represents the default package.-
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
-
DEFAULT
static final PackageDescription DEFAULT
A representation of the default package without any annotations.
-
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
@AlwaysNull 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:
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.
-
-