| org.zkoss.xel.ExpressionFactory
All known Subclasses: org.zkoss.xel.el.ELFactory, org.zkoss.zkmax.xel.ognl.OGNLFactory, org.zkoss.zkmax.xel.mvel.MVELFactory, org.zkoss.zkmax.xel.el.ApacheELFactory, org.zkoss.zkmax.xel.el21.ApacheELFactory,
ExpressionFactory | public interface ExpressionFactory (Code) | | Used to prepare expressions (
Expression ).
author: tomyeh since: 3.0.0 |
evaluate | public Object evaluate(XelContext ctx, String expression, Class expectedType) throws XelException(Code) | | Evaluates an expression.
Parameters: ctx - the context information to evaluate an expression.It can be null, in which case no functions are supported for thisinvocation. Parameters: expression - the expression to be evaluated.Note: the expression is enclosedwith ${ and }, regardingless what implemetnation is used. Parameters: expectedType - the expected type of the result of the evaluation |
parseExpression | public Expression parseExpression(XelContext ctx, String expression, Class expectedType) throws XelException(Code) | | Prepares (aka., compiles) an expression.
Parameters: ctx - the context infomation to prepare the expression.It can be null, in which case no functions are supported for thisinvocation. Parameters: expression - the expression to be evaluated. Parameters: expectedType - the expected type of the result of the evaluation |
|
|