Java jdk.nashorn.internal.runtime Context fields, constructors, methods, implement or subclass

Example usage for Java jdk.nashorn.internal.runtime Context fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for jdk.nashorn.internal.runtime Context.

The text is from its open source code.

Constructor

Method

ScriptFunctioncompileScript(final Source source, final ScriptObject scope)
Compile a top level script.
GlobalcreateGlobal()
Create and initialize a new global scope object.
Objecteval(final ScriptObject initialScope, final String string, final Object callThis, final Object location)
Entry point for eval
Objecteval(final ScriptObject initialScope, final String string, final Object callThis, final Object location, final boolean strict, final boolean evalCall)
Entry point for eval
ContextgetContext()
Get context of the current global
ScriptEnvironmentgetEnv()
Get the script environment for this context
PrintWritergetErr()
Get the error stream for this context
ErrorManagergetErrorManager()
Get the error manager for this context
GlobalgetGlobal()
Get the current global scope
DebugLoggergetLogger(final Class clazz)
Get a logger, given a loggable class
PrintWritergetOut()
Get the output stream for this context
Objectload(final Object scope, final Object from)
Implementation of load Nashorn extension.
voidsetGlobal(final ScriptObject global)
Set the current global scope
voidsetGlobal(final Global global)
Set the current global scope