|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
public interface SourceEmitter
ソースコードを出力する。
| メソッドの概要 | |
|---|---|
Tool |
borrow()
このツールを借りる。 |
void |
emit(CtCompilationUnit source,
Writer output)
指定のソースプログラムを指定の Writerに出力する。 |
void |
emit(CtDeclaredType<?> source,
Writer output)
指定の型宣言を指定のテンプレートに従って Writerに出力する。 |
void |
emit(String template,
CtCompilationUnit source,
Writer output)
TODO use-caseの検討 指定のソースプログラムを指定のテンプレートに従って Writerに出力する。 |
void |
emit(String template,
CtDeclaredType<?> source,
Writer output)
TODO use-caseの検討 指定の型宣言を指定のテンプレートに従って Writerに出力する。 |
| メソッドの詳細 |
|---|
void emit(CtCompilationUnit source,
Writer output)
throws IOException
Writerに出力する。
source - 出力するソースプログラムoutput - 出力先
IOException - 出力中に例外が発生した場合
void emit(CtDeclaredType<?> source,
Writer output)
throws IOException
Writerに出力する。
source - 出力する型宣言output - 出力先
IOException - 出力中に例外が発生した場合
void emit(String template,
CtCompilationUnit source,
Writer output)
throws IOException
Writerに出力する。
template - 出力テンプレートsource - 出力するソースプログラムoutput - 出力先
IOException - 出力中に例外が発生した場合
void emit(String template,
CtDeclaredType<?> source,
Writer output)
throws IOException
Writerに出力する。
template - 出力テンプレートsource - 出力する型宣言output - 出力先
IOException - 出力中に例外が発生した場合Tool borrow()
Tool の記述:
Tool 内の borrow
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||