Java examples for Scripting:Script Engines
The List of Reserved Keys for Engine Scope Bindings
Key | Constant in ScriptEngine Interface | Meaning of the Value of the key |
---|---|---|
"javax.script.argv" | ScriptEngine.ARGV | Used to pass an array of Object to pass a set of positional argument. |
"javax.script.engine" | ScriptEngine.ENGINE | The name of the script engine. |
"javax.script.engine_version" | ScriptEngine.ENGINE_VERSION | The version of the script engine. |
"javax.script.filename" | ScriptEngine.FILENAME | Used to pass the name of the file or the resource that the source of the script. |
"javax.script.language" | ScriptEngine.LANGUAGE | The name of the language supported by the script engine. |
"javax.script.language_version" | ScriptEngine.LANGUAGE_VERSION | The version of the scripting language supported by the engine. |
"javax.script.name" | ScriptEngine.NAME | The short name of the scripting language. |