Uses of Interface
java.lang.classfile.attribute.ModuleAttribute
Packages that use ModuleAttribute
Package
Description
Provides classfile parsing, generation, and transformation library.
Provides interfaces describing classfile attributes for the
java.lang.classfile library.-
Uses of ModuleAttribute in java.lang.classfile
Methods in java.lang.classfile that return types with arguments of type ModuleAttributeModifier and TypeMethodDescriptionstatic AttributeMapper<ModuleAttribute> Attributes.module()Returns Attribute mapper for theModuleattribute.Methods in java.lang.classfile with parameters of type ModuleAttributeModifier and TypeMethodDescriptiondefault byte[]ClassFile.buildModule(ModuleAttribute moduleAttribute) Build a module descriptor into a byte array.default byte[]ClassFile.buildModule(ModuleAttribute moduleAttribute, Consumer<? super ClassBuilder> handler) Build a module descriptor into a byte array.default voidClassFile.buildModuleTo(Path path, ModuleAttribute moduleAttribute) Build a module descriptor into a file.default voidClassFile.buildModuleTo(Path path, ModuleAttribute moduleAttribute, Consumer<? super ClassBuilder> handler) Build a module descriptor into a file. -
Uses of ModuleAttribute in java.lang.classfile.attribute
Subinterfaces with type arguments of type ModuleAttribute in java.lang.classfile.attributeModifier and TypeInterfaceDescriptioninterfaceModels theModuleattribute (JVMS 4.7.25), which can appear on classes that represent module descriptors.Methods in java.lang.classfile.attribute that return ModuleAttributeModifier and TypeMethodDescriptionstatic ModuleAttributeModuleAttribute.of(ModuleEntry moduleName, int moduleFlags, Utf8Entry moduleVersion, Collection<ModuleRequireInfo> requires, Collection<ModuleExportInfo> exports, Collection<ModuleOpenInfo> opens, Collection<ClassEntry> uses, Collection<ModuleProvideInfo> provides) Returns aModuleattribute.static ModuleAttributeModuleAttribute.of(ModuleEntry moduleName, Consumer<ModuleAttribute.ModuleAttributeBuilder> attrHandler) Returns aModuleattribute.static ModuleAttributeModuleAttribute.of(ModuleDesc moduleName, Consumer<ModuleAttribute.ModuleAttributeBuilder> attrHandler) Returns aModuleattribute.