「JDT メモ」の編集履歴(バックアップ)一覧はこちら
「JDT メモ」(2007/01/30 (火) 22:53:04) の最新版変更点
追加された行は緑色になります。
削除された行は赤色になります。
*例
ASTParser parser = ASTParser.newParser(AST.JLS3);
String src = "class Test { }";
parser.setSource(src.toCharArray());
CompilationUnit unit = (CompilationUnit)parser.createAST(null);
System.out.println(unit);
実行結果:
class Test {
}
*情報元
-JDT API
**記事
-[[EclipseのASTParserを試す>http://www-06.ibm.com/jp/developerworks/opensource/050422/j_os-ast.html]]
*例
ASTParser parser = ASTParser.newParser(AST.JLS3);
String src = "class Test { }";
parser.setSource(src.toCharArray());
CompilationUnit unit = (CompilationUnit)parser.createAST(null);
System.out.println(unit);
実行結果:
class Test {
}
*情報元
-[[JDT API>http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse.jdt.doc.isv/reference/api/index.html]]
**記事
-[[EclipseのASTParserを試す>http://www-06.ibm.com/jp/developerworks/opensource/050422/j_os-ast.html]]