Uses of Interface
java.lang.classfile.attribute.ModuleAttribute.ModuleAttributeBuilder
Packages that use ModuleAttribute.ModuleAttributeBuilder
Package
Description
Provides interfaces describing
class
file attributes for the java.lang.classfile
library.-
Uses of ModuleAttribute.ModuleAttributeBuilder in java.lang.classfile.attribute
Methods in java.lang.classfile.attribute that return ModuleAttribute.ModuleAttributeBuilderModifier and TypeMethodDescriptionModuleAttribute.ModuleAttributeBuilder.exports
(ModuleExportInfo exports) Adds an exported package.ModuleAttribute.ModuleAttributeBuilder.exports
(PackageDesc pkge, int exportsFlagsMask, ModuleDesc... exportsToModules) Adds an exported package.ModuleAttribute.ModuleAttributeBuilder.exports
(PackageDesc pkge, Collection<AccessFlag> exportsFlags, ModuleDesc... exportsToModules) Adds an exported package.ModuleAttribute.ModuleAttributeBuilder.moduleFlags
(int flagsMask) Sets the module flags.ModuleAttribute.ModuleAttributeBuilder.moduleFlags
(AccessFlag... moduleFlags) Sets the module flags.ModuleAttribute.ModuleAttributeBuilder.moduleName
(ModuleDesc moduleName) Sets the module name.ModuleAttribute.ModuleAttributeBuilder.moduleVersion
(String version) Sets the module version, which may benull
.ModuleAttribute.ModuleAttributeBuilder.opens
(ModuleOpenInfo opens) Opens a package.ModuleAttribute.ModuleAttributeBuilder.opens
(PackageDesc pkge, int opensFlagsMask, ModuleDesc... opensToModules) Opens a package.ModuleAttribute.ModuleAttributeBuilder.opens
(PackageDesc pkge, Collection<AccessFlag> opensFlags, ModuleDesc... opensToModules) Opens a package.ModuleAttribute.ModuleAttributeBuilder.provides
(ModuleProvideInfo provides) Declares provision of a service.Declares provision of a service.ModuleAttribute.ModuleAttributeBuilder.requires
(ModuleRequireInfo requires) Adds module requirement.ModuleAttribute.ModuleAttributeBuilder.requires
(ModuleDesc module, int requiresFlagsMask, String version) Adds a module requirement.ModuleAttribute.ModuleAttributeBuilder.requires
(ModuleDesc module, Collection<AccessFlag> requiresFlags, String version) Adds a module requirement.ModuleAttribute.ModuleAttributeBuilder.uses
(ClassEntry uses) Declares use of a service.Declares use of a service.Method parameters in java.lang.classfile.attribute with type arguments of type ModuleAttribute.ModuleAttributeBuilderModifier and TypeMethodDescriptionstatic ModuleAttribute
ModuleAttribute.of
(ModuleEntry moduleName, Consumer<ModuleAttribute.ModuleAttributeBuilder> attrHandler) Returns aModule
attribute.static ModuleAttribute
ModuleAttribute.of
(ModuleDesc moduleName, Consumer<ModuleAttribute.ModuleAttributeBuilder> attrHandler) Returns aModule
attribute.