インタフェースjava.lang.classfile.TypeAnnotation.TypeParameterTargetの
使用
-
java.lang.classfilePREVIEWでのTypeAnnotation.TypeParameterTargetPREVIEWの使用
修飾子と型メソッド説明TypeAnnotation.TargetInfo.ofClassTypeParameter
(int typeParameterIndex) クラス型パラメータ宣言の注釈のターゲットを返します。TypeAnnotation.TargetInfo.ofMethodTypeParameter
(int typeParameterIndex) メソッド型パラメータ宣言の注釈のターゲットを返します。TypeAnnotation.TargetInfo.ofTypeParameter
(TypeAnnotation.TargetTypePREVIEW targetType, int typeParameterIndex) クラスまたはメソッド型のパラメータ宣言の注釈のターゲットを返します。