Uses of Interface java.lang.constant.PackageDesc (Java SE 23 & JDK 23)
Description: use: module: java.base, package: java.lang.constant, interface: PackageDesc

# Uses of Interface
java.lang.constant.PackageDesc

Packages that use PackageDesc
Package
Description
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.
java.lang.constant
Classes and interfaces to represent nominal descriptors for run-time entities such as classes or method handles, and classfile entities such as constant pool entries or `invokedynamic` call sites.

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

  Methods in java.lang.classfile.attributePREVIEW with parameters of type PackageDesc
  Modifier and Type
  Method
  Description
  `ModuleAttribute.ModuleAttributeBuilderPREVIEW`
  ModuleAttribute.ModuleAttributeBuilder.`exports(PackageDesc pkge, int exportsFlagsMask, ModuleDesc... exportsToModules)`
  Adds exported package
  `default ModuleAttribute.ModuleAttributeBuilderPREVIEW`
  ModuleAttribute.ModuleAttributeBuilder.`exports(PackageDesc pkge, Collection<AccessFlag> exportsFlags, ModuleDesc... exportsToModules)`
  Adds exported package
  `static ModuleExportInfoPREVIEW`
  ModuleExportInfo.`of(PackageDesc exports, int exportFlags, ModuleDesc... exportsTo)`
  Returns a module export description.
  `static ModuleExportInfoPREVIEW`
  ModuleExportInfo.`of(PackageDesc exports, int exportFlags, List<ModuleDesc> exportsTo)`
  Returns a module export description.
  `static ModuleExportInfoPREVIEW`
  ModuleExportInfo.`of(PackageDesc exports, Collection<AccessFlag> exportFlags, ModuleDesc... exportsTo)`
  Returns a module export description.
  `static ModuleExportInfoPREVIEW`
  ModuleExportInfo.`of(PackageDesc exports, Collection<AccessFlag> exportFlags, List<ModuleDesc> exportsTo)`
  Returns a module export description.
  `static ModuleOpenInfoPREVIEW`
  ModuleOpenInfo.`of(PackageDesc opens, int opensFlags, ModuleDesc... opensTo)`
  Returns a module open description.
  `static ModuleOpenInfoPREVIEW`
  ModuleOpenInfo.`of(PackageDesc opens, int opensFlags, List<ModuleDesc> opensTo)`
  Returns a module open description.
  `static ModuleOpenInfoPREVIEW`
  ModuleOpenInfo.`of(PackageDesc opens, Collection<AccessFlag> opensFlags, ModuleDesc... opensTo)`
  Returns a module open description.
  `static ModuleOpenInfoPREVIEW`
  ModuleOpenInfo.`of(PackageDesc opens, Collection<AccessFlag> opensFlags, List<ModuleDesc> opensTo)`
  Returns a module open description.
  `static ModulePackagesAttributePREVIEW`
  ModulePackagesAttribute.`ofNames(PackageDesc... packages)`
  Returns a `ModulePackages` attribute.
  `ModuleAttribute.ModuleAttributeBuilderPREVIEW`
  ModuleAttribute.ModuleAttributeBuilder.`opens(PackageDesc pkge, int opensFlagsMask, ModuleDesc... opensToModules)`
  Opens package
  `default ModuleAttribute.ModuleAttributeBuilderPREVIEW`
  ModuleAttribute.ModuleAttributeBuilder.`opens(PackageDesc pkge, Collection<AccessFlag> opensFlags, ModuleDesc... opensToModules)`
  Opens package
  Method parameters in java.lang.classfile.attributePREVIEW with type arguments of type PackageDesc
  Modifier and Type
  Method
  Description
  `static ModulePackagesAttributePREVIEW`
  ModulePackagesAttribute.`ofNames(List<PackageDesc> packages)`
  Returns a `ModulePackages` attribute.

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

  Methods in java.lang.classfile.constantpoolPREVIEW that return PackageDesc
  Modifier and Type
  Method
  Description
  `PackageDesc`
  PackageEntry.`asSymbol()`
  Returns a symbolic descriptor for the package name.
  Methods in java.lang.classfile.constantpoolPREVIEW with parameters of type PackageDesc
  Modifier and Type
  Method
  Description
  `default PackageEntryPREVIEW`
  ConstantPoolBuilder.`packageEntry(PackageDesc packageDesc)`
  Returns A `PackageEntry`PREVIEW describing the class described by provided PackageDesc.

- ## Uses of PackageDesc in java.lang.constant

  Methods in java.lang.constant that return PackageDesc
  Modifier and Type
  Method
  Description
  `static PackageDesc`
  PackageDesc.`of(String name)`
  Returns a `PackageDesc` for a package, given the name of the package, such as `"java.lang"`.
  `static PackageDesc`
  PackageDesc.`ofInternalName(String name)`
  Returns a `PackageDesc` for a package, given the name of the package in internal form, such as `"java/lang"`.