Interface DeprecatedAttribute

All Superinterfaces:
Attribute<DeprecatedAttribute>, ClassElement, ClassFileElement, FieldElement, MethodElement

public sealed interface DeprecatedAttribute extends Attribute<DeprecatedAttribute>, ClassElement, MethodElement, FieldElement
Models the Deprecated attribute (JVMS 4.7.15), which can appear on classes, methods, and fields. Delivered as a ClassElement, MethodElement, or FieldElement when traversing the elements of a corresponding model.

The attribute permits multiple instances in a given location.

Since:
24
  • Method Details

    • of

      static DeprecatedAttribute of()
      Returns a Deprecated attribute.
      Returns:
      a Deprecated attribute