Class JexlExpressionFactory
java.lang.Object
org.apache.commons.jelly.expression.jexl.JexlExpressionFactory
- All Implemented Interfaces:
ExpressionFactory
Represents a factory of Jexl
expression which fully supports the Expression Language in JSTL and JSP.
In addition this ExpressionFactory can also support Ant style variable
names, where '.' is used inside variable names.
- Version:
- $Revision: 155420 $
- Author:
- James Strachan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateExpression(String text) Creates a new expression for the given textbooleanprotected booleanisValidAntVariableName(String text) voidsetSupportAntVariables(boolean supportAntVariables) Sets whether we should allow Ant-style expresssions, using dots as part of variable name
-
Constructor Details
-
JexlExpressionFactory
public JexlExpressionFactory()
-
-
Method Details
-
createExpression
Description copied from interface:ExpressionFactoryCreates a new expression for the given text- Specified by:
createExpressionin interfaceExpressionFactory- Throws:
JellyException
-
isSupportAntVariables
public boolean isSupportAntVariables()- Returns:
- whether we should allow Ant-style expresssions, using dots as part of variable name
-
setSupportAntVariables
public void setSupportAntVariables(boolean supportAntVariables) Sets whether we should allow Ant-style expresssions, using dots as part of variable name -
isValidAntVariableName
- Returns:
- true if the given string is a valid Ant variable name, typically thats alphanumeric text with '.' etc.
-