Class FunctionExpression
java.lang.Object
com.inductiveautomation.ignition.common.expressions.AbstractExpression
com.inductiveautomation.ignition.common.expressions.FunctionExpression
- All Implemented Interfaces:
Expression
-
Field Summary
Fields inherited from class com.inductiveautomation.ignition.common.expressions.AbstractExpression
children, context, updateListener -
Constructor Summary
ConstructorsConstructorDescriptionFunctionExpression(ExpressionParseContext context, String funcName, List<Expression> argList) -
Method Summary
Modifier and TypeMethodDescriptionvoidconnect(CommonContext context, InteractionListener updateListener) Gives the expression a chance to connect itself to things, if necessary.voidTells the expression to disconnect from anything it was connected to.@NonNull QualifiedValueexecute()Compute and return the value of this expression.getFunc()Return a human-readable name for the operation that this expression performs.Class<?>getType()Return the type that this expression will return.voidvoidsetFuncName(String string) voidshutdown()Tells the expression to shutdown any polling operations.voidstartup()Tells the expression to startup any polling operations.Methods inherited from class com.inductiveautomation.ignition.common.expressions.AbstractExpression
getChildren, setChildren
-
Constructor Details
-
FunctionExpression
public FunctionExpression(ExpressionParseContext context, String funcName, List<Expression> argList) -
FunctionExpression
public FunctionExpression()
-
-
Method Details
-
connect
Description copied from interface:ExpressionGives the expression a chance to connect itself to things, if necessary. Most expressions do not have any connections. An expression should notify the updateListener if they change.- Specified by:
connectin interfaceExpression- Overrides:
connectin classAbstractExpression- Parameters:
context- theCommonContextused to look up external resourcesupdateListener- theInteractionListenerto notify when the expression value changes
-
disconnect
public void disconnect()Description copied from interface:ExpressionTells the expression to disconnect from anything it was connected to.- Specified by:
disconnectin interfaceExpression- Overrides:
disconnectin classAbstractExpression
-
shutdown
public void shutdown()Description copied from interface:ExpressionTells the expression to shutdown any polling operations.- Specified by:
shutdownin interfaceExpression- Overrides:
shutdownin classAbstractExpression
-
startup
public void startup()Description copied from interface:ExpressionTells the expression to startup any polling operations. Expressions that use this can remember the updateListener from connect() to feed update notification to.- Specified by:
startupin interfaceExpression- Overrides:
startupin classAbstractExpression
-
execute
Description copied from interface:ExpressionCompute and return the value of this expression.- Returns:
- the result of the expression evaluation as a
QualifiedValue - Throws:
ExpressionException- if an error occurs during execution
-
getType
Description copied from interface:ExpressionReturn the type that this expression will return.- Returns:
- the
Classof the value returned byExpression.execute()
-
getOpName
Description copied from interface:ExpressionReturn a human-readable name for the operation that this expression performs.- Returns:
- the operation name
-
getFunc
-
getFuncName
-
setFunc
-
setFuncName
-