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.
|
waitFor
getInfo, getPriority, setInfo, setPriority, toString
context, getContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getType
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
iff the data is assignable
to the associated type given by Typed.getType()
. But individual
implementations may have other requirements beyond class assignability.
Copyright © 2015–2022 SciJava. All rights reserved.