Module java.base

Interface TypeAnnotation.TypeArgumentTarget

All Superinterfaces:
TypeAnnotation.TargetInfoPREVIEW
Enclosing interface:
TypeAnnotationPREVIEW

public static sealed interface TypeAnnotation.TypeArgumentTarget extends TypeAnnotation.TargetInfoPREVIEW
TypeArgumentTarget is a preview API of the Java platform.
Programs can only use TypeArgumentTarget when preview features are enabled.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
Indicates that an annotation appears either on the i'th type in a cast expression, or on the i'th type argument in the explicit type argument list for any of the following: a new expression, an explicit constructor invocation statement, a method invocation expression, or a method reference expression.
Since:
22