public class SlingGlobal extends Object implements Serializable, org.mozilla.javascript.IdFunctionCall
SlingGlobal
class provides two interesting new global
functions which are not part of the ECMAScript standard but which are
available in the Rhino Shell and which may be of use by JavaScripts:
print(args, ...)
args
in a single message to the scripts
logger available as the global log variable.load(args, ...)
EspReader
. Failure to read
one of the files throws an error.Constructor and Description |
---|
SlingGlobal() |
Modifier and Type | Method and Description |
---|---|
Object |
execIdCall(org.mozilla.javascript.IdFunctionObject f,
org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable scope,
org.mozilla.javascript.Scriptable thisObj,
Object[] args) |
static void |
init(org.mozilla.javascript.Scriptable scope,
boolean sealed) |
Object |
require(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args) |
public static void init(org.mozilla.javascript.Scriptable scope, boolean sealed)
public Object execIdCall(org.mozilla.javascript.IdFunctionObject f, org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable scope, org.mozilla.javascript.Scriptable thisObj, Object[] args)
execIdCall
in interface org.mozilla.javascript.IdFunctionCall
Copyright © 2017 The Apache Software Foundation. All rights reserved.