Class FormattedExpressionParseContext
- java.lang.Object
- 
- com.inductiveautomation.ignition.gateway.expressions.FormattedExpressionParseContext
 
- 
- All Implemented Interfaces:
- ExpressionParseContext
 
 public class FormattedExpressionParseContext extends java.lang.Object implements 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 SummaryConstructors Constructor Description FormattedExpressionParseContext(ExpressionParseContext delegate)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ExpressioncreateBoundExpression(java.lang.String path)Called to create expressions to represent bound elements, like:FunctionFactorygetFunctionFactory()
 
- 
- 
- 
Constructor Detail- 
FormattedExpressionParseContextpublic FormattedExpressionParseContext(ExpressionParseContext delegate) 
 
- 
 - 
Method Detail- 
createBoundExpressionpublic Expression createBoundExpression(java.lang.String path) throws java.lang.RuntimeException Description copied from interface:ExpressionParseContextCalled to create expressions to represent bound elements, like:{ path.to.something }- Specified by:
- createBoundExpressionin interface- ExpressionParseContext
- Parameters:
- path- the text content inside the braces.
- Throws:
- java.lang.RuntimeException- because the CUP parser doesn't have a throws on the function that calls this inside the parser
 
 - 
getFunctionFactorypublic FunctionFactory getFunctionFactory() - Specified by:
- getFunctionFactoryin interface- ExpressionParseContext
 
 
- 
 
-