S - the script classpublic class ScriptProxy<S>
extends java.lang.Object
| Constructor and Description |
|---|
ScriptProxy(ScriptWrapper<S> wrapper)
Constructor.
|
ScriptProxy(ScriptWrapper<S> wrapper,
S script)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
abortScript()
Abort the script.
|
void |
addListener(ScriptProxyListener listener)
Add a ScriptProxyListener.
|
short |
getExecutionMode()
Return the execution mode.
|
java.util.List<ScriptProxyListener> |
getListeners()
Return the ScriptProxyListeners.
|
static java.lang.Object |
getReturnObject(java.lang.reflect.Method m)
Return the default return object for a method.
|
S |
getScript()
The script.
|
void |
processException(java.lang.Throwable e)
Processed when a Throwable is thrown by a script.
|
void |
removeListener(ScriptProxyListener listener)
Remove a ScriptProxyListener.
|
void |
setExecutionMode(short mode)
Set the execution mode.
|
public ScriptProxy(ScriptWrapper<S> wrapper)
wrapper - the ScriptWrapperpublic ScriptProxy(ScriptWrapper<S> wrapper, S script)
wrapper - the ScriptWrapperscript - the scriptpublic void setExecutionMode(short mode)
mode - the execution modepublic short getExecutionMode()
public void addListener(ScriptProxyListener listener)
listener - the ScriptProxyListenerpublic java.util.List<ScriptProxyListener> getListeners()
public void removeListener(ScriptProxyListener listener)
listener - the ScriptProxyListenerpublic void abortScript()
public S getScript()
public static java.lang.Object getReturnObject(java.lang.reflect.Method m)
m - the methodpublic void processException(java.lang.Throwable e)
throws ScriptRuntimeException
e - the ThrowableScriptRuntimeExceptionCopyright © 2019-2025 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence