Package com.killcoding.jsplus
Class NashornContext
java.lang.Object
com.killcoding.jsplus.JsPlusContext
com.killcoding.jsplus.NashornContext
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Bindingsprivate ScriptContextprivate ClassLoaderprivate Invocableprivate org.openjdk.nashorn.api.scripting.NashornScriptEngineFactoryprivate ScriptEngineFields inherited from class com.killcoding.jsplus.JsPlusContext
allowAllAccess, engineName, log, scriptCipherAesKey -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()evalScript(String script) org.openjdk.nashorn.api.scripting.NashornScriptEngineFactoryvoidvoidprivate voidvoidvoidsetAllowAllAccess(boolean allowAllAccess) Methods inherited from class com.killcoding.jsplus.JsPlusContext
get, isAllowAllAccess, isGraalJs, isNashornJs, put, remove, setScriptCipherAesKey
-
Field Details
-
nashornFactory
-
invocable
-
scriptEngine
-
context
-
bindings
-
customClassLoader
-
-
Constructor Details
-
NashornContext
-
-
Method Details
-
getBindings
- Specified by:
getBindingsin classJsPlusContext
-
getEngine
- Specified by:
getEnginein classJsPlusContext
-
getContext
- Specified by:
getContextin classJsPlusContext
-
remove
- Specified by:
removein classJsPlusContext
-
put
- Specified by:
putin classJsPlusContext
-
get
- Specified by:
getin classJsPlusContext
-
initScriptEngineManager
- Specified by:
initScriptEngineManagerin classJsPlusContext- Throws:
Exception
-
setAllowAllAccess
- Overrides:
setAllowAllAccessin classJsPlusContext
-
eval
- Specified by:
evalin classJsPlusContext- Throws:
Exception
-
eval
- Specified by:
evalin classJsPlusContext- Throws:
Exception
-
evalScript
- Specified by:
evalScriptin classJsPlusContext- Throws:
Exception
-
close
- Specified by:
closein classJsPlusContext
-
getEngineName
- Specified by:
getEngineNamein classJsPlusContext
-
getNashornFactory
-
getCustomClassLoader
-
recreateEngine
- Throws:
Exception
-