public class LocaleAwareMessageParseContext extends java.lang.Object implements ExpressionParseContext
StringParser
, which builds messages that
reference other things.Modifier and Type | Class and Description |
---|---|
protected class |
LocaleAwareMessageParseContext.LocaleStringExpression
This wraps up the normal expression in order to toString the result in a locale appropriate way.
|
Constructor and Description |
---|
LocaleAwareMessageParseContext(ExpressionParseContext delegate,
java.util.Locale locale) |
Modifier and Type | Method and Description |
---|---|
Expression |
createBoundExpression(java.lang.String path)
Called to create expressions to represent bound elements, like:
|
FunctionFactory |
getFunctionFactory() |
public LocaleAwareMessageParseContext(ExpressionParseContext delegate, java.util.Locale locale)
public Expression createBoundExpression(java.lang.String path) throws java.lang.RuntimeException
ExpressionParseContext
{ path.to.something }
createBoundExpression
in interface ExpressionParseContext
path
- the text content inside the braces.java.lang.RuntimeException
- because the CUP parser doesn't have a throws on the function that calls this
inside the parserpublic FunctionFactory getFunctionFactory()
getFunctionFactory
in interface ExpressionParseContext