# Uses of Interface
java.lang.classfile.MethodElement

Packages that use MethodElementPREVIEW
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 MethodElementPREVIEW in java.lang.classfilePREVIEW

  Subinterfaces of MethodElementPREVIEW in java.lang.classfilePREVIEW
  Modifier and Type
  Interface
  Description
  `interface`
  `AccessFlagsPREVIEW`
  Preview.
  Models the access flags for a class, method, or field.
  `interface`
  `CodeModelPREVIEW`
  Preview.
  Models the body of a method (the `Code` attribute).
  Classes in java.lang.classfilePREVIEW that implement MethodElementPREVIEW
  Modifier and Type
  Class
  Description
  `class`
  `CustomAttributePREVIEW<T extends CustomAttributePREVIEW<T>>`
  Preview.
  Models a non-standard attribute of a classfile.
  Methods in java.lang.classfilePREVIEW that return types with arguments of type MethodElementPREVIEW
  Modifier and Type
  Method
  Description
  `default ClassFileTransform.ResolvedTransformPREVIEW<MethodElementPREVIEW>`
  MethodTransform.`resolve(MethodBuilderPREVIEW builder)`
  Method parameters in java.lang.classfilePREVIEW with type arguments of type MethodElementPREVIEW
  Modifier and Type
  Method
  Description
  `static MethodTransformPREVIEW`
  MethodTransform.`dropping(Predicate<MethodElementPREVIEW> filter)`
  Create a method transform that passes each element through to the builder, except for those that the supplied `Predicate` is true for.

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

  Subinterfaces of MethodElementPREVIEW in java.lang.classfile.attributePREVIEW
  Modifier and Type
  Interface
  Description
  `interface`
  `AnnotationDefaultAttributePREVIEW`
  Preview.
  Models the `AnnotationDefault` attribute 4.7.22, which can appear on methods of annotation types, and records the default value 9.6.2 for the element corresponding to this method.
  `interface`
  `CodeAttributePREVIEW`
  Preview.
  Models the `Code` attribute 4.7.3, appears on non-native, non-abstract methods and contains the bytecode of the method body.
  `interface`
  `DeprecatedAttributePREVIEW`
  Preview.
  Models the `Deprecated` attribute 4.7.15, which can appear on classes, methods, and fields.
  `interface`
  `ExceptionsAttributePREVIEW`
  Preview.
  Models the `Exceptions` attribute 4.7.5, which can appear on methods, and records the exceptions declared to be thrown by this method.
  `interface`
  `MethodParametersAttributePREVIEW`
  Preview.
  Models the `MethodParameters` attribute 4.7.24, which can appear on methods, and records optional information about the method's parameters.
  `interface`
  `RuntimeInvisibleAnnotationsAttributePREVIEW`
  Preview.
  Models the `RuntimeInvisibleAnnotations` attribute 4.7.17, which can appear on classes, methods, and fields.
  `interface`
  `RuntimeInvisibleParameterAnnotationsAttributePREVIEW`
  Preview.
  Models the `RuntimeInvisibleParameterAnnotations` attribute 4.7.19, which can appear on methods.
  `interface`
  `RuntimeInvisibleTypeAnnotationsAttributePREVIEW`
  Preview.
  Models the `RuntimeInvisibleTypeAnnotations` attribute 4.7.21, which can appear on classes, methods, fields, and code attributes.
  `interface`
  `RuntimeVisibleAnnotationsAttributePREVIEW`
  Preview.
  Models the `RuntimeVisibleAnnotations` attribute 4.7.16, which can appear on classes, methods, and fields.
  `interface`
  `RuntimeVisibleParameterAnnotationsAttributePREVIEW`
  Preview.
  Models the `RuntimeVisibleParameterAnnotations` attribute 4.7.18, which can appear on methods.
  `interface`
  `RuntimeVisibleTypeAnnotationsAttributePREVIEW`
  Preview.
  Models the `RuntimeVisibleTypeAnnotations` attribute 4.7.20, which can appear on classes, methods, fields, and code attributes.
  `interface`
  `SignatureAttributePREVIEW`
  Preview.
  Models the `Signature` attribute 4.7.9, which can appear on classes, methods, or fields.
  `interface`
  `SyntheticAttributePREVIEW`
  Preview.
  Models the `Synthetic` attribute 4.7.8, which can appear on classes, methods, and fields.
  `interface`
  `UnknownAttributePREVIEW`
  Preview.
  Models an unknown attribute on a class, method, or field.