JavaScript is disabled on your browser.
 
JavaScript is disabled on your browser.
 
 
  
 
 
 
 
Packages that use ScriptContext    
Package 
Description 
 
javax.script 
The scripting API consists of interfaces and classes that define
Java™ Scripting Engines and provides
a framework for their use in Java applications.
 
 
jdk.nashorn.api.scripting 
This package provides the javax.script integration, which is the preferred way to use Nashorn.
 
 
 
 
 
Methods in javax.script  with parameters of type ScriptContext    
Modifier and Type 
Method 
Description 
 
abstract Object CompiledScript. eval ScriptContext  context)
Executes the program stored in this CompiledScript object.
 
 
Object ScriptEngine. eval Reader  reader,
    ScriptContext  context)
Same as eval(String, ScriptContext) where the source of the script
 is read from a Reader.
 
 
Object ScriptEngine. eval String  script,
    ScriptContext  context)
Causes the immediate execution of the script whose source is the String
 passed as the first argument.
 
 
voidAbstractScriptEngine. setContext ScriptContext  ctxt)
Sets the value of the protected context field to the specified
 ScriptContext.
 
 
voidScriptEngine. setContext ScriptContext  context)
Sets the default ScriptContext of the ScriptEngine whose Bindings, Reader
 and Writers are used for script executions when no ScriptContext is specified.
 
 
 
 
 
 
 
 
 
 
JavaScript is disabled on your browser.
 
 
  
 
Report a bug or suggest an enhancement Java SE Documentation , which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples.Copyright  © 1993, 2017, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA.license terms  and the documentation redistribution policy . 
 
Scripting on this page tracks web page traffic, but does not change the content in any way.