/** * @see org.mozilla.javascript.Scriptable#getParentScope */ public Scriptable getParentScope() { return obj.getParentScope(); } /**
/** * @see org.mozilla.javascript.Scriptable#getParentScope */ public Scriptable getParentScope() { return obj.getParentScope(); } /**
/** * @see org.mozilla.javascript.Scriptable#getParentScope */ public Scriptable getParentScope() { return obj.getParentScope(); } /**
/** * @see org.mozilla.javascript.Scriptable#getParentScope */ public Scriptable getParentScope() { return obj.getParentScope(); } /**
/** * @see org.mozilla.javascript.Scriptable#getParentScope */ public Scriptable getParentScope() { return obj.getParentScope(); } /**
/** * @see org.mozilla.javascript.Scriptable#getParentScope */ public Scriptable getParentScope() { return obj.getParentScope(); } /**
public void removeAttribute(String name) { for (Scriptable scope = this; scope instanceof PageAttributeScope; scope = scope.getParentScope()) { scope.delete(name); } }
protected Scriptable findScope(String name) { for (Scriptable scope = this; scope instanceof PageAttributeScope; scope = scope.getParentScope()) { if (scope.has(name, this)) { return scope; } } return null; }
public DataFrameAdapter(final Scriptable scope, final DataFrame<Object> df) { this.df = df; setParentScope(scope.getParentScope()); setPrototype(scope.getPrototype()); }
public static Scriptable requireObjectCoercible(Scriptable val, IdFunctionObject idFuncObj) { Scriptable val1 = val.getParentScope() != null ? val : null; if (val1 == null || val1 == Undefined.instance) throw ScriptRuntime.typeError2("msg.called.null.or.undefined", idFuncObj.getTag(), idFuncObj.getFunctionName()); return val1; }
private Object js_eval(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) { if (thisObj.getParentScope() == null) { // We allow indirect calls to eval as long as the script will execute in // the global scope. return ScriptRuntime.evalSpecial(cx, scope, thisObj, args, "eval code", 1); } String m = ScriptRuntime.getMessage1("msg.cant.call.indirect", "eval"); throw NativeGlobal.constructError(cx, "EvalError", m, scope); }
public DataFrameAdapter(final Scriptable scope, final DataFrame<Object> df) { this.df = df; setParentScope(scope.getParentScope()); setPrototype(scope.getPrototype()); }
@Override public Object get(Context cx) { switch (type) { case SPECIAL_NONE: return ScriptRuntime.getObjectProp(target, name, cx); case SPECIAL_PROTO: return target.getPrototype(); case SPECIAL_PARENT: return target.getParentScope(); default: throw Kit.codeBug(); } }
public Object get(Context cx) { switch (type) { case SPECIAL_NONE: return ScriptRuntime.getObjectProp(target, name, cx); case SPECIAL_PROTO: return target.getPrototype(); case SPECIAL_PARENT: return target.getParentScope(); default: throw Kit.codeBug(); } }
@Override public Object get(Context cx) { switch (type) { case SPECIAL_NONE: return ScriptRuntime.getObjectProp(target, name, cx); case SPECIAL_PROTO: return target.getPrototype(); case SPECIAL_PARENT: return target.getParentScope(); default: throw Kit.codeBug(); } }
@Override public Object get(Context cx) { switch (type) { case SPECIAL_NONE: return ScriptRuntime.getObjectProp(target, name, cx); case SPECIAL_PROTO: return target.getPrototype(); case SPECIAL_PARENT: return target.getParentScope(); default: throw Kit.codeBug(); } }
/** * Looks up a name in the scope chain and returns its value. */ public static Object name(Context cx, Scriptable scope, String name) { Scriptable parent = scope.getParentScope(); if (parent == null) { Object result = topScopeName(cx, scope, name); if (result == Scriptable.NOT_FOUND) { throw notFoundError(scope, name); } return result; } return nameOrFunction(cx, scope, parent, name, false); }
@Override public Object get(Context cx) { switch (type) { case SPECIAL_NONE: return ScriptRuntime.getObjectProp(target, name, cx); case SPECIAL_PROTO: return target.getPrototype(); case SPECIAL_PARENT: return target.getParentScope(); default: throw Kit.codeBug(); } }
@Override public Object get(Context cx) { switch (type) { case SPECIAL_NONE: return ScriptRuntime.getObjectProp(target, name, cx); case SPECIAL_PROTO: return target.getPrototype(); case SPECIAL_PARENT: return target.getParentScope(); default: throw Kit.codeBug(); } }
/** * Looks up a name in the scope chain and returns its value. */ public static Object name(Context cx, Scriptable scope, String name) { Scriptable parent = scope.getParentScope(); if (parent == null) { Object result = topScopeName(cx, scope, name); if (result == Scriptable.NOT_FOUND) { throw notFoundError(scope, name); } return result; } return nameOrFunction(cx, scope, parent, name, false); }