# Uses of Interface
java.lang.classfile.AccessFlags

Packages that use AccessFlagsPREVIEW
Package
Description
java.lang.classfile
Provides classfile parsing, generation, and transformation library.
java.lang.classfile.components
Provides specific components, transformations, and tools built on top of the `java.lang.classfile`PREVIEW library.

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

  Methods in java.lang.classfilePREVIEW that return AccessFlagsPREVIEW
  Modifier and Type
  Method
  Description
  `AccessFlagsPREVIEW`
  ClassModel.`flags()`
  Returns the access flags.
  `AccessFlagsPREVIEW`
  FieldModel.`flags()`
  Returns the access flags.
  `AccessFlagsPREVIEW`
  MethodModel.`flags()`
  Returns the access flags.
  `static AccessFlagsPREVIEW`
  AccessFlags.`ofClass(int mask)`
  Returns an AccessFlagsPREVIEW for a class.
  `static AccessFlagsPREVIEW`
  AccessFlags.`ofClass(AccessFlag... flags)`
  Returns an AccessFlagsPREVIEW for a class.
  `static AccessFlagsPREVIEW`
  AccessFlags.`ofField(int mask)`
  Returns an AccessFlagsPREVIEW for a field.
  `static AccessFlagsPREVIEW`
  AccessFlags.`ofField(AccessFlag... flags)`
  Returns an AccessFlagsPREVIEW for a field.
  `static AccessFlagsPREVIEW`
  AccessFlags.`ofMethod(int mask)`
  Returns an AccessFlagsPREVIEW for a method.
  `static AccessFlagsPREVIEW`
  AccessFlags.`ofMethod(AccessFlag... flags)`
  Returns an AccessFlagsPREVIEW for a method.

- ## Uses of AccessFlagsPREVIEW in java.lang.classfile.componentsPREVIEW

  Methods in java.lang.classfile.componentsPREVIEW with parameters of type AccessFlagsPREVIEW
  Modifier and Type
  Method
  Description
  `static CodeLocalsShifterPREVIEW`
  CodeLocalsShifter.`of(AccessFlagsPREVIEW methodFlags, MethodTypeDesc methodDescriptor)`
  Creates a new instance of `CodeLocalsShifter`PREVIEW with fixed local slots calculated from provided method information.