Interface SyntheticAttribute

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

public sealed interface SyntheticAttribute extends Attribute<SyntheticAttribute>, ClassElement, MethodElement, FieldElement
Models the Synthetic attribute (JVMS 4.7.8), 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 SyntheticAttribute of()
      Returns a Synthetic attribute.
      Returns:
      a Synthetic attribute