タグ

関連タグで絞り込む (1)

タグの絞り込みを解除

アノテーションに関するyamadarのブックマーク (1)

  • Javaアノテーションメモ(Hishidama's Java annotation Memo)

    それぞれの指定の意味する場所は、以下のようになっている。 @LocationExampleAnnotation //TYPE:クラス定義やインターフェース定義をする場所 public class アノテーションを付けるサンプル { @LocationExampleAnnotation //FIELD:フィールド(メンバー変数)定義 protected int value; @LocationExampleAnnotation //CONSTRUCTOR:コンストラクター定義 public アノテーションを付けるサンプル() { } @LocationExampleAnnotation //METHOD:メソッド定義 public void メソッド() { } public int 引数ありメソッド( @LocationExampleAnnotation //PARAMETER:パラメータ

    yamadar
    yamadar 2010/06/29
    アノテーションは印を付ける為に使うので、データというものは持たない(実際は持てるけど)。なので、インターフェースのように定義する。
  • 1