Package org.scijava.module.run
Class ModuleCodeRunner
- java.lang.Object
-
- org.scijava.AbstractContextual
-
- org.scijava.plugin.AbstractRichPlugin
-
- org.scijava.plugin.AbstractTypedPlugin<D>
-
- org.scijava.plugin.AbstractHandlerPlugin<Object>
-
- org.scijava.run.AbstractCodeRunner
-
- org.scijava.module.run.ModuleCodeRunner
-
- All Implemented Interfaces:
Comparable<Prioritized>,Contextual,Identifiable,Locatable,Logged,HandlerPlugin<Object>,HasPluginInfo,RichPlugin,SciJavaPlugin,SingletonPlugin,TypedPlugin<Object>,Prioritized,CodeRunner,Typed<Object>,Versioned
public class ModuleCodeRunner extends AbstractCodeRunner
Runs the givenIdentifiableSciJava module.- Author:
- Curtis Rueden
- See Also:
ModuleInfo
-
-
Constructor Summary
Constructors Constructor Description ModuleCodeRunner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrun(Object code, Object... args)Executes the code identified by the given object, passing the specified arguments as inputs.voidrun(Object code, Map<String,Object> inputMap)Executes the code identified by the given object, passing the arguments in the specified map as inputs.booleansupports(Object code)Gets whether this object is compatible with the given data object.-
Methods inherited from class org.scijava.run.AbstractCodeRunner
waitFor
-
Methods inherited from class org.scijava.plugin.AbstractRichPlugin
getInfo, getPriority, setInfo, setPriority, toString
-
Methods inherited from class org.scijava.AbstractContextual
context, getContext
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.scijava.run.CodeRunner
getType
-
Methods inherited from interface org.scijava.Contextual
context, getContext, setContext
-
Methods inherited from interface org.scijava.plugin.HasPluginInfo
getInfo, setInfo
-
Methods inherited from interface org.scijava.Locatable
getLocation
-
Methods inherited from interface org.scijava.Prioritized
compareTo, getPriority, setPriority
-
Methods inherited from interface org.scijava.plugin.RichPlugin
getIdentifier, log
-
Methods inherited from interface org.scijava.Versioned
getVersion
-
-
-
-
Method Detail
-
run
public void run(Object code, Object... args) throws InvocationTargetException
Description copied from interface:CodeRunnerExecutes the code identified by the given object, passing the specified arguments as inputs.- Throws:
InvocationTargetException
-
run
public void run(Object code, Map<String,Object> inputMap) throws InvocationTargetException
Description copied from interface:CodeRunnerExecutes the code identified by the given object, passing the arguments in the specified map as inputs.- Throws:
InvocationTargetException
-
supports
public boolean supports(Object code)
Description copied from interface:TypedGets whether this object is compatible with the given data object.By default, this method will return
trueiff the data is assignable to the associated type given byTyped.getType(). But individual implementations may have other requirements beyond class assignability.
-
-