Class ScriptFunction
- java.lang.Object
- 
- com.inductiveautomation.ignition.common.expressions.functions.BaseFunction
- 
- com.inductiveautomation.ignition.common.expressions.functions.AbstractFunction
- 
- com.inductiveautomation.ignition.common.expressions.functions.AbstractPollingFunction
- 
- com.inductiveautomation.ignition.common.expressions.functions.ScriptFunction
 
 
 
 
- 
- All Implemented Interfaces:
- Function,- java.awt.event.ActionListener,- java.util.EventListener
 - Direct Known Subclasses:
- ComponentRunScriptExpression,- PerspectiveRunScriptFunction
 
 public class ScriptFunction extends AbstractPollingFunction 
- 
- 
Field SummaryFields Modifier and Type Field Description static java.lang.StringNAME- 
Fields inherited from class com.inductiveautomation.ignition.common.expressions.functions.AbstractPollingFunctioncontext, rate, started, task, TIMER, updateListener
 
- 
 - 
Constructor SummaryConstructors Constructor Description ScriptFunction()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Functioncopy()Returns this.QualifiedValueexecute(Expression[] args)Execute this function, and return the function's qualified value.java.lang.StringgetArgDocString()Returns a string to be used in the auto-generated function documentation.protected java.lang.StringgetFunctionDisplayName()protected voidinitLocalsMap(org.python.core.PyStringMap map)protected booleanvalidateNumArgs(int num)- 
Methods inherited from class com.inductiveautomation.ignition.common.expressions.functions.AbstractPollingFunctionactionPerformed, cancelTask, connect, disconnect, setPollRate, shutdown, startTask, startup
 - 
Methods inherited from class com.inductiveautomation.ignition.common.expressions.functions.AbstractFunctionexecuteArg, initArgs, log
 - 
Methods inherited from class com.inductiveautomation.ignition.common.expressions.functions.BaseFunctionexecuteAll
 
- 
 
- 
- 
- 
Field Detail- 
NAMEpublic static final java.lang.String NAME - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getFunctionDisplayNameprotected java.lang.String getFunctionDisplayName() - Specified by:
- getFunctionDisplayNamein class- AbstractFunction
 
 - 
executepublic QualifiedValue execute(Expression[] args) throws ExpressionException Description copied from interface:FunctionExecute this function, and return the function's qualified value.- Throws:
- ExpressionException
 
 - 
initLocalsMapprotected void initLocalsMap(org.python.core.PyStringMap map) 
 - 
copypublic Function copy() Description copied from class:BaseFunctionReturns this. Override to create a clone if you need a unique function object per Expression.- Specified by:
- copyin interface- Function
- Specified by:
- copyin class- AbstractPollingFunction
 
 - 
validateNumArgsprotected boolean validateNumArgs(int num) - Overrides:
- validateNumArgsin class- AbstractFunction
 
 - 
getArgDocStringpublic java.lang.String getArgDocString() Description copied from interface:FunctionReturns a string to be used in the auto-generated function documentation. The string should represent the arguments for the function, such as "string, count" for the "repeat" function.
 
- 
 
-