public class ModuleCodeRunner extends AbstractCodeRunner
Identifiable
SciJava module.ModuleInfo
Constructor and Description |
---|
ModuleCodeRunner() |
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, waitFor
getInfo, getPriority, setInfo, setPriority, toString
context, getContext, setContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getIdentifier, log
context, getContext, setContext
compareTo, getPriority, setPriority
getInfo, setInfo
getLocation
getVersion
public void run(Object code, Object... args) throws InvocationTargetException
CodeRunner
InvocationTargetException
public void run(Object code, Map<String,Object> inputMap) throws InvocationTargetException
CodeRunner
InvocationTargetException
public 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.