public class MainCodeRunner extends AbstractCodeRunner
main
method.Constructor and Description |
---|
MainCodeRunner() |
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
compareTo, getInfo, getPriority, setInfo, setPriority, toString
context, getContext, setContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
context, getContext, setContext
getPriority, setPriority
compareTo
getInfo, setInfo
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.