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

# Uses of Interface
java.lang.constant.ModuleDesc

Packages that use ModuleDesc
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 ModuleDesc in java.lang.classfile.attributePREVIEW

  Methods in java.lang.classfile.attributePREVIEW with parameters of type ModuleDesc
  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
  `ModuleAttribute.ModuleAttributeBuilderPREVIEW`
  ModuleAttribute.ModuleAttributeBuilder.`moduleName(ModuleDesc moduleName)`
  Sets the module name
  `static ModuleAttributePREVIEW`
  ModuleAttribute.`of(ModuleDesc moduleName, Consumer<ModuleAttribute.ModuleAttributeBuilderPREVIEW> attrHandler)`
  Returns a `Module` attribute.
  `static ModuleExportInfoPREVIEW`
  ModuleExportInfo.`of(PackageDesc exports, int exportFlags, ModuleDesc... exportsTo)`
  Returns a module export description.
  `static ModuleExportInfoPREVIEW`
  ModuleExportInfo.`of(PackageDesc exports, Collection<AccessFlag> exportFlags, ModuleDesc... exportsTo)`
  Returns a module export description.
  `static ModuleHashInfoPREVIEW`
  ModuleHashInfo.`of(ModuleDesc moduleDesc, byte[] hash)`
  Returns a module hash description.
  `static ModuleOpenInfoPREVIEW`
  ModuleOpenInfo.`of(PackageDesc opens, int opensFlags, ModuleDesc... opensTo)`
  Returns a module open description.
  `static ModuleOpenInfoPREVIEW`
  ModuleOpenInfo.`of(PackageDesc opens, Collection<AccessFlag> opensFlags, ModuleDesc... opensTo)`
  Returns a module open description.
  `static ModuleRequireInfoPREVIEW`
  ModuleRequireInfo.`of(ModuleDesc requires, int requiresFlags, String requiresVersion)`
  Returns a module requirement description.
  `static ModuleRequireInfoPREVIEW`
  ModuleRequireInfo.`of(ModuleDesc requires, Collection<AccessFlag> requiresFlags, String requiresVersion)`
  Returns a module requirement description.
  `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
  `ModuleAttribute.ModuleAttributeBuilderPREVIEW`
  ModuleAttribute.ModuleAttributeBuilder.`requires(ModuleDesc module, int requiresFlagsMask, String version)`
  Adds module requirement
  `default ModuleAttribute.ModuleAttributeBuilderPREVIEW`
  ModuleAttribute.ModuleAttributeBuilder.`requires(ModuleDesc module, Collection<AccessFlag> requiresFlags, String version)`
  Adds module requirement
  Method parameters in java.lang.classfile.attributePREVIEW with type arguments of type ModuleDesc
  Modifier and Type
  Method
  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, List<ModuleDesc> exportsTo)`
  Returns a module export 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, List<ModuleDesc> opensTo)`
  Returns a module open description.

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

  Methods in java.lang.classfile.constantpoolPREVIEW that return ModuleDesc
  Modifier and Type
  Method
  Description
  `ModuleDesc`
  ModuleEntry.`asSymbol()`
  Returns a symbolic descriptor for the module.
  Methods in java.lang.classfile.constantpoolPREVIEW with parameters of type ModuleDesc
  Modifier and Type
  Method
  Description
  `default ModuleEntryPREVIEW`
  ConstantPoolBuilder.`moduleEntry(ModuleDesc moduleDesc)`
  Returns A `ModuleEntry`PREVIEW describing the module described by provided ModuleDesc.

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

  Methods in java.lang.constant that return ModuleDesc
  Modifier and Type
  Method
  Description
  `static ModuleDesc`
  ModuleDesc.`of(String name)`
  Returns a `ModuleDesc` for a module, given the name of the module.