インタフェースRuntimeInvisibleTypeAnnotationsAttribute
- すべてのスーパー・インタフェース:
Attribute<RuntimeInvisibleTypeAnnotationsAttribute>,ClassElement,ClassFileElement,CodeElement,FieldElement,MethodElement
public sealed interface RuntimeInvisibleTypeAnnotationsAttribute extends Attribute<RuntimeInvisibleTypeAnnotationsAttribute>, ClassElement, MethodElement, FieldElement, CodeElement
RuntimeInvisibleTypeAnnotations属性(JVMS 4.7.21)をモデル化します。この属性には、classファイル・コンシューマには表示されるが、「コア反射」には表示されない、この構造内の型の注釈付き使用用の注釈が格納されます。 CodeModelのトラバーサルでの配信は、ClassFile.DebugElementsOptionで切り替えることができます。
この属性は、クラス、フィールド、メソッド、Code属性およびレコード・コンポーネントに表示され、1つの構造で「複数のインスタンス」は許可されません。 classファイル形式の「任意のインデックス」へのデータ依存性があるため、ユーザーは、classファイルが変換された後もこの属性が正しいことを確認するために十分に注意する必要があります。
属性は、Java SE Platformバージョン8のメジャー・バージョン52で導入されました。
- Java Virtual Machine仕様を参照してください:
-
4.7.21
RuntimeInvisibleTypeAnnotations属性 - 導入されたバージョン:
- 24
- 関連項目:
-
メソッドのサマリー
修飾子と型メソッド説明この構造体内の型の使用に関する実行時非表示注釈を返します。of(TypeAnnotation... annotations) RuntimeInvisibleTypeAnnotations属性を返します。of(List<TypeAnnotation> annotations) RuntimeInvisibleTypeAnnotations属性を返します。インタフェースjava.lang.classfile.Attributeで宣言されたメソッド
attributeMapper, attributeName
-
メソッドの詳細
-
annotations
-
of
static RuntimeInvisibleTypeAnnotationsAttribute of(List<TypeAnnotation> annotations) RuntimeInvisibleTypeAnnotations属性を返します。- パラメータ:
annotations- 注釈- 戻り値:
RuntimeInvisibleTypeAnnotations属性
-
of
static RuntimeInvisibleTypeAnnotationsAttribute of(TypeAnnotation... annotations) RuntimeInvisibleTypeAnnotations属性を返します。- パラメータ:
annotations- 注釈- 戻り値:
RuntimeInvisibleTypeAnnotations属性
-