# Uses of Interface
java.lang.classfile.attribute.ModuleRequireInfo

Packages that use ModuleRequireInfoPREVIEW
Package
Description
java.lang.classfile.attribute
Provides interfaces describing classfile attributes for the `java.lang.classfile`PREVIEW library.

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

  Methods in java.lang.classfile.attributePREVIEW that return ModuleRequireInfoPREVIEW
  Modifier and Type
  Method
  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.
  `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.
  Methods in java.lang.classfile.attributePREVIEW that return types with arguments of type ModuleRequireInfoPREVIEW
  Modifier and Type
  Method
  Description
  `List<ModuleRequireInfoPREVIEW>`
  ModuleAttribute.`requires()`
  Returns the modules required by this module.
  Methods in java.lang.classfile.attributePREVIEW with parameters of type ModuleRequireInfoPREVIEW
  Modifier and Type
  Method
  Description
  `ModuleAttribute.ModuleAttributeBuilderPREVIEW`
  ModuleAttribute.ModuleAttributeBuilder.`requires(ModuleRequireInfoPREVIEW requires)`
  Adds module requirement
  Method parameters in java.lang.classfile.attributePREVIEW with type arguments of type ModuleRequireInfoPREVIEW
  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.