インタフェースjava.lang.classfile.Annotationの
使用
Annotationを使用するパッケージ
-
java.lang.classfileでのAnnotationの使用
Annotationを返すjava.lang.classfileのメソッド修飾子と型メソッド説明AnnotationValue.OfAnnotation.annotation()注釈値を返します。TypeAnnotation.annotation()TypeAnnotation.targetPath()で示されるパーツに適用される注釈を返します。static AnnotationAnnotation.of(Utf8Entry annotationClass, AnnotationElement... elements) 注釈を返します。static AnnotationAnnotation.of(Utf8Entry annotationClass, List<AnnotationElement> elements) 注釈を返します。static AnnotationAnnotation.of(ClassDesc annotationClass, AnnotationElement... elements) 注釈を返します。static AnnotationAnnotation.of(ClassDesc annotationClass, List<AnnotationElement> elements) 注釈を返します。型Annotationのパラメータを持つjava.lang.classfileのメソッド修飾子と型メソッド説明static TypeAnnotationTypeAnnotation.of(TypeAnnotation.TargetInfo targetInfo, List<TypeAnnotation.TypePathComponent> targetPath, Annotation annotation) type_annotation構造を戻します。static AnnotationElementAnnotationElement.ofAnnotation(String name, Annotation value) 注釈値要素の要素と値のペアを返します。static AnnotationValue.OfAnnotationAnnotationValue.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属性を返します。