Interface TypeAnnotation.FormalParameterTarget

All Superinterfaces:
TypeAnnotation.TargetInfo
Enclosing interface:
TypeAnnotation

public static sealed interface TypeAnnotation.FormalParameterTarget extends TypeAnnotation.TargetInfo
Indicates that an annotation appears on the type in a formal parameter declaration of a method, constructor, or lambda expression.
Since:
24
See Also:
  • Method Details

    • formalParameterIndex

      int formalParameterIndex()
      Returns the index into the formal parameter declarations, in the order declared in the source code. The index may differ from the index in the method descriptor because some synthetic or implicit parameters are omitted.
      Returns:
      the index into the formal parameter declarations, in the order declared in the source code