列挙型クラスjava.lang.classfile.TypeAnnotation.TargetTypeの
使用
TypeAnnotation.TargetTypePREVIEWを使用するパッケージ
-
java.lang.classfilePREVIEWでのTypeAnnotation.TargetTypePREVIEWの使用
修飾子と型メソッド説明TypeAnnotation.TargetInfo.targetType()ターゲットのタイプを返します。指定された名前を持つこのクラスのenum定数を返します。static TypeAnnotation.TargetTypePREVIEW[]TypeAnnotation.TargetType.values()この列挙クラスの定数を含む配列を宣言されている順序で 返します。TypeAnnotation.TargetTypePREVIEW型のパラメータを持つjava.lang.classfilePREVIEWのメソッド修飾子と型メソッド説明TypeAnnotation.TargetInfo.of(TypeAnnotation.TargetTypePREVIEW targetType) 注釈のターゲットを返します。TypeAnnotation.TargetInfo.ofOffset(TypeAnnotation.TargetTypePREVIEW targetType, LabelPREVIEW target) instanceof式または新しい式内の型、またはメソッド参照式内の::前の型の注釈のターゲットを返します。TypeAnnotation.TargetInfo.ofTypeArgument(TypeAnnotation.TargetTypePREVIEW targetType, LabelPREVIEW target, int typeArgumentIndex) キャスト式内のi番目の型、または明示的な型引数リスト内のi番目の型引数で、次のいずれかの注釈のターゲットを返します: 新しい式、明示的なコンストラクタ呼出し文、メソッド呼出し式またはメソッド参照式。TypeAnnotation.TargetInfo.ofTypeParameter(TypeAnnotation.TargetTypePREVIEW targetType, int typeParameterIndex) クラスまたはメソッド型のパラメータ宣言の注釈のターゲットを返します。TypeAnnotation.TargetInfo.ofTypeParameterBound(TypeAnnotation.TargetTypePREVIEW targetType, int typeParameterIndex, int boundIndex) 汎用クラス、インタフェース、メソッドまたはコンストラクタのj番目の型パラメータ宣言のi番目の境界にある注釈のターゲットを返します。TypeAnnotation.TargetInfo.ofVariable(TypeAnnotation.TargetTypePREVIEW targetType, List<TypeAnnotation.LocalVarTargetInfoPREVIEW> table) try-with-resources文でリソースとして宣言された変数を含む、ローカル変数宣言内の型に対する注釈のターゲットを返します。