インタフェースjava.lang.classfile.Annotationの
使用
パッケージ
説明
クラス・ファイルの解析、生成および変換ライブラリを提供します。
java.lang.classfile
PREVIEWライブラリのクラス・ファイル属性を記述するインタフェースを提供します。-
java.lang.classfilePREVIEWでのAnnotationPREVIEWの使用
修飾子と型インタフェース説明interface
修飾子と型メソッド説明AnnotationValue.OfAnnotation.annotation()
注釈を返します。static AnnotationPREVIEW
Annotation.of
(Utf8EntryPREVIEW annotationClass, AnnotationElementPREVIEW... elements) 注釈を返します。static AnnotationPREVIEW
注釈を返します。static AnnotationPREVIEW
Annotation.of
(ClassDesc annotationClass, AnnotationElementPREVIEW... elements) 注釈を返します。static AnnotationPREVIEW
Annotation.of
(ClassDesc annotationClass, List<AnnotationElementPREVIEW> elements) 注釈を返します。修飾子と型メソッド説明static AnnotationElementPREVIEW
AnnotationElement.ofAnnotation
(String name, AnnotationPREVIEW value) annotation-valued注釈の注釈キーと値のペアを返します。AnnotationValue.ofAnnotation
(AnnotationPREVIEW value) annotation-valued要素の注釈要素を返します。 -
java.lang.classfile.attributePREVIEWでのAnnotationPREVIEWの使用
修飾子と型メソッド説明RuntimeInvisibleAnnotationsAttribute.annotations()
このクラス、フィールドまたはメソッドの非ランタイム表示の注釈を返します。RuntimeVisibleAnnotationsAttribute.annotations()
このクラス、フィールドまたはメソッドで実行時に表示される注釈を返します。RuntimeInvisibleParameterAnnotationsAttribute.parameterAnnotations()
各メソッド・パラメータに対応する注釈のリストを返します。RuntimeVisibleParameterAnnotationsAttribute.parameterAnnotations()
各メソッド・パラメータに対応する注釈のリストを返します。修飾子と型メソッド説明RuntimeInvisibleAnnotationsAttribute.of
(AnnotationPREVIEW... annotations) RuntimeInvisibleAnnotations
属性を返します。RuntimeVisibleAnnotationsAttribute.of
(AnnotationPREVIEW... annotations) RuntimeVisibleAnnotations
属性を返します。修飾子と型メソッド説明RuntimeInvisibleAnnotationsAttribute.of
(List<AnnotationPREVIEW> annotations) RuntimeInvisibleAnnotations
属性を返します。RuntimeInvisibleParameterAnnotationsAttribute.of
(List<List<AnnotationPREVIEW>> parameterAnnotations) RuntimeInvisibleParameterAnnotations
属性を返します。RuntimeVisibleAnnotationsAttribute.of
(List<AnnotationPREVIEW> annotations) RuntimeVisibleAnnotations
属性を返します。RuntimeVisibleParameterAnnotationsAttribute.of
(List<List<AnnotationPREVIEW>> parameterAnnotations) RuntimeVisibleParameterAnnotations
属性を返します。