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

public static class PackageDescription.Simple extends PackageDescription.AbstractBase
A simple implementation of a package without annotations.
  • Field Details

    • name

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

    • Simple

      public Simple(String name)
      Creates a new simple package.
      Parameters:
      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.