Uses of Interface java.lang.classfile.attribute.ModuleAttribute (Java SE 22 & JDK 22)
Description: use: module: java.base, package: java.lang.classfile.attribute, interface: ModuleAttribute

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

Packages that use ModuleAttributePREVIEW
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.

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

  Fields in java.lang.classfilePREVIEW with type parameters of type ModuleAttributePREVIEW
  Modifier and Type
  Field
  Description
  `static final AttributeMapperPREVIEW<ModuleAttributePREVIEW>`
  Attributes.`MODULE`
  Attribute mapper for the `Module` attribute
  Methods in java.lang.classfilePREVIEW with parameters of type ModuleAttributePREVIEW
  Modifier and Type
  Method
  Description
  `default byte[]`
  ClassFile.`buildModule(ModuleAttributePREVIEW moduleAttribute)`
  Build a module descriptor into a byte array.
  `default byte[]`
  ClassFile.`buildModule(ModuleAttributePREVIEW moduleAttribute, Consumer<? super ClassBuilderPREVIEW> handler)`
  Build a module descriptor into a byte array.
  `default void`
  ClassFile.`buildModuleTo(Path path, ModuleAttributePREVIEW moduleAttribute)`
  Build a module descriptor into a file.
  `default void`
  ClassFile.`buildModuleTo(Path path, ModuleAttributePREVIEW moduleAttribute, Consumer<? super ClassBuilderPREVIEW> handler)`
  Build a module descriptor into a file.

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

  Methods in java.lang.classfile.attributePREVIEW that return ModuleAttributePREVIEW
  Modifier and Type
  Method
  Description
  `ModuleAttributePREVIEW`
  ModuleAttribute.ModuleAttributeBuilder.`build()`
  Builds module attribute.
  `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 ModuleAttributePREVIEW`
  ModuleAttribute.`of(ModuleDesc moduleName, Consumer<ModuleAttribute.ModuleAttributeBuilderPREVIEW> attrHandler)`
  Returns a `Module` attribute.