Example usage for Java jdk.nashorn.internal.runtime Context fields, constructors, methods, implement or subclass
The text is from its open source code.
ScriptFunction | compileScript(final Source source, final ScriptObject scope) Compile a top level script. |
Global | createGlobal() Create and initialize a new global scope object. |
Object | eval(final ScriptObject initialScope, final String string, final Object callThis, final Object location) Entry point for eval |
Object | eval(final ScriptObject initialScope, final String string, final Object callThis, final Object location, final boolean strict, final boolean evalCall) Entry point for eval |
Context | getContext() Get context of the current global |
ScriptEnvironment | getEnv() Get the script environment for this context |
PrintWriter | getErr() Get the error stream for this context |
ErrorManager | getErrorManager() Get the error manager for this context |
Global | getGlobal() Get the current global scope |
DebugLogger | getLogger(final Class extends Loggable> clazz) Get a logger, given a loggable class |
PrintWriter | getOut() Get the output stream for this context |
Object | load(final Object scope, final Object from) Implementation of load Nashorn extension. |
void | setGlobal(final ScriptObject global) Set the current global scope |
void | setGlobal(final Global global) Set the current global scope |