private static class TypePool.Default.LazyTypeDescription.LazyPackageDescription extends PackageDescription.AbstractBase
PackageDescription
that only
loads its annotations on requirement.PackageDescription.AbstractBase, PackageDescription.ForLoadedPackage, PackageDescription.Simple
NamedElement.WithGenericName, NamedElement.WithOptionalName, NamedElement.WithRuntimeName
AnnotationSource.Empty, AnnotationSource.Explicit
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
name
The name of the package.
|
private TypePool |
typePool
The type pool to use for look-ups.
|
PACKAGE_CLASS_NAME, PACKAGE_MODIFIERS, UNDEFINED
EMPTY_NAME, NO_NAME
Modifier | Constructor and Description |
---|---|
private |
LazyPackageDescription(TypePool typePool,
java.lang.String name)
Creates a new lazy package description.
|
Modifier and Type | Method and 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.
|
contains, equals, getActualName, getInternalName, hashCode, toString
private final TypePool typePool
private final java.lang.String name
private LazyPackageDescription(TypePool typePool, java.lang.String name)
typePool
- The type pool to use for look-ups.name
- The name of the package.public AnnotationList getDeclaredAnnotations()
public java.lang.String getName()