Package org.zkoss.zkmax.xel.el
Class ApacheELFactory
java.lang.Object
org.zkoss.zkmax.xel.el.ApacheELFactory
- All Implemented Interfaces:
org.zkoss.xel.ExpressionFactory
An implementation that is based on Apache commons-el:
org.apache.commons.el.ExpressionEvaluatorImpl.
Available in ZK EE
The org.zkoss.xel.el.ELFactory class is recommended since the implementation it encapsulates has the better performance.
- Since:
- 3.0.0
- Author:
- tomyeh
-
Field Summary
Fields inherited from interface org.zkoss.xel.ExpressionFactory
FEATURE_CLASS, FEATURE_FUNCTION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisSupported(int feature) protected jakarta.servlet.jsp.el.ExpressionEvaluatorReturns the EL expression factory.org.zkoss.xel.ExpressionparseExpression(org.zkoss.xel.XelContext xelc, String expression, Class expectedType)
-
Constructor Details
-
ApacheELFactory
public ApacheELFactory()
-
-
Method Details
-
isSupported
public boolean isSupported(int feature) - Specified by:
isSupportedin interfaceorg.zkoss.xel.ExpressionFactory
-
parseExpression
public org.zkoss.xel.Expression parseExpression(org.zkoss.xel.XelContext xelc, String expression, Class expectedType) throws org.zkoss.xel.XelException - Specified by:
parseExpressionin interfaceorg.zkoss.xel.ExpressionFactory- Throws:
org.zkoss.xel.XelException
-
evaluate
public Object evaluate(org.zkoss.xel.XelContext xelc, String expression, Class expectedType) throws org.zkoss.xel.XelException - Specified by:
evaluatein interfaceorg.zkoss.xel.ExpressionFactory- Throws:
org.zkoss.xel.XelException
-
newExpressionEvaluator
protected jakarta.servlet.jsp.el.ExpressionEvaluator newExpressionEvaluator()Returns the EL expression factory.Default: Use a subclass of org.apache.commons.el.ExpressionEvaluatorImpl that also reads a property of an object whose class is in a package its module does not export, such as sun.util.calendar.ZoneInfo, through the same getter declared by a public supertype in an exported package.
You might override it to use a different implementation.
-