Interface PackageDescription

All Superinterfaces:
AnnotationSource, NamedElement, NamedElement.WithRuntimeName
All Known Implementing Classes:
PackageDescription.AbstractBase, PackageDescription.ForLoadedPackage, PackageDescription.Simple, TypePool.Default.LazyTypeDescription.LazyPackageDescription

public interface PackageDescription extends NamedElement.WithRuntimeName, AnnotationSource
A package description represents a Java package.
  • Field Details

    • PACKAGE_CLASS_NAME

      static final String PACKAGE_CLASS_NAME
      The name of a Java class representing a package description.
      See Also:
    • PACKAGE_MODIFIERS

      static final int PACKAGE_MODIFIERS
      The modifiers of a Java class representing a package description.
      See Also:
    • UNDEFINED

      @AlwaysNull static final PackageDescription UNDEFINED
      A named constant for an undefined package what applies for primitive and array types.
  • Method Details

    • contains

      boolean contains(TypeDescription typeDescription)
      Checks if this package contains the provided type.
      Parameters:
      typeDescription - The type to examine.
      Returns:
      true if the given type contains the provided type.