Uses of Interface
java.lang.classfile.attribute.ModuleAttribute
Package
Description
Provides classfile parsing, generation, and transformation library.
Provides interfaces describing classfile attributes for the
java.lang.classfile
PREVIEW library.-
Uses of ModuleAttributePREVIEW in java.lang.classfilePREVIEW
Modifier and TypeMethodDescriptionAttributes.module()
Returns Attribute mapper for theModule
attribute.Modifier and TypeMethodDescriptiondefault 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
Modifier and TypeInterfaceDescriptioninterface
Preview.Models theModule
attribute (JVMS 4.7.25), which can appear on classes that represent module descriptors.Modifier and TypeMethodDescriptionstatic 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 aModule
attribute.static ModuleAttributePREVIEW
ModuleAttribute.of
(ModuleEntryPREVIEW moduleName, Consumer<ModuleAttribute.ModuleAttributeBuilderPREVIEW> attrHandler) Returns aModule
attribute.static ModuleAttributePREVIEW
ModuleAttribute.of
(ModuleDesc moduleName, Consumer<ModuleAttribute.ModuleAttributeBuilderPREVIEW> attrHandler) Returns aModule
attribute.