Uses of Enum Class java.lang.reflect.AccessFlag (Java SE 23 & JDK 23)
Description: use: module: java.base, package: java.lang.reflect, enum: AccessFlag

# Uses of Enum Class
java.lang.reflect.AccessFlag

Packages that use AccessFlag
Package
Description
java.lang
Provides classes that are fundamental to the design of the Java programming language.
java.lang.classfile
Provides classfile parsing, generation, and transformation library.
java.lang.classfile.attribute
Provides interfaces describing classfile attributes for the `java.lang.classfile`PREVIEW library.
java.lang.module
Classes to support module descriptors and creating configurations of modules by means of resolution and service binding.
java.lang.reflect
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 AccessFlag
  Modifier and Type
  Method
  Description
  `Set<AccessFlag>`
  Class.`accessFlags()`
  Returns an unmodifiable set of the access flags for this class, possibly empty.

- ## Uses of AccessFlag in java.lang.classfilePREVIEW

  Methods in java.lang.classfilePREVIEW that return types with arguments of type AccessFlag
  Modifier and Type
  Method
  Description
  `Set<AccessFlag>`
  AccessFlags.`flags()`
  Returns the access flags.
  Methods in java.lang.classfilePREVIEW with parameters of type AccessFlag
  Modifier and Type
  Method
  Description
  `boolean`
  AccessFlags.`has(AccessFlag flag)`
  Returns whether the specified flag is present.
  `static AccessFlagsPREVIEW`
  AccessFlags.`ofClass(AccessFlag... flags)`
  Returns an AccessFlagsPREVIEW for a class.
  `static AccessFlagsPREVIEW`
  AccessFlags.`ofField(AccessFlag... flags)`
  Returns an AccessFlagsPREVIEW for a field.
  `static AccessFlagsPREVIEW`
  AccessFlags.`ofMethod(AccessFlag... flags)`
  Returns an AccessFlagsPREVIEW for a method.
  `default ClassBuilderPREVIEW`
  ClassBuilder.`withFlags(AccessFlag... flags)`
  Sets the classfile access flags.
  `default FieldBuilderPREVIEW`
  FieldBuilder.`withFlags(AccessFlag... flags)`
  Sets the field access flags.
  `default MethodBuilderPREVIEW`
  MethodBuilder.`withFlags(AccessFlag... flags)`
  Sets the method access flags.

