コード例 #1
0
 public static ScriptType Load(Script script, ScriptType ret)
 {
     ret.SetValue("bind", script.CreateFunction(new bind()));
     ret.SetValue("bindObject", script.CreateFunction(new bindObject()));
     ret.SetValue("call", script.CreateFunction(new call()));
     return(ret);
 }
コード例 #2
0
 public static ScriptType Load(Script script, ScriptType ret)
 {
     ret.SetValue("length", script.CreateFunction(new length()));
     ret.SetValue("setLength", script.CreateFunction(new setLength()));
     ret.SetValue("clear", script.CreateFunction(new clear()));
     ret.SetValue("append", script.CreateFunction(new append()));
     ret.SetValue("appendFormat", script.CreateFunction(new appendFormat()));
     ret.SetValue("insert", script.CreateFunction(new insert()));
     ret.SetValue("remove", script.CreateFunction(new remove()));
     ret.SetValue("replace", script.CreateFunction(new replace()));
     return(ret);
 }
コード例 #3
0
 public static ScriptType Load(Script script, ScriptType ret)
 {
     ret.SetValue("toString", script.CreateFunction(new toString()));
     ret.SetValue("instanceOf", script.CreateFunction(new instanceOf(script)));
     return(ret);
 }
コード例 #4
0
 public static ScriptType Load(Script script, ScriptType ret)
 {
     ret.SetValue("length", script.CreateFunction(new length()));
     ret.SetValue("count", script.CreateFunction(new length()));
     ret.SetValue("insert", script.CreateFunction(new insert()));
     ret.SetValue("add", script.CreateFunction(new add()));
     ret.SetValue("push", script.CreateFunction(new add()));
     ret.SetValue("addUnique", script.CreateFunction(new addUnique()));
     ret.SetValue("remove", script.CreateFunction(new remove()));
     ret.SetValue("removeAt", script.CreateFunction(new removeAt()));
     ret.SetValue("clear", script.CreateFunction(new clear()));
     ret.SetValue("contains", script.CreateFunction(new contains()));
     ret.SetValue("sort", script.CreateFunction(new sort()));
     ret.SetValue("indexOf", script.CreateFunction(new indexOf()));
     ret.SetValue("lastIndexOf", script.CreateFunction(new lastIndexOf()));
     ret.SetValue("find", script.CreateFunction(new find()));
     ret.SetValue("findIndex", script.CreateFunction(new findIndex()));
     ret.SetValue("findLast", script.CreateFunction(new findLast()));
     ret.SetValue("findLastIndex", script.CreateFunction(new findLastIndex()));
     ret.SetValue("findAll", script.CreateFunction(new findAll()));
     ret.SetValue("findAllIndex", script.CreateFunction(new findAllIndex()));
     ret.SetValue("findAllLast", script.CreateFunction(new findAllLast()));
     ret.SetValue("findAllLastIndex", script.CreateFunction(new findAllLastIndex()));
     ret.SetValue("forEach", script.CreateFunction(new forEach()));
     ret.SetValue("forEachLast", script.CreateFunction(new forEachLast()));
     ret.SetValue("map", script.CreateFunction(new map()));
     ret.SetValue("reverse", script.CreateFunction(new reverse()));
     ret.SetValue("first", script.CreateFunction(new first()));
     ret.SetValue("last", script.CreateFunction(new last()));
     ret.SetValue("popFirst", script.CreateFunction(new popFirst()));
     ret.SetValue("safePopFirst", script.CreateFunction(new safePopFirst()));
     ret.SetValue("popLast", script.CreateFunction(new popLast()));
     ret.SetValue("safePopLast", script.CreateFunction(new safePopLast()));
     ret.SetValue("join", script.CreateFunction(new join()));
     ret.SetValue("toArray", script.CreateFunction(new toArray()));
     ret.SetValue("+", script.CreateFunction(new plus()));
     ret.SetValue("-", script.CreateFunction(new minus()));
     return(ret);
 }
コード例 #5
0
 public static ScriptType Load(Script script, ScriptType ret)
 {
     ret.SetValue("length", script.CreateFunction(new length()));
     ret.SetValue("count", script.CreateFunction(new length()));
     ret.SetValue("clear", script.CreateFunction(new clear()));
     ret.SetValue("remove", script.CreateFunction(new remove()));
     ret.SetValue("containsKey", script.CreateFunction(new containsKey()));
     ret.SetValue("containsValue", script.CreateFunction(new containsValue()));
     ret.SetValue("keys", script.CreateFunction(new keys()));
     ret.SetValue("values", script.CreateFunction(new values()));
     ret.SetValue("forEach", script.CreateFunction(new forEach()));
     ret.SetValue("forEachValue", script.CreateFunction(new forEachValue()));
     ret.SetValue("find", script.CreateFunction(new find()));
     ret.SetValue("findValue", script.CreateFunction(new findValue()));
     ret.SetValue("+", script.CreateFunction(new plus()));
     ret.SetValue("-", script.CreateFunction(new minus()));
     return(ret);
 }
コード例 #6
0
        public static ScriptType Load(Script script, ScriptType ret)
        {
            ret.SetValue("format", script.CreateFunction(new format()));
            ret.SetValue("csFormat", script.CreateFunction(new csFormat()));
            ret.SetValue("isNullOrEmpty", script.CreateFunction(new isNullOrEmpty()));
            ret.SetValue("join", script.CreateFunction(new join()));

            ret.SetValue("length", script.CreateFunction(new length()));
            ret.SetValue("count", script.CreateFunction(new length()));
            ret.SetValue("at", script.CreateFunction(new at()));
            ret.SetValue("insert", script.CreateFunction(new insert()));
            ret.SetValue("remove", script.CreateFunction(new remove()));
            ret.SetValue("toLower", script.CreateFunction(new toLower()));
            ret.SetValue("toUpper", script.CreateFunction(new toUpper()));
            ret.SetValue("trim", script.CreateFunction(new trim()));
            ret.SetValue("trimStart", script.CreateFunction(new trimStart()));
            ret.SetValue("trimEnd", script.CreateFunction(new trimEnd()));
            ret.SetValue("replace", script.CreateFunction(new replace()));
            ret.SetValue("indexOf", script.CreateFunction(new indexOf()));
            ret.SetValue("lastIndexOf", script.CreateFunction(new lastIndexOf()));
            ret.SetValue("startsWith", script.CreateFunction(new startsWith()));
            ret.SetValue("endsWith", script.CreateFunction(new endsWith()));
            ret.SetValue("contains", script.CreateFunction(new contains()));
            ret.SetValue("sub", script.CreateFunction(new sub()));
            ret.SetValue("split", script.CreateFunction(new split(script)));
            return(ret);
        }