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

Packages that use ModuleEntryPREVIEW
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 ModuleEntryPREVIEW in java.lang.classfilePREVIEW

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

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

  Methods in java.lang.classfile.attributePREVIEW that return ModuleEntryPREVIEW
  Modifier and Type
  Method
  Description
  `ModuleEntryPREVIEW`
  ModuleAttribute.`moduleName()`
  Returns the name of the module.
  `ModuleEntryPREVIEW`
  ModuleHashInfo.`moduleName()`
  Returns the name of the related module.
  `ModuleEntryPREVIEW`
  ModuleRequireInfo.`requires()`
  Returns The module on which the current module depends.
  Methods in java.lang.classfile.attributePREVIEW that return types with arguments of type ModuleEntryPREVIEW
  Modifier and Type
  Method
  Description
  `List<ModuleEntryPREVIEW>`
  ModuleExportInfo.`exportsTo()`
  Returns the list of modules to which this package is exported, if it is a qualified export.
  `List<ModuleEntryPREVIEW>`
  ModuleOpenInfo.`opensTo()`
  The list of modules to which this package is opened, if it is a qualified open.
  Methods in java.lang.classfile.attributePREVIEW with parameters of type ModuleEntryPREVIEW
  Modifier and Type
  Method
  Description
  `static ModuleAttributePREVIEW`
  ModuleAttribute.`of(ModuleEntryPREVIEW moduleName, int moduleFlags, Utf8EntryPREVIEW moduleVersion, Collection<ModuleRequireInfoPREVIEW> requires, Collection<ModuleExportInfoPREVIEW> exports, Collection<ModuleOpenInfoPREVIEW> opens, Collection<ClassEntryPREVIEW> uses, Collection<ModuleProvideInfoPREVIEW> provides)`
  Returns a `Module` attribute.
  `static ModuleAttributePREVIEW`
  ModuleAttribute.`of(ModuleEntryPREVIEW moduleName, Consumer<ModuleAttribute.ModuleAttributeBuilderPREVIEW> attrHandler)`
  Returns a `Module` attribute.
  `static ModuleExportInfoPREVIEW`
  ModuleExportInfo.`of(PackageEntryPREVIEW exports, int exportFlags, ModuleEntryPREVIEW... exportsTo)`
  Returns a module export description.
  `static ModuleExportInfoPREVIEW`
  ModuleExportInfo.`of(PackageEntryPREVIEW exports, Collection<AccessFlag> exportFlags, ModuleEntryPREVIEW... exportsTo)`
  Returns a module export description.
  `static ModuleHashInfoPREVIEW`
  ModuleHashInfo.`of(ModuleEntryPREVIEW moduleName, byte[] hash)`
  Returns a module hash description.
  `static ModuleOpenInfoPREVIEW`
  ModuleOpenInfo.`of(PackageEntryPREVIEW opens, int opensFlags, ModuleEntryPREVIEW... opensTo)`
  Returns a module open description.
  `static ModuleOpenInfoPREVIEW`
  ModuleOpenInfo.`of(PackageEntryPREVIEW opens, Collection<AccessFlag> opensFlags, ModuleEntryPREVIEW... opensTo)`
  Returns a module open description.
  `static ModuleRequireInfoPREVIEW`
  ModuleRequireInfo.`of(ModuleEntryPREVIEW requires, int requiresFlags, Utf8EntryPREVIEW requiresVersion)`
  Returns a module requirement description.
  `static ModuleRequireInfoPREVIEW`
  ModuleRequireInfo.`of(ModuleEntryPREVIEW requires, Collection<AccessFlag> requiresFlags, Utf8EntryPREVIEW requiresVersion)`
  Returns a module requirement description.
  Method parameters in java.lang.classfile.attributePREVIEW with type arguments of type ModuleEntryPREVIEW
  Modifier and Type
  Method
  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, List<ModuleEntryPREVIEW> exportsTo)`
  Returns a module export 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, List<ModuleEntryPREVIEW> opensTo)`
  Returns a module open description.

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

  Methods in java.lang.classfile.constantpoolPREVIEW that return ModuleEntryPREVIEW
  Modifier and Type
  Method
  Description
  `ModuleEntryPREVIEW`
  ConstantPoolBuilder.`moduleEntry(Utf8EntryPREVIEW moduleName)`
  Returns A `ModuleEntry`PREVIEW describing the module whose name is encoded in the provided Utf8EntryPREVIEW.
  `default ModuleEntryPREVIEW`
  ConstantPoolBuilder.`moduleEntry(ModuleDesc moduleDesc)`
  Returns A `ModuleEntry`PREVIEW describing the module described by provided ModuleDesc.