Uses of Interface
java.lang.classfile.attribute.ModuleAttribute
Packages that use ModuleAttribute
Package
Description
Provides classfile parsing, generation, and transformation library.
Provides interfaces describing
class file 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 the mapper for theModuleattribute.Methods in java.lang.classfile with parameters of type ModuleAttributeModifier and TypeMethodDescriptiondefault byte[]ClassFile.buildModule(ModuleAttribute moduleAttribute) Builds a module descriptor into a byte array.default byte[]ClassFile.buildModule(ModuleAttribute moduleAttribute, Consumer<? super ClassBuilder> handler) Builds a module descriptor into a byte array.default voidClassFile.buildModuleTo(Path path, ModuleAttribute moduleAttribute) Builds a module descriptor into a file in a file system.default voidClassFile.buildModuleTo(Path path, ModuleAttribute moduleAttribute, Consumer<? super ClassBuilder> handler) Builds a module descriptor into a file in a file system. -
Uses of ModuleAttribute in java.lang.classfile.attribute
Subinterfaces with type arguments of type ModuleAttribute in java.lang.classfile.attributeModifier and TypeInterfaceDescriptioninterfaceMethods 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.