public class ScriptCodeRunner extends AbstractCodeRunner
| Constructor and Description |
|---|
ScriptCodeRunner() |
| Modifier and Type | Method and Description |
|---|---|
void |
run(Object code,
Map<String,Object> inputMap)
Executes the code identified by the given object, passing the arguments in
the specified map as inputs.
|
void |
run(Object code,
Object... args)
Executes the code identified by the given object, passing the
specified arguments as inputs.
|
boolean |
supports(Object code)
Gets whether this object is compatible with the given data object.
|
getType, waitForcompareTo, getInfo, getPriority, setInfo, setPriority, toStringcontext, getContext, setContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcontext, getContext, setContextgetPriority, setPrioritycompareTogetInfo, setInfopublic void run(Object code, Object... args) throws InvocationTargetException
CodeRunnerInvocationTargetExceptionpublic void run(Object code, Map<String,Object> inputMap) throws InvocationTargetException
CodeRunnerInvocationTargetExceptionpublic boolean supports(Object code)
Typed
By default, this method will return true always, since the type is
known to be compatible. But individual implementations may have other
requirements beyond class assignability.
Copyright © 2009–2016 SciJava. All rights reserved.