- ## Uses of AccessFlag in java.lang.classfile.attributePREVIEW

  Methods in java.lang.classfile.attributePREVIEW that return types with arguments of type AccessFlag
  Modifier and Type
  Method
  Description
  `default Set<AccessFlag>`
  ModuleExportInfo.`exportsFlags()`
  Returns the flags associated with this export declaration, as a set of flag values.
  `default Set<AccessFlag>`
  InnerClassInfo.`flags()`
  Returns a set of flag enums denoting access permissions and properties of the inner class.
  `default Set<AccessFlag>`
  MethodParameterInfo.`flags()`
  Parameter access flags for this parameter.
  `default Set<AccessFlag>`
  ModuleAttribute.`moduleFlags()`
  Returns the the module flags of the module, as a set of enum constants.
  `default Set<AccessFlag>`
  ModuleOpenInfo.`opensFlags()`
  Returns the access flags.
  `default Set<AccessFlag>`
  ModuleRequireInfo.`requiresFlags()`
  Returns the access flags.
  Methods in java.lang.classfile.attributePREVIEW with parameters of type AccessFlag
  Modifier and Type
  Method
  Description
  `default 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 module has the specified access flag set.
  `default boolean`
  ModuleOpenInfo.`has(AccessFlag flag)`
  Returns whether the specified access flag is set.
  `default boolean`
  ModuleRequireInfo.`has(AccessFlag flag)`
  Returns whether the specific access flag is set.
  `default ModuleAttribute.ModuleAttributeBuilderPREVIEW`
  ModuleAttribute.ModuleAttributeBuilder.`moduleFlags(AccessFlag... moduleFlags)`
  Sets the module flags
  `static InnerClassInfoPREVIEW`
  InnerClassInfo.`of(ClassDesc innerClass, Optional<ClassDesc> outerClass, Optional<String> innerName, AccessFlag... flags)`
  Returns an inner class description.
  `static MethodParameterInfoPREVIEW`
  MethodParameterInfo.`of(Optional<String> name, AccessFlag... flags)`
  Returns a method parameter description.
  Method parameters in java.lang.classfile.attributePREVIEW with type arguments of type AccessFlag
  Modifier and Type
  Method
  Description
  `default ModuleAttribute.ModuleAttributeBuilderPREVIEW`
  ModuleAttribute.ModuleAttributeBuilder.`exports(PackageDesc pkge, Collection<AccessFlag> exportsFlags, ModuleDesc... exportsToModules)`
  Adds exported package
  `static ModuleExportInfoPREVIEW`
  ModuleExportInfo.`of(PackageEntryPREVIEW exports, Collection<AccessFlag> exportFlags, ModuleEntryPREVIEW... exportsTo)`
  Returns a module export description.
  `static ModuleExportInfoPREVIEW`
  ModuleExportInfo.`of(PackageEntryPREVIEW exports, Collection<AccessFlag> exportFlags, List<ModuleEntryPREVIEW> exportsTo)`
  Returns a module export description.
  `static ModuleExportInfoPREVIEW`
  ModuleExportInfo.`of(PackageDesc exports, Collection<AccessFlag> exportFlags, ModuleDesc... exportsTo)`
  Returns a module export description.
  `static ModuleExportInfoPREVIEW`
  ModuleExportInfo.`of(PackageDesc exports, Collection<AccessFlag> exportFlags, List<ModuleDesc> exportsTo)`
  Returns a module export description.
  `static ModuleOpenInfoPREVIEW`
  ModuleOpenInfo.`of(PackageEntryPREVIEW opens, Collection<AccessFlag> opensFlags, ModuleEntryPREVIEW... opensTo)`
  Returns a module open description.
  `static ModuleOpenInfoPREVIEW`
  ModuleOpenInfo.`of(PackageEntryPREVIEW opens, Collection<AccessFlag> opensFlags, List<ModuleEntryPREVIEW> opensTo)`
  Returns a module open description.
  `static ModuleOpenInfoPREVIEW`
  ModuleOpenInfo.`of(PackageDesc opens, Collection<AccessFlag> opensFlags, ModuleDesc... opensTo)`
  Returns a module open description.
  `static ModuleOpenInfoPREVIEW`
  ModuleOpenInfo.`of(PackageDesc opens, Collection<AccessFlag> opensFlags, List<ModuleDesc> opensTo)`
  Returns a module open description.
  `static ModuleRequireInfoPREVIEW`
  ModuleRequireInfo.`of(ModuleEntryPREVIEW requires, Collection<AccessFlag> requiresFlags, Utf8EntryPREVIEW requiresVersion)`
  Returns a module requirement description.
  `static ModuleRequireInfoPREVIEW`
  ModuleRequireInfo.`of(ModuleDesc requires, Collection<AccessFlag> requiresFlags, String requiresVersion)`
  Returns a module requirement description.
  `default ModuleAttribute.ModuleAttributeBuilderPREVIEW`
  ModuleAttribute.ModuleAttributeBuilder.`opens(PackageDesc pkge, Collection<AccessFlag> opensFlags, ModuleDesc... opensToModules)`
  Opens package
  `default ModuleAttribute.ModuleAttributeBuilderPREVIEW`
  ModuleAttribute.ModuleAttributeBuilder.`requires(ModuleDesc module, Collection<AccessFlag> requiresFlags, String version)`
  Adds module requirement

- ## Uses of AccessFlag in java.lang.module

  Methods in java.lang.module that return types with arguments of type AccessFlag
  Modifier and Type
  Method
  Description
  `Set<AccessFlag>`
  ModuleDescriptor.`accessFlags()`
  Returns the set of the module flags.
  `Set<AccessFlag>`
  ModuleDescriptor.Exports.`accessFlags()`
  Returns the set of the module export flags for this module descriptor.
  `Set<AccessFlag>`
  ModuleDescriptor.Opens.`accessFlags()`
  Returns the set of the module opens flags.
  `Set<AccessFlag>`
  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.reflect
  Modifier and Type
  Class
  Description
  `enum`
  `AccessFlag`
  Represents a JVM access or module-related flag on a runtime member, such as a class, field, or method.
  Methods in java.lang.reflect that return AccessFlag
  Modifier and Type
  Method
  Description
  `static AccessFlag`
  AccessFlag.`valueOf(String name)`
  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 AccessFlag
  Modifier and Type
  Method
  Description
  `Set<AccessFlag>`
  Executable.`accessFlags()`
  Returns an unmodifiable set of the access flags for the executable represented by this object, possibly empty.
  `Set<AccessFlag>`
  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.
  `Set<AccessFlag>`
  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.