Interface TypeAnnotation.TypeParameterTarget

All Superinterfaces:
TypeAnnotation.TargetInfo
All Known Implementing Classes:
TargetInfoImpl.TypeParameterTargetImpl
Enclosing interface:
TypeAnnotation

public static sealed interface TypeAnnotation.TypeParameterTarget extends TypeAnnotation.TargetInfo permits TargetInfoImpl.TypeParameterTargetImpl
Indicates that an annotation appears on the declaration of the i'th type parameter of a generic class, generic interface, generic method, or generic constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    JVMS: The value of the type_parameter_index item specifies which type parameter declaration is annotated.

    Methods inherited from interface org.glavo.classfile.TypeAnnotation.TargetInfo

    size, targetType
  • Method Details

    • typeParameterIndex

      int typeParameterIndex()
      JVMS: The value of the type_parameter_index item specifies which type parameter declaration is annotated. A type_parameter_index value of 0 specifies the first type parameter declaration.
      Returns:
      the index into the type parameters