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
  • Method Details

    • formalParameterIndex

      int formalParameterIndex()
      Which formal parameter declaration has an annotated type.
      Returns:
      the index into the formal parameter declarations, in the order declared in the source code