public class ScriptFunction extends AbstractPollingFunction
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME |
context, rate, started, task, TIMER, updateListener
Constructor and Description |
---|
ScriptFunction() |
Modifier and Type | Method and Description |
---|---|
Function |
copy()
Returns this.
|
QualifiedValue |
execute(Expression[] args)
Execute this function, and return the function's qualified value.
|
java.lang.String |
getArgDocString()
Returns a string to be used in the auto-generated function documentation.
|
protected java.lang.String |
getFunctionDisplayName() |
java.lang.Class<?> |
getType()
Returns the type of Object that this function will generate with execute
|
protected void |
initLocalsMap(org.python.core.PyStringMap map) |
protected boolean |
validateNumArgs(int num) |
actionPerformed, cancelTask, connect, disconnect, setPollRate, shutdown, startTask, startup
executeArg, initArgs, log
executeAll
public static final java.lang.String NAME
protected java.lang.String getFunctionDisplayName()
getFunctionDisplayName
in class AbstractFunction
public QualifiedValue execute(Expression[] args) throws ExpressionException
Function
ExpressionException
protected void initLocalsMap(org.python.core.PyStringMap map)
public Function copy()
BaseFunction
copy
in interface Function
copy
in class AbstractPollingFunction
protected boolean validateNumArgs(int num)
validateNumArgs
in class AbstractFunction
public java.lang.String getArgDocString()
Function
public java.lang.Class<?> getType()
Function