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

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

  Fields in java.lang.classfilePREVIEW with type parameters of type ModuleMainClassAttributePREVIEW
  Modifier and Type
  Field
  Description
  `static final AttributeMapperPREVIEW<ModuleMainClassAttributePREVIEW>`
  Attributes.`MODULE_MAIN_CLASS`
  Attribute mapper for the `ModuleMainClass` attribute

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

  Methods in java.lang.classfile.attributePREVIEW that return ModuleMainClassAttributePREVIEW
  Modifier and Type
  Method
  Description
  `static ModuleMainClassAttributePREVIEW`
  ModuleMainClassAttribute.`of(ClassEntryPREVIEW mainClass)`
  Returns a `ModuleMainClass` attribute.
  `static ModuleMainClassAttributePREVIEW`
  ModuleMainClassAttribute.`of(ClassDesc mainClass)`
  Returns a `ModuleMainClass` attribute.