#author("2021-12-14T02:32:39+00:00","","")
#author("2021-12-14T02:36:40+00:00","","")
// 下階層用テンプレート
#topicpath
----
//ここにコンテンツを記述します。

VisitorのうちFieldDeclaration を引数に取る
 public boolean visit(FieldDeclaration node);
はフィールドの情報を取ることができます。FieldDeclaration はあるソースコード内の一つのフィールドに対応しています。



 Type varType = element.getType();  <-element が FieldDeclaration
 System.out.println(varType.toString())
 VariableDeclarationFragment var =
   (VariableDeclarationFragment)element.fragments().get(0); // int i,jとか書くからかな?
 System.out.println(var.toString());

----
この記事は
#vote(おもしろかった[2],そうでもない[0])
#vote(おもしろかった[3],そうでもない[0])

#comment
#topicpath


SIZE(10){現在のアクセス:&counter;}

トップ   編集 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS