public Object execIdCall()

in src/main/java/org/apache/sling/scripting/javascript/helper/SlingGlobal.java [108:128]


    public Object execIdCall(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) {
        if (f.hasTag(FTAG)) {
            int methodId = f.methodId();
            switch (methodId) {
                case Id_load: {
                    load(cx, thisObj, args);
                    return Context.getUndefinedValue();
                }

                case Id_print: {
                    print(cx, thisObj, args);
                    return Context.getUndefinedValue();
                }

                case Id_require: {
                    return require(cx, thisObj, args);
                }
            }
        }
        throw f.unknown();
    }