public abstract class FunctionMapper extends ObjectSE
FunctionMapper
は、${prefix:name()}
スタイルの関数を、その関数を実行できる静的メソッドにマップします。
コンストラクターと説明 |
---|
FunctionMapper() |
修飾子と型 | メソッドと説明 |
---|---|
void | mapFunction(StringSE prefix, StringSE localName, MethodSE meth) 関数として使用できる静的メソッドを追加します。 |
abstract MethodSE | resolveFunction(StringSE prefix, StringSE localName) 指定されたプレフィックスとローカル名を java.lang.Method に解決します。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public abstract MethodSE resolveFunction(StringSE prefix, StringSE localName)
java.lang.Method
に解決します。 指定されたプレフィックスとローカル名に一致する関数が見つからなかった場合、null
を返します。
prefix
- 関数の接頭辞、または接頭辞がない場合は ""。例: ${fn:method()}
の "fn"
、または ${method()}
の ""
。localName
- 関数の短い名前。例: ${fn:method()}
の "method"
。null
。public void mapFunction(StringSE prefix, StringSE localName, MethodSE meth)
prefix
- 関数の接頭辞、または接頭辞がない場合は ""。例: ${fn:method()}
の "fn"
、または ${method()}
の ""
。localName
- 関数の短い名前。例: ${fn:method()}
の "method"
。meth
- 関数が参照されるときに呼び出される静的メソッド。null 値を指定すると、関数がマップから削除されます。Copyright © 2018,2020 Eclipse Foundation.
Use is subject to license terms.