Class LocaleAwareMessageParseContext
- java.lang.Object
- 
- com.inductiveautomation.ignition.gateway.expressions.LocaleAwareMessageParseContext
 
- 
- All Implemented Interfaces:
- ExpressionParseContext
 
 public class LocaleAwareMessageParseContext extends java.lang.Object implements 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 theStringParser, which builds messages that reference other things.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description protected classLocaleAwareMessageParseContext.LocaleStringExpressionThis wraps up the normal expression in order to toString the result in a locale appropriate way.
 - 
Constructor SummaryConstructors Constructor Description LocaleAwareMessageParseContext(ExpressionParseContext delegate, java.util.Locale locale)
 - 
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- 
LocaleAwareMessageParseContextpublic LocaleAwareMessageParseContext(ExpressionParseContext delegate, java.util.Locale locale) 
 
- 
 - 
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
 
 
- 
 
-