public class InternationalizedStringExpression
extends org.apache.commons.jelly.expression.ExpressionSupport
The "(arg1,...)" portion is optional and can be ommitted. Each argument
is assumed to be a parenthesis-balanced expression and passed to
JellyClassLoaderTearOff.EXPRESSION_FACTORY
to be parsed.
The message resource is loaded from files like "xyz.properties" and "xyz_ja.properties" when the expression is placed in "xyz.jelly".
Modifier and Type | Class and Description |
---|---|
static class |
InternationalizedStringExpression.RawHtmlArgument
Deprecated.
Use
RawHtmlArgument |
Modifier and Type | Field and Description |
---|---|
String |
expressionText |
String |
key |
ResourceBundle |
resourceBundle |
Constructor and Description |
---|
InternationalizedStringExpression(ResourceBundle resourceBundle,
String text) |
Modifier and Type | Method and Description |
---|---|
Object |
evaluate(org.apache.commons.jelly.JellyContext context) |
List<org.apache.commons.jelly.expression.Expression> |
getArguments() |
String |
getExpressionText() |
org.apache.commons.jelly.expression.Expression |
makeEscapingExpression()
Creates a new
Expression that performs proper HTML escaping. |
public final ResourceBundle resourceBundle
public final String key
public final String expressionText
public InternationalizedStringExpression(ResourceBundle resourceBundle, String text) throws org.apache.commons.jelly.JellyException
org.apache.commons.jelly.JellyException
public List<org.apache.commons.jelly.expression.Expression> getArguments()
public String getExpressionText()
public Object evaluate(org.apache.commons.jelly.JellyContext context)
public org.apache.commons.jelly.expression.Expression makeEscapingExpression()
Expression
that performs proper HTML escaping.Copyright © 2016. All rights reserved.