|
|||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||||
このインタフェースの実装クラスはスレッドセーフである必要があります。
| メソッドの概要 | |
String |
evaluate(TemplateContext context,
String name,
Attribute[] attributes,
Element[] body)
|
Element |
expandMacroVariables(TemplateContext context,
VariableResolver macroVarResolver,
String name,
Attribute[] attributes,
Element[] body)
指定されたタグが持つマクロ変数定義を展開したElementを返します。 |
void |
gatherMacroVariables(TemplateContext context,
VariableResolver macroVarResolver,
String name,
Attribute[] attributes,
Element[] body)
|
Macro |
getMacro(TemplateEvaluator evaluator,
String name,
Attribute[] attributes,
Element[] body,
String macroName,
Element previousElement)
指定された名前を持つマクロを指定されたタグから取り出して返します。 |
String |
getProperty(String key)
|
String[] |
getSpecialAttributePatternStrings()
|
String[] |
getSpecialTagPatternStrings()
|
TemplateContext |
newContext()
|
void |
setProperties(Properties properties)
|
| メソッドの詳細 |
public String[] getSpecialTagPatternStrings()
public String[] getSpecialAttributePatternStrings()
public TemplateContext newContext()
public String evaluate(TemplateContext context,
String name,
Attribute[] attributes,
Element[] body)
public void gatherMacroVariables(TemplateContext context,
VariableResolver macroVarResolver,
String name,
Attribute[] attributes,
Element[] body)
public Macro getMacro(TemplateEvaluator evaluator,
String name,
Attribute[] attributes,
Element[] body,
String macroName,
Element previousElement)
指定された名前を持つマクロが存在しない場合はnullを返します。
マクロをサポートしていないTagEvaluator実装では 常にnullを返すように実装して下さい。
evaluator - このTagEvaluatorを保持する
TemplateEvaluatorオブジェクト。
再帰的にマクロを探す場合に使用します。name - タグの名前。attributes - タグが持つ属性。body - タグのボディ。macroName - マクロの名前。previousElement - 直前のエレメント。直前にエレメントが存在しない場合はnullを指定して下さい。
public Element expandMacroVariables(TemplateContext context,
VariableResolver macroVarResolver,
String name,
Attribute[] attributes,
Element[] body)
マクロ変数定義に対応する変数値はmarcoVarResolver
から取り出されます。
context - コンテキスト。macroVarResolver - マクロ変数の値を保持するVariableResolver。name - タグの名前。attributes - タグが持つ属性。body - タグのボディ。
public void setProperties(Properties properties)
public String getProperty(String key)
|
|||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||||