Uses of Enum Class
java.lang.reflect.AccessFlag
Packages that use AccessFlag
Package
Description
Provides classes that are fundamental to the design of the Java
programming language.
Provides classfile parsing, generation, and transformation library.
Provides interfaces describing
class
file attributes for the java.lang.classfile
library.Classes to support module descriptors and creating configurations of modules
by means of resolution and service binding.
Provides classes and interfaces for obtaining reflective information about
classes and objects.
-
Uses of AccessFlag in java.lang
Methods in java.lang that return types with arguments of type AccessFlagModifier and TypeMethodDescriptionClass.accessFlags()
Returns an unmodifiable set of the access flags for this class, possibly empty. -
Uses of AccessFlag in java.lang.classfile
Methods in java.lang.classfile that return types with arguments of type AccessFlagModifier and TypeMethodDescriptionAccessFlags.flags()
Returns the access flags, as a set of flag enums.Methods in java.lang.classfile with parameters of type AccessFlagModifier and TypeMethodDescriptionboolean
AccessFlags.has
(AccessFlag flag) Returns whether the specified flag is set.default ClassBuilder
ClassBuilder.withFlags
(AccessFlag... flags) Sets the access flags of this class.default FieldBuilder
FieldBuilder.withFlags
(AccessFlag... flags) Sets the field access flags.default MethodBuilder
MethodBuilder.withFlags
(AccessFlag... flags) Sets the method access flags. -
Uses of AccessFlag in java.lang.classfile.attribute
Methods in java.lang.classfile.attribute that return types with arguments of type AccessFlagModifier and TypeMethodDescriptiondefault Set
<AccessFlag> ModuleExportInfo.exportsFlags()
Returns the flags associated with this export declaration, as a set of flag enums.default Set
<AccessFlag> InnerClassInfo.flags()
Returns a set of flag enums denoting access permissions and properties of the nested class.default Set
<AccessFlag> MethodParameterInfo.flags()
Returns the access flags, as a set of flag enums.default Set
<AccessFlag> ModuleAttribute.moduleFlags()
Returns the module flags of the module, as a set of enum constants.default Set
<AccessFlag> ModuleOpenInfo.opensFlags()
Returns the flags associated with this open declaration, as a set of flag enums.default Set
<AccessFlag> ModuleRequireInfo.requiresFlags()
Returns the flags associated with this require declaration, as a set of flag enums.Methods in java.lang.classfile.attribute with parameters of type AccessFlagModifier and TypeMethodDescriptiondefault boolean
InnerClassInfo.has
(AccessFlag flag) Returns whether a specific access flag is set.default boolean
MethodParameterInfo.has
(AccessFlag flag) Returns whether the method parameter has a specific flag set.default boolean
ModuleAttribute.has
(AccessFlag flag) Tests presence of module flag.default boolean
ModuleExportInfo.has
(AccessFlag flag) Returns whether the export declaration has the specified access flag set.default boolean
ModuleOpenInfo.has
(AccessFlag flag) Returns whether the open declaration has the specified access flag set.default boolean
ModuleRequireInfo.has
(AccessFlag flag) Returns whether the specific access flag is set.ModuleAttribute.ModuleAttributeBuilder.moduleFlags
(AccessFlag... moduleFlags) Sets the module flags.static InnerClassInfo
InnerClassInfo.of
(ClassDesc innerClass, Optional<ClassDesc> outerClass, Optional<String> innerName, AccessFlag... flags) Returns a nested class description.static MethodParameterInfo
MethodParameterInfo.of
(Optional<String> name, AccessFlag... flags) Returns a method parameter description.Method parameters in java.lang.classfile.attribute with type arguments of type AccessFlagModifier and TypeMethodDescriptionModuleAttribute.ModuleAttributeBuilder.exports
(PackageDesc pkge, Collection<AccessFlag> exportsFlags, ModuleDesc... exportsToModules) Adds an exported package.static ModuleExportInfo
ModuleExportInfo.of
(PackageEntry exports, Collection<AccessFlag> exportFlags, ModuleEntry... exportsTo) Returns a module export description.static ModuleExportInfo
ModuleExportInfo.of
(PackageEntry exports, Collection<AccessFlag> exportFlags, List<ModuleEntry> exportsTo) Returns a module export description.static ModuleExportInfo
ModuleExportInfo.of
(PackageDesc exports, Collection<AccessFlag> exportFlags, ModuleDesc... exportsTo) Returns a module export description.static ModuleExportInfo
ModuleExportInfo.of
(PackageDesc exports, Collection<AccessFlag> exportFlags, List<ModuleDesc> exportsTo) Returns a module export description.static ModuleOpenInfo
ModuleOpenInfo.of
(PackageEntry opens, Collection<AccessFlag> opensFlags, ModuleEntry... opensTo) Returns a module open description.static ModuleOpenInfo
ModuleOpenInfo.of
(PackageEntry opens, Collection<AccessFlag> opensFlags, List<ModuleEntry> opensTo) Returns a module open description.static ModuleOpenInfo
ModuleOpenInfo.of
(PackageDesc opens, Collection<AccessFlag> opensFlags, ModuleDesc... opensTo) Returns a module open description.static ModuleOpenInfo
ModuleOpenInfo.of
(PackageDesc opens, Collection<AccessFlag> opensFlags, List<ModuleDesc> opensTo) Returns a module open description.static ModuleRequireInfo
ModuleRequireInfo.of
(ModuleEntry requires, Collection<AccessFlag> requiresFlags, Utf8Entry requiresVersion) Returns a module requirement description.static ModuleRequireInfo
ModuleRequireInfo.of
(ModuleDesc requires, Collection<AccessFlag> requiresFlags, String requiresVersion) Returns a module requirement description.ModuleAttribute.ModuleAttributeBuilder.opens
(PackageDesc pkge, Collection<AccessFlag> opensFlags, ModuleDesc... opensToModules) Opens a package.ModuleAttribute.ModuleAttributeBuilder.requires
(ModuleDesc module, Collection<AccessFlag> requiresFlags, String version) Adds a module requirement. -
Uses of AccessFlag in java.lang.module
Methods in java.lang.module that return types with arguments of type AccessFlagModifier and TypeMethodDescriptionModuleDescriptor.accessFlags()
Returns the set of the module flags.ModuleDescriptor.Exports.accessFlags()
Returns the set of the module export flags for this module descriptor.ModuleDescriptor.Opens.accessFlags()
Returns the set of the module opens flags.ModuleDescriptor.Requires.accessFlags()
Returns the set of the module requires flags. -
Uses of AccessFlag in java.lang.reflect
Subclasses with type arguments of type AccessFlag in java.lang.reflectModifier and TypeClassDescriptionenum
Methods in java.lang.reflect that return AccessFlagModifier and TypeMethodDescriptionstatic AccessFlag
Returns the enum constant of this class with the specified name.static AccessFlag[]
AccessFlag.values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods in java.lang.reflect that return types with arguments of type AccessFlagModifier and TypeMethodDescriptionExecutable.accessFlags()
Returns an unmodifiable set of the access flags for the executable represented by this object, possibly empty.Field.accessFlags()
Returns an unmodifiable set of the access flags for this field, possibly empty.default Set
<AccessFlag> Member.accessFlags()
Returns an unmodifiable set of the access flags for this member, possibly empty.Parameter.accessFlags()
Returns an unmodifiable set of the access flags for the parameter represented by this object, possibly empty.static Set
<AccessFlag> AccessFlag.maskToAccessFlags
(int mask, AccessFlag.Location location) Returns an unmodifiable set of access flags for the given mask value appropriate for the location in question.