* @return Functionインスタンス
*/
public static ScriptFunction create(String language, String function, String script) {
int idx = function.indexOf('(');
if (idx < 0) {
throw new IllegalFormatException("function format: foo() or foo(hoge), but :" + function);
}
String name = Functions.getName(function);
String[] params = Functions.getParams(function);
if (params.length == 0) {
return new ScriptFunction(language, script, name);