# Uses of Interface
java.lang.classfile.attribute.EnclosingMethodAttribute

Packages that use EnclosingMethodAttributePREVIEW
Package
Description
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.

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

  Fields in java.lang.classfilePREVIEW with type parameters of type EnclosingMethodAttributePREVIEW
  Modifier and Type
  Field
  Description
  `static final AttributeMapperPREVIEW<EnclosingMethodAttributePREVIEW>`
  Attributes.`ENCLOSING_METHOD`
  Attribute mapper for the `EnclosingMethod` attribute

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

  Methods in java.lang.classfile.attributePREVIEW that return EnclosingMethodAttributePREVIEW
  Modifier and Type
  Method
  Description
  `static EnclosingMethodAttributePREVIEW`
  EnclosingMethodAttribute.`of(ClassEntryPREVIEW className, Optional<NameAndTypeEntryPREVIEW> method)`
  Returns an `EnclosingMethod` attribute.
  `static EnclosingMethodAttributePREVIEW`
  EnclosingMethodAttribute.`of(ClassDesc className, Optional<String> methodName, Optional<MethodTypeDesc> methodType)`
  Returns an `EnclosingMethod` attribute.