Class PackageDescription.Simple
java.lang.Object
net.bytebuddy.description.type.PackageDescription.AbstractBase
net.bytebuddy.description.type.PackageDescription.Simple
- All Implemented Interfaces:
AnnotationSource, NamedElement, NamedElement.WithRuntimeName, PackageDescription
- Enclosing interface:
PackageDescription
A simple implementation of a package without annotations.
-
Nested Class Summary
Nested classes/interfaces inherited from interface AnnotationSource
AnnotationSource.Empty, AnnotationSource.ExplicitNested classes/interfaces inherited from interface NamedElement
NamedElement.WithDescriptor, NamedElement.WithGenericName, NamedElement.WithOptionalName, NamedElement.WithRuntimeNameNested classes/interfaces inherited from interface PackageDescription
PackageDescription.AbstractBase, PackageDescription.ForLoadedPackage, PackageDescription.Simple -
Field Summary
FieldsFields inherited from interface NamedElement
EMPTY_NAME, NO_NAMEFields inherited from interface PackageDescription
DEFAULT, PACKAGE_CLASS_NAME, PACKAGE_MODIFIERS, UNDEFINED -
Constructor Summary
Constructors -
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 PackageDescription.AbstractBase
contains, equals, getActualName, getInternalName, hashCode, isDefault, toString
-
Field Details
-
name
The name of the package.
-
-
Constructor Details
-
Simple
Creates a new simple package.- Parameters:
name- The name of the 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.
-