Class FormattedExpressionParseContext
java.lang.Object
com.inductiveautomation.ignition.gateway.expressions.FormattedExpressionParseContext
- All Implemented Interfaces:
ExpressionParseContext
A simple delegating expression parse context that detects the presence of a format string defined
by a pipe "|", such as {Property|#.00}, and creates a wrapped expression that executes
the formatting. If the format string is not present, the path is passed unaltered to the delegate
context.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateBoundExpression(String path) Called to create expressions to represent bound elements, like:Returns the function factory to be used for looking up functions during parsing.
-
Constructor Details
-
FormattedExpressionParseContext
-
-
Method Details
-
createBoundExpression
Description copied from interface:ExpressionParseContextCalled to create expressions to represent bound elements, like:{ path.to.something }- Specified by:
createBoundExpressionin interfaceExpressionParseContext- Parameters:
path- the text content inside the braces.- Returns:
- the created
Expression - Throws:
RuntimeException- if the expression cannot be created (e.g., invalid path)
-
getFunctionFactory
Description copied from interface:ExpressionParseContextReturns the function factory to be used for looking up functions during parsing.- Specified by:
getFunctionFactoryin interfaceExpressionParseContext- Returns:
- the
FunctionFactory
-