/** * @see org.mozilla.javascript.Scriptable#getPrototype */ public Scriptable getPrototype() { return obj.getPrototype(); } /**
private Object getFunctionName(Scriptable obj) { while(obj != null && !(obj instanceof NativeCallSite)) { obj = obj.getPrototype(); } if (obj == null) { return NOT_FOUND; } NativeCallSite cs = (NativeCallSite)obj; return (cs.element == null ? null : cs.element.functionName); }
private Object getFileName(Scriptable obj) { while(obj != null && !(obj instanceof NativeCallSite)) { obj = obj.getPrototype(); } if (obj == null) { return NOT_FOUND; } NativeCallSite cs = (NativeCallSite)obj; return (cs.element == null ? null : cs.element.fileName); }
Scriptable obj = thisObj; while(obj != null && !(obj instanceof HostObject)) { obj = obj.getPrototype(); } HostObject ho = (HostObject)ho;
private Object getFileName(Scriptable obj) { while(obj != null && !(obj instanceof NativeCallSite)) { obj = obj.getPrototype(); } if (obj == null) { return NOT_FOUND; } NativeCallSite cs = (NativeCallSite)obj; return (cs.element == null ? null : cs.element.fileName); }
/** * @see org.mozilla.javascript.Scriptable#getPrototype */ public Scriptable getPrototype() { return obj.getPrototype(); } /**
/** * @see org.mozilla.javascript.Scriptable#getPrototype */ public Scriptable getPrototype() { return obj.getPrototype(); } /**
public boolean hasInstance(Scriptable scriptable) { if (scriptable instanceof JSAdapter) { return true; } else { Scriptable proto = scriptable.getPrototype(); while (proto != null) { if (proto.equals(this)) return true; proto = proto.getPrototype(); } return false; } }
/** * Delegates to * * @return true iff rhs appears in lhs' proto chain */ public static boolean jsDelegatesTo(Scriptable lhs, Scriptable rhs) { Scriptable proto = lhs.getPrototype(); while (proto != null) { if (proto.equals(rhs)) return true; proto = proto.getPrototype(); } return false; }
public boolean hasInstance(Scriptable scriptable) { if (scriptable instanceof JSAdapter) { return true; } else { Scriptable proto = scriptable.getPrototype(); while (proto != null) { if (proto.equals(this)) return true; proto = proto.getPrototype(); } return false; } }
private static Scriptable getBase(Scriptable obj, int index) { do { if (obj.has(index, obj)) break; obj = obj.getPrototype(); } while(obj != null); return obj; }
private static Scriptable getBase(Scriptable obj, String name) { do { if (obj.has(name, obj)) break; obj = obj.getPrototype(); } while(obj != null); return obj; }
private static Scriptable getBase(Scriptable obj, int index) { do { if (obj.has(index, obj)) break; obj = obj.getPrototype(); } while(obj != null); return obj; }
private static Scriptable getBase(Scriptable obj, int index) { do { if (obj.has(index, obj)) break; obj = obj.getPrototype(); } while(obj != null); return obj; }
private static Scriptable getBase(Scriptable obj, String name) { do { if (obj.has(name, obj)) break; obj = obj.getPrototype(); } while(obj != null); return obj; }
private static Scriptable getBase(Scriptable obj, int index) { do { if (obj.has(index, obj)) break; obj = obj.getPrototype(); } while(obj != null); return obj; }
private static Scriptable getBase(Scriptable obj, String name) { do { if (obj.has(name, obj)) break; obj = obj.getPrototype(); } while(obj != null); return obj; }
private static Scriptable getBase(Scriptable obj, int index) { do { if (obj.has(index, obj)) break; obj = obj.getPrototype(); } while(obj != null); return obj; }
private static Scriptable getBase(Scriptable obj, String name) { do { if (obj.has(name, obj)) break; obj = obj.getPrototype(); } while(obj != null); return obj; }
public DataFrameAdapter(final Scriptable scope, final DataFrame<Object> df) { this.df = df; setParentScope(scope.getParentScope()); setPrototype(scope.getPrototype()); }