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 a PackageDescription that only loads its annotations on requirement.
  • Field Details

    • typePool

      private final TypePool typePool
      The type pool to use for look-ups.
    • name

      private final String name
      The name of the package.
  • Constructor Details

    • LazyPackageDescription

      private LazyPackageDescription(TypePool typePool, 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 Details

    • getDeclaredAnnotations

      public AnnotationList getDeclaredAnnotations()
      Returns a list of annotations that are declared by this instance.
      Returns:
      A list of declared annotations.
    • getName

      public String 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.