Class FormattedExpression
java.lang.Object
com.inductiveautomation.ignition.common.expressions.FormattedExpression
- All Implemented Interfaces:
Expression
This expression type is actually a wrapper around another expression, which is expected to produce a number. It takes
a number formatting expression, and applies it to the result of the internal expression, in order to produce a
string.
-
Constructor Summary
Constructors -
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.execute()Compute and return the value of this expressionThe children (if any) that this expression is dependent on for its executionReturn a human-readable name for the operation that this expression performsClass<?>getType()Return the type that this expression will returnvoidshutdown()Tells the expression to shutdown any polling operations.voidstartup()Tells the expression to startup any polling operations.
-
Constructor Details
-
FormattedExpression
-
-
Method Details
-
execute
Description copied from interface:ExpressionCompute and return the value of this expression- Specified by:
executein interfaceExpression- Throws:
ExpressionException
-
getType
Description copied from interface:ExpressionReturn the type that this expression will return- Specified by:
getTypein interfaceExpression
-
getOpName
Description copied from interface:ExpressionReturn a human-readable name for the operation that this expression performs- Specified by:
getOpNamein interfaceExpression
-
getChildren
Description copied from interface:ExpressionThe children (if any) that this expression is dependent on for its execution- Specified by:
getChildrenin interfaceExpression
-
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
-
disconnect
public void disconnect()Description copied from interface:ExpressionTells the expression to disconnect from anything it was connected to.- Specified by:
disconnectin interfaceExpression
-
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
-
shutdown
public void shutdown()Description copied from interface:ExpressionTells the expression to shutdown any polling operations.- Specified by:
shutdownin interfaceExpression
-