Modifier and Type | Method and Description |
---|---|
void |
eval(java.lang.String script)
Executes the specified script.
|
void |
eval(java.net.URL scriptFile)
Executes the script in the specified file.
|
void |
put(java.lang.String key,
java.lang.Object value)
Sets a key/value pair in the state of the RemoteScriptEngine that may either create a Java
Language Binding to be used in the execution of scripts or be used in some other way,
depending on whether the key is reserved.
|
getTypeIdentifier, initializeCallback, pingCallback, uninitializeCallback
void eval(java.lang.String script) throws java.rmi.RemoteException, javax.script.ScriptException
script
- The source for the script.java.rmi.RemoteException
javax.script.ScriptException
- Thrown if an error during the execution of the script occurred.void eval(java.net.URL scriptFile) throws java.rmi.RemoteException, javax.script.ScriptException, java.io.IOException
scriptFile
- The file containing the script. The path of the file has to be set for the computer where this script engine resides on.java.rmi.RemoteException
javax.script.ScriptException
- Thrown if an error during the execution of the script occurred.java.io.IOException
- Thrown if the given file could not be found or opened.void put(java.lang.String key, java.lang.Object value) throws java.rmi.RemoteException, java.lang.NullPointerException, java.lang.IllegalArgumentException
key
- The name of named value to add.value
- The value of named value to add.java.rmi.RemoteException
java.lang.NullPointerException
- if key is null.java.lang.IllegalArgumentException
- if key is empty.