Package net.bytebuddy.pool
Class TypePool.Default.LazyTypeDescription.LazyPackageDescription
- java.lang.Object
-
- net.bytebuddy.description.type.PackageDescription.AbstractBase
-
- net.bytebuddy.pool.TypePool.Default.LazyTypeDescription.LazyPackageDescription
-
- All Implemented Interfaces:
AnnotationSource
,NamedElement
,NamedElement.WithRuntimeName
,PackageDescription
- Enclosing class:
- TypePool.Default.LazyTypeDescription
private static class TypePool.Default.LazyTypeDescription.LazyPackageDescription extends PackageDescription.AbstractBase
An implementation of aPackageDescription
that only loads its annotations on requirement.
-
-
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
Fields Modifier and Type Field Description private java.lang.String
name
The name of the package.private TypePool
typePool
The type pool to use for look-ups.-
Fields 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
Constructors Modifier Constructor Description private
LazyPackageDescription(TypePool typePool, java.lang.String name)
Creates a new lazy package description.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AnnotationList
getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.java.lang.String
getName()
Returns the internalName of this byte code element.-
Methods inherited from class net.bytebuddy.description.type.PackageDescription.AbstractBase
contains, equals, getActualName, getInternalName, hashCode, toString
-
-
-
-
Field Detail
-
typePool
private final TypePool typePool
The type pool to use for look-ups.
-
name
private final java.lang.String name
The name of the package.
-
-
Constructor Detail
-
LazyPackageDescription
private LazyPackageDescription(TypePool typePool, java.lang.String name)
Creates a new lazy package description.- Parameters:
typePool
- The type pool to use for look-ups.name
- The name of the package.
-
-
Method Detail
-
getDeclaredAnnotations
public AnnotationList getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.- Returns:
- A list of declared annotations.
-
getName
public java.lang.String getName()
Returns the internalName of this byte code element.- Returns:
- The internalName of this byte code element as visible from within a running Java application.
-
-