Uses of Interface
java.lang.classfile.attribute.ModuleAttribute
Packages that use ModuleAttributePREVIEW
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
Methods in java.lang.classfilePREVIEW that return types with arguments of type ModuleAttributePREVIEWModifier and TypeMethodDescriptionAttributes.module()
Returns Attribute mapper for theModule
attribute.Methods in java.lang.classfilePREVIEW with parameters of type ModuleAttributePREVIEWModifier 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
Subinterfaces with type arguments of type ModuleAttributePREVIEW in java.lang.classfile.attributePREVIEWModifier and TypeInterfaceDescriptioninterface
Preview.Models theModule
attribute (JVMS 4.7.25), which can appear on classes that represent module descriptors.Methods in java.lang.classfile.attributePREVIEW that return ModuleAttributePREVIEWModifier 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.