public class SlingGlobal
extends java.lang.Object
implements java.io.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 |
---|---|
java.lang.Object |
execIdCall(org.mozilla.javascript.IdFunctionObject f,
org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable scope,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] args) |
static void |
init(org.mozilla.javascript.Scriptable scope,
boolean sealed) |
java.lang.Object |
require(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] args) |
public static void init(org.mozilla.javascript.Scriptable scope, boolean sealed)
public java.lang.Object execIdCall(org.mozilla.javascript.IdFunctionObject f, org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable scope, org.mozilla.javascript.Scriptable thisObj, java.lang.Object[] args)
execIdCall
in interface org.mozilla.javascript.IdFunctionCall
public java.lang.Object require(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable thisObj, java.lang.Object[] args)
Copyright © 2018 The Apache Software Foundation. All rights reserved.