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, startupexecuteArg, initArgs, logexecuteAllpublic static final java.lang.String NAME
protected java.lang.String getFunctionDisplayName()
getFunctionDisplayName in class AbstractFunctionpublic QualifiedValue execute(Expression[] args) throws ExpressionException
FunctionExpressionExceptionprotected void initLocalsMap(org.python.core.PyStringMap map)
public Function copy()
BaseFunctioncopy in interface Functioncopy in class AbstractPollingFunctionprotected boolean validateNumArgs(int num)
validateNumArgs in class AbstractFunctionpublic java.lang.String getArgDocString()
Functionpublic java.lang.Class<?> getType()
Function