# Uses of Interface
java.lang.classfile.constantpool.PackageEntry

Packages that use PackageEntryPREVIEW
Package
Description
java.lang.classfile
Provides classfile parsing, generation, and transformation library.
java.lang.classfile.attribute
Provides interfaces describing classfile attributes for the `java.lang.classfile`PREVIEW library.
java.lang.classfile.constantpool
Provides interfaces describing classfile constant pool entries for the `java.lang.classfile`PREVIEW library.

- ## Uses of PackageEntryPREVIEW in java.lang.classfilePREVIEW

  Methods in java.lang.classfilePREVIEW that return PackageEntryPREVIEW
  Modifier and Type
  Method
  Description
  `PackageEntryPREVIEW`
  ClassReader.`readPackageEntry(int offset)`
  Returns the package entry whose index is given at the specified offset within the classfile.

- ## Uses of PackageEntryPREVIEW in java.lang.classfile.attributePREVIEW

  Methods in java.lang.classfile.attributePREVIEW that return PackageEntryPREVIEW
  Modifier and Type
  Method
  Description
  `PackageEntryPREVIEW`
  ModuleExportInfo.`exportedPackage()`
  Returns the exported package.
  `PackageEntryPREVIEW`
  ModuleOpenInfo.`openedPackage()`
  Returns the package being opened.
  Methods in java.lang.classfile.attributePREVIEW that return types with arguments of type PackageEntryPREVIEW
  Modifier and Type
  Method
  Description
  `List<PackageEntryPREVIEW>`
  ModulePackagesAttribute.`packages()`
  Returns the packages that are opened or exported by this module.
  Methods in java.lang.classfile.attributePREVIEW with parameters of type PackageEntryPREVIEW
  Modifier and Type
  Method
  Description
  `static ModuleExportInfoPREVIEW`
  ModuleExportInfo.`of(PackageEntryPREVIEW exports, int exportFlags, ModuleEntryPREVIEW... exportsTo)`
  Returns a module export description.
  `static ModuleExportInfoPREVIEW`
  ModuleExportInfo.`of(PackageEntryPREVIEW exports, int exportFlags, List<ModuleEntryPREVIEW> exportsTo)`
  Returns a module export description.
  `static ModuleExportInfoPREVIEW`
  ModuleExportInfo.`of(PackageEntryPREVIEW exports, Collection<AccessFlag> exportFlags, ModuleEntryPREVIEW... exportsTo)`
  Returns a module export description.
  `static ModuleExportInfoPREVIEW`
  ModuleExportInfo.`of(PackageEntryPREVIEW exports, Collection<AccessFlag> exportFlags, List<ModuleEntryPREVIEW> exportsTo)`
  Returns a module export description.
  `static ModuleOpenInfoPREVIEW`
  ModuleOpenInfo.`of(PackageEntryPREVIEW opens, int opensFlags, ModuleEntryPREVIEW... opensTo)`
  Returns a module open description.
  `static ModuleOpenInfoPREVIEW`
  ModuleOpenInfo.`of(PackageEntryPREVIEW opens, int opensFlags, List<ModuleEntryPREVIEW> opensTo)`
  Returns a module open description.
  `static ModuleOpenInfoPREVIEW`
  ModuleOpenInfo.`of(PackageEntryPREVIEW opens, Collection<AccessFlag> opensFlags, ModuleEntryPREVIEW... opensTo)`
  Returns a module open description.
  `static ModuleOpenInfoPREVIEW`
  ModuleOpenInfo.`of(PackageEntryPREVIEW opens, Collection<AccessFlag> opensFlags, List<ModuleEntryPREVIEW> opensTo)`
  Returns a module open description.
  `static ModulePackagesAttributePREVIEW`
  ModulePackagesAttribute.`of(PackageEntryPREVIEW... packages)`
  Returns a `ModulePackages` attribute.
  Method parameters in java.lang.classfile.attributePREVIEW with type arguments of type PackageEntryPREVIEW
  Modifier and Type
  Method
  Description
  `static ModulePackagesAttributePREVIEW`
  ModulePackagesAttribute.`of(List<PackageEntryPREVIEW> packages)`
  Returns a `ModulePackages` attribute.

- ## Uses of PackageEntryPREVIEW in java.lang.classfile.constantpoolPREVIEW

  Methods in java.lang.classfile.constantpoolPREVIEW that return PackageEntryPREVIEW
  Modifier and Type
  Method
  Description
  `PackageEntryPREVIEW`
  ConstantPoolBuilder.`packageEntry(Utf8EntryPREVIEW nameEntry)`
  Returns A `PackageEntry`PREVIEW describing the class whose internal name is encoded in the provided Utf8EntryPREVIEW.
  `default PackageEntryPREVIEW`
  ConstantPoolBuilder.`packageEntry(PackageDesc packageDesc)`
  Returns A `PackageEntry`PREVIEW describing the class described by provided PackageDesc.