Class VariableFunctions.StoreVariableFunction
- java.lang.Object
-
- com.inductiveautomation.ignition.common.expressions.functions.BaseFunction
-
- com.inductiveautomation.ignition.common.expressions.functions.AbstractFunction
-
- com.inductiveautomation.ignition.common.expressions.legacy.VariableFunctions.StoreVariableFunction
-
- All Implemented Interfaces:
Function
- Enclosing class:
- VariableFunctions
public static class VariableFunctions.StoreVariableFunction extends AbstractFunction
storeVariable(name, value) stores the variable and returns the stored value.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringFUNCTION_NAME
-
Constructor Summary
Constructors Constructor Description StoreVariableFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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()java.lang.Class<?>getType()Returns the type that this function will return upon executionvoidinitArgs(Expression[] args)Calls validateNumArgs() to make sure the number of args is correctprotected booleanvalidateNumArgs(int num)-
Methods inherited from class com.inductiveautomation.ignition.common.expressions.functions.AbstractFunction
executeArg, log
-
Methods inherited from class com.inductiveautomation.ignition.common.expressions.functions.BaseFunction
connect, copy, disconnect, executeAll, shutdown, startup
-
-
-
-
Field Detail
-
FUNCTION_NAME
public static final java.lang.String FUNCTION_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
execute
public QualifiedValue execute(Expression[] args) throws ExpressionException
Description copied from interface:FunctionExecute this function, and return the function's qualified value.- Throws:
ExpressionException
-
getArgDocString
public 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.
-
getType
public java.lang.Class<?> getType()
Description copied from interface:FunctionReturns the type that this function will return upon execution
-
initArgs
public void initArgs(Expression[] args)
Description copied from class:AbstractFunctionCalls validateNumArgs() to make sure the number of args is correct- Specified by:
initArgsin interfaceFunction- Overrides:
initArgsin classAbstractFunction
-
validateNumArgs
protected boolean validateNumArgs(int num)
- Overrides:
validateNumArgsin classAbstractFunction
-
getFunctionDisplayName
protected java.lang.String getFunctionDisplayName()
- Specified by:
getFunctionDisplayNamein classAbstractFunction
-
-