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 Summary
Nested 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 Summary
Constructors Constructor Description LocaleAwareMessageParseContext(ExpressionParseContext delegate, java.util.Locale locale) 
- 
Method Summary
All 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
- 
LocaleAwareMessageParseContext
public LocaleAwareMessageParseContext(ExpressionParseContext delegate, java.util.Locale locale)
 
 - 
 
- 
Method Detail
- 
createBoundExpression
public 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 interfaceExpressionParseContext- 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
 
- 
getFunctionFactory
public FunctionFactory getFunctionFactory()
- Specified by:
 getFunctionFactoryin interfaceExpressionParseContext
 
 - 
 
 -