Package net.bytebuddy.description.type
Class PackageDescription.ForLoadedPackage
java.lang.Object
net.bytebuddy.description.type.PackageDescription.AbstractBase
net.bytebuddy.description.type.PackageDescription.ForLoadedPackage
- All Implemented Interfaces:
AnnotationSource
,NamedElement
,NamedElement.WithRuntimeName
,PackageDescription
- Enclosing interface:
- PackageDescription
Represents a loaded
Package
wrapped as a
PackageDescription
.-
Nested Class Summary
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
Nested classes/interfaces inherited from interface net.bytebuddy.description.type.PackageDescription
PackageDescription.AbstractBase, PackageDescription.ForLoadedPackage, PackageDescription.Simple
-
Field Summary
FieldsFields inherited from interface net.bytebuddy.description.NamedElement
EMPTY_NAME, NO_NAME
Fields inherited from interface net.bytebuddy.description.type.PackageDescription
PACKAGE_CLASS_NAME, PACKAGE_MODIFIERS, UNDEFINED
-
Constructor Summary
ConstructorsConstructorDescriptionForLoadedPackage
(Package aPackage) Creates a new loaded package representation. -
Method Summary
Modifier and TypeMethodDescriptionReturns a list of annotations that are declared by this instance.getName()
Returns the binary name of this byte code element.Methods inherited from class net.bytebuddy.description.type.PackageDescription.AbstractBase
contains, equals, getActualName, getInternalName, hashCode, toString
-
Field Details
-
aPackage
The represented package.
-
-
Constructor Details
-
ForLoadedPackage
Creates a new loaded package representation.- Parameters:
aPackage
- The represented package.
-
-
Method Details
-
getDeclaredAnnotations
Returns a list of annotations that are declared by this instance.- Returns:
- A list of declared annotations.
-
getName
Returns the binary name of this byte code element. If no well-defined internal name is known for this element, the actual name is returned.- Returns:
- The binary ame of this byte code element as visible from within a running Java application.
-