Class LocaleAwareMessageParseContext
java.lang.Object
com.inductiveautomation.ignition.gateway.expressions.LocaleAwareMessageParseContext
- All Implemented Interfaces:
ExpressionParseContext
This parse context results in expressions that only evaluate to strings, and do so in a way that respects the
provided locale, as much as possible. It is meant for use with the
StringParser, which builds messages that
reference other things.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classThis wraps up the normal expression in order to toString the result in a locale appropriate way. -
Constructor Summary
ConstructorsConstructorDescriptionLocaleAwareMessageParseContext(ExpressionParseContext delegate, Locale locale) -
Method Summary
Modifier and TypeMethodDescriptioncreateBoundExpression(String path) Called to create expressions to represent bound elements, like:
-
Constructor Details
-
LocaleAwareMessageParseContext
-
-
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.- Throws:
RuntimeException- because the CUP parser doesn't have a throws on the function that calls this inside the parser
-
getFunctionFactory
- Specified by:
getFunctionFactoryin interfaceExpressionParseContext
-