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