インタフェース
javax.lang.model.element.AnnotationValueの使用
パッケージ | 説明 |
---|---|
com.sun.source.util |
抽象構文ツリー(Abstract Syntax Tree、AST)の操作のためのユーティリティを提供します。
|
javax.annotation.processing |
注釈プロセッサを宣言し、注釈プロセッサが注釈処理ツール環境とやり取りできるようにするための機能。
|
javax.lang.model.element |
Javaプログラミング言語の要素をモデル化するために使用されるインタフェースです。
|
javax.lang.model.util |
-
com.sun.source.utilでのAnnotationValueの使用
型AnnotationValueのパラメータを持つcom.sun.source.utilのメソッド 修飾子と型 メソッド 説明 abstract TreePath
Trees. getPath(Element e, AnnotationMirror a, AnnotationValue v)
指定されたElementのAnnotationMirrorのAnnotationValueのTreePathノードを返します。abstract Tree
Trees. getTree(Element e, AnnotationMirror a, AnnotationValue v)
指定されたElementのAnnotationMirrorのAnnotationValueのTreeノードを返します。 -
javax.annotation.processingでのAnnotationValueの使用
型AnnotationValueのパラメータを持つjavax.annotation.processingのメソッド 修飾子と型 メソッド 説明 void
Messager. printMessage(Diagnostic.Kind kind, CharSequence msg, Element e, AnnotationMirror a, AnnotationValue v)
注釈の付いた要素の注釈ミラーに含まれる注釈値の位置における、指定された種類のメッセージを出力します。 -
javax.lang.model.elementでのAnnotationValueの使用
AnnotationValueを返すjavax.lang.model.elementのメソッド 修飾子と型 メソッド 説明 AnnotationValue
ExecutableElement. getDefaultValue()
この実行可能ファイルが注釈型要素である場合は、デフォルト値を返します。AnnotationValue
UnknownAnnotationValueException. getUnknownAnnotationValue()
未知の注釈値を返します。型AnnotationValueの引数を持つ型を返すjavax.lang.model.elementのメソッド 修飾子と型 メソッド 説明 Map<? extends ExecutableElement,? extends AnnotationValue>
AnnotationMirror. getElementValues()
注釈の要素の値を返します。型AnnotationValueのパラメータを持つjavax.lang.model.elementのメソッド 修飾子と型 メソッド 説明 default R
AnnotationValueVisitor. visit(AnnotationValue av)
visit(av, null)
と同等の簡易メソッドです。R
AnnotationValueVisitor. visit(AnnotationValue av, P p)
注釈値をビジットします。R
AnnotationValueVisitor. visitUnknown(AnnotationValue av, P p)
未知の種類の注釈値をビジットします。型AnnotationValueの型引数を持つjavax.lang.model.elementのメソッド・パラメータ 修飾子と型 メソッド 説明 R
AnnotationValueVisitor. visitArray(List<? extends AnnotationValue> vals, P p)
注釈の配列値をビジットします。型AnnotationValueのパラメータを持つjavax.lang.model.elementのコンストラクタ コンストラクタ 説明 UnknownAnnotationValueException(AnnotationValue av, Object p)
新しいUnknownAnnotationValueException
を作成します。 -
javax.lang.model.utilでのAnnotationValueの使用
型AnnotationValueの引数を持つ型を返すjavax.lang.model.utilのメソッド 修飾子と型 メソッド 説明 Map<? extends ExecutableElement,? extends AnnotationValue>
Elements. getElementValuesWithDefaults(AnnotationMirror a)
デフォルトを含む注釈の要素の値を返します。型AnnotationValueのパラメータを持つjavax.lang.model.utilのメソッド 修飾子と型 メソッド 説明 R
AbstractAnnotationValueVisitor6. visit(AnnotationValue av)
注釈値のaccept
メソッドに自身を渡し、追加のパラメータにnull
を渡すかのようにして、その注釈値をビジットします。R
AbstractAnnotationValueVisitor6. visit(AnnotationValue av, P p)
任意の注釈値を、その値accept
に渡すことによってビジットします。R
AbstractAnnotationValueVisitor6. visitUnknown(AnnotationValue av, P p)
未知の種類の注釈値をビジットします。型AnnotationValueの型引数を持つjavax.lang.model.utilのメソッド・パラメータ 修飾子と型 メソッド 説明 R
SimpleAnnotationValueVisitor6. visitArray(List<? extends AnnotationValue> vals, P p)
注釈の配列値をビジットします。