Uses of Interface java.lang.classfile.MethodElement (Java SE 26 & JDK 26)
Description: use: module: java.base, package: java.lang.classfile, interface: MethodElement

# Uses of Interface
java.lang.classfile.MethodElement

Packages that use MethodElement
Package
Description
java.lang.classfile
Provides classfile parsing, generation, and transformation library.
java.lang.classfile.attribute
Provides interfaces describing `class` file attributes for the `java.lang.classfile` library.

- ## Uses of MethodElement in java.lang.classfile

  Subinterfaces of MethodElement in java.lang.classfile
  Modifier and Type
  Interface
  Description
  `interface`
  `AccessFlags`
  Models the access flags for a class, method, or field.
  `interface`
  `CodeModel`
  Models the body of a method (the `Code` attribute).
  Classes in java.lang.classfile that implement MethodElement
  Modifier and Type
  Class
  Description
  `class`
  `CustomAttribute<T extends CustomAttribute<T>>`
  Models a user-defined attribute in a `class` file.
  Subinterfaces with type arguments of type MethodElement in java.lang.classfile
  Modifier and Type
  Interface
  Description
  `interface`
  `MethodBuilder`
  A builder for methods.
  `interface`
  `MethodModel`
  Models a method.
  `interface`
  `MethodTransform`
  A transformation on streams of `MethodElement`.
  Method parameters in java.lang.classfile with type arguments of type MethodElement
  Modifier and Type
  Method
  Description
  `static MethodTransform`
  MethodTransform.`dropping(Predicate<MethodElement> filter)`
  Creates a method transform that passes each element through to the builder, except for those that the supplied `Predicate` is true for.

- ## Uses of MethodElement in java.lang.classfile.attribute

  Subinterfaces of MethodElement in java.lang.classfile.attribute
  Modifier and Type
  Interface
  Description
  `interface`
  `AnnotationDefaultAttribute`
  Models the `AnnotationDefault` attribute (JVMS 4.7.22), which records the default value (JLS 9.6.2) for the annotation interface element defined by this method.
  `interface`
  `CodeAttribute`
  Models the `Code` attribute (JVMS 4.7.3), which contains the bytecode of this method.
  `interface`
  `DeprecatedAttribute`
  Models the `Deprecated` attribute (JVMS 4.7.15), which indicates this structure has been superseded.
  `interface`
  `ExceptionsAttribute`
  Models the `Exceptions` attribute (JVMS 4.7.5), which records the exceptions declared to be thrown by this method.
  `interface`
  `MethodParametersAttribute`
  Models the `MethodParameters` attribute (JVMS 4.7.24), which records reflective information about this method's parameters such as access modifiers.
  `interface`
  `RuntimeInvisibleAnnotationsAttribute`
  Models the `RuntimeInvisibleAnnotations` attribute (JVMS 4.7.17), which stores declaration annotations on this structure that are visible to `class` file consumers but are not visible to core reflection.
  `interface`
  `RuntimeInvisibleParameterAnnotationsAttribute`
  Models the `RuntimeInvisibleParameterAnnotations` attribute (JVMS 4.7.19), which stores declaration annotations on the method parameters of this method that are visible to `class` file consumers but are not visible to core reflection.
  `interface`
  `RuntimeInvisibleTypeAnnotationsAttribute`
  Models the `RuntimeInvisibleTypeAnnotations` attribute (JVMS 4.7.21), which stores type-use annotations for the annotated uses of types in this structure that are visible to `class` file consumers but are not visible to core reflection.
  `interface`
  `RuntimeVisibleAnnotationsAttribute`
  Models the `RuntimeVisibleAnnotations` attribute (JVMS 4.7.16), which stores declaration annotations on this structure that are visible to both `class` file consumers and core reflection.
  `interface`
  `RuntimeVisibleParameterAnnotationsAttribute`
  Models the `RuntimeVisibleParameterAnnotations` attribute (JVMS 4.7.18), which stores declaration annotations on the method parameters of this method that are visible to both `class` file consumers and core reflection.
  `interface`
  `RuntimeVisibleTypeAnnotationsAttribute`
  Models the `RuntimeVisibleTypeAnnotations` attribute (JVMS 4.7.20), which stores type-use annotations for the annotated uses of types in this structure that are visible to both `class` file consumers and core reflection.
  `interface`
  `SignatureAttribute`
  Models the `Signature` attribute (JVMS 4.7.9), which indicates the generic signature of this structure.
  `interface`
  `SyntheticAttribute`
  Models the `Synthetic` attribute (JVMS 4.7.8), which marks a class member as implementation-specific artifacts.
  `interface`
  `UnknownAttribute`
  Models an unknown attribute read from a `class` file.