インタフェースjava.lang.classfile.Annotationの
使用
Annotationを使用するパッケージ
-
java.lang.classfileでのAnnotationの使用
Annotationを返すjava.lang.classfileのメソッド修飾子と型メソッド説明AnnotationValue.OfAnnotation.annotation()
注釈値を返します。TypeAnnotation.annotation()
TypeAnnotation.targetPath()
で示されるパーツに適用される注釈を返します。static Annotation
Annotation.of
(Utf8Entry annotationClass, AnnotationElement... elements) 注釈を返します。static Annotation
Annotation.of
(Utf8Entry annotationClass, List<AnnotationElement> elements) 注釈を返します。static Annotation
Annotation.of
(ClassDesc annotationClass, AnnotationElement... elements) 注釈を返します。static Annotation
Annotation.of
(ClassDesc annotationClass, List<AnnotationElement> elements) 注釈を返します。型Annotationのパラメータを持つjava.lang.classfileのメソッド修飾子と型メソッド説明static TypeAnnotation
TypeAnnotation.of
(TypeAnnotation.TargetInfo targetInfo, List<TypeAnnotation.TypePathComponent> targetPath, Annotation annotation) type_annotation
構造を戻します。static AnnotationElement
AnnotationElement.ofAnnotation
(String name, Annotation value) 注釈値要素の要素と値のペアを返します。static AnnotationValue.OfAnnotation
AnnotationValue.ofAnnotation
(Annotation value) 要素と値のペアの注釈値を返します。 -
java.lang.classfile.attributeでのAnnotationの使用
型Annotationの引数を持つ型を返すjava.lang.classfile.attributeのメソッド修飾子と型メソッド説明RuntimeInvisibleAnnotationsAttribute.annotations()
この構造に対する実行時非表示宣言注釈を返します。RuntimeVisibleAnnotationsAttribute.annotations()
この構造に対する実行時可視宣言注釈を返します。RuntimeInvisibleParameterAnnotationsAttribute.parameterAnnotations()
メソッド・パラメータの実行時非表示注釈のリストを返します。RuntimeVisibleParameterAnnotationsAttribute.parameterAnnotations()
メソッド・パラメータの実行時表示注釈のリストを返します。型Annotationのパラメータを持つjava.lang.classfile.attributeのメソッド修飾子と型メソッド説明RuntimeInvisibleAnnotationsAttribute.of
(Annotation... annotations) RuntimeInvisibleAnnotations
属性を返します。RuntimeVisibleAnnotationsAttribute.of
(Annotation... annotations) RuntimeVisibleAnnotations
属性を返します。型Annotationの型引数を持つjava.lang.classfile.attributeのメソッド・パラメータ修飾子と型メソッド説明RuntimeInvisibleAnnotationsAttribute.of
(List<Annotation> annotations) RuntimeInvisibleAnnotations
属性を返します。RuntimeInvisibleParameterAnnotationsAttribute.of
(List<List<Annotation>> parameterAnnotations) RuntimeInvisibleParameterAnnotations
属性を返します。RuntimeVisibleAnnotationsAttribute.of
(List<Annotation> annotations) RuntimeVisibleAnnotations
属性を返します。RuntimeVisibleParameterAnnotationsAttribute.of
(List<List<Annotation>> parameterAnnotations) RuntimeVisibleParameterAnnotations
属性を返します。