クラスjava.lang.annotation.ElementType
の使用
パッケージ | 説明 |
---|---|
java.lang.annotation |
Javaプログラミング言語の注釈機能のライブラリ・サポートを提供します。
|
-
java.lang.annotationでのElementTypeの使用
ElementTypeを返すjava.lang.annotationのメソッド 修飾子と型 メソッド 説明 static ElementType
ElementType. valueOf(String name)
指定された名前を持つ、この型の列挙型定数を返します。static ElementType[]
ElementType. values()
この列挙型の定数を含む配列を、宣言されている順序で返します。