Package com.killcoding.jsplus
Class JsContext
java.lang.Object
com.killcoding.jsplus.JsPlusContext
com.killcoding.jsplus.JsContext
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Bindingsprivate ScriptContextprivate Invocableprivate ScriptEngineprivate ScriptEngineManagerFields inherited from class com.killcoding.jsplus.JsPlusContext
allowAllAccess, engineName, log, scriptCipherAesKey -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected voidevalScript(String script) voidvoidvoidvoidsetAllowAllAccess(boolean allowAllAccess) Methods inherited from class com.killcoding.jsplus.JsPlusContext
get, isAllowAllAccess, isGraalJs, isNashornJs, put, remove, setScriptCipherAesKey
-
Field Details
-
scriptEngineManager
-
invocable
-
scriptEngine
-
context
-
bindings
-
-
Constructor Details
-
JsContext
-
-
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
-
disableAllowAllAccess
-