Uses of Interface
java.lang.classfile.attribute.ModuleAttribute.ModuleAttributeBuilder
Package
Description
Provides interfaces describing classfile attributes for the
java.lang.classfile
PREVIEW library.-
Uses of ModuleAttribute.ModuleAttributeBuilderPREVIEW in java.lang.classfile.attributePREVIEW
Modifier and TypeMethodDescriptionModuleAttribute.ModuleAttributeBuilder.exports
(ModuleExportInfoPREVIEW exports) Adds exported packageModuleAttribute.ModuleAttributeBuilder.exports
(PackageDesc pkge, int exportsFlagsMask, ModuleDesc... exportsToModules) Adds exported packageModuleAttribute.ModuleAttributeBuilder.exports
(PackageDesc pkge, Collection<AccessFlag> exportsFlags, ModuleDesc... exportsToModules) Adds exported packageModuleAttribute.ModuleAttributeBuilder.moduleFlags
(int flagsMask) Sets the module flagsModuleAttribute.ModuleAttributeBuilder.moduleFlags
(AccessFlag... moduleFlags) Sets the module flagsModuleAttribute.ModuleAttributeBuilder.moduleName
(ModuleDesc moduleName) Sets the module nameModuleAttribute.ModuleAttributeBuilder.moduleVersion
(String version) Sets the module versionModuleAttribute.ModuleAttributeBuilder.opens
(ModuleOpenInfoPREVIEW opens) Opens packageModuleAttribute.ModuleAttributeBuilder.opens
(PackageDesc pkge, int opensFlagsMask, ModuleDesc... opensToModules) Opens packageModuleAttribute.ModuleAttributeBuilder.opens
(PackageDesc pkge, Collection<AccessFlag> opensFlags, ModuleDesc... opensToModules) Opens packageModuleAttribute.ModuleAttributeBuilder.provides
(ModuleProvideInfoPREVIEW provides) Declares provision of a serviceDeclares provision of a serviceModuleAttribute.ModuleAttributeBuilder.requires
(ModuleRequireInfoPREVIEW requires) Adds module requirementModuleAttribute.ModuleAttributeBuilder.requires
(ModuleDesc module, int requiresFlagsMask, String version) Adds module requirementModuleAttribute.ModuleAttributeBuilder.requires
(ModuleDesc module, Collection<AccessFlag> requiresFlags, String version) Adds module requirementModuleAttribute.ModuleAttributeBuilder.uses
(ClassEntryPREVIEW uses) Declares use of a serviceDeclares use of a serviceModifier and TypeMethodDescriptionstatic 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.