| java.lang.Object org.zkoss.xel.Expressions
Expressions | public class Expressions (Code) | | Utilities to use XEL.
author: tomyeh since: 3.0.0 |
DUMMY_EXPRESSION | final public static Expression DUMMY_EXPRESSION(Code) | | An dummy expression that does nothing.
It is usually used as a flag to denote exceptional cases.
It it serializable.
|
EMPTY_MAPPER | final public static FunctionMapper EMPTY_MAPPER(Code) | | An empty function mapper, i.e., it has no function defined at all.
It is serializable.
|
EMPTY_RESOLVER | final public static VariableResolver EMPTY_RESOLVER(Code) | | An empty variable resolver, i.e., it has no variable defined at all.
It is serializable.
|
evaluate | final public static Object evaluate(XelContext ctx, String expression, Class expectedType) throws XelException(Code) | | Evaluates an expression.
Parameters: ctx - the context information to evaluate the expressionIt 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 |
getExpressionFactoryClass | final public static Class getExpressionFactoryClass()(Code) | | Returns the implementation of the expression factory that
is used by the whole system, or null to use the system default.
See Also: Expressions.setExpressionFactoryClass |
setExpressionFactoryClass | final public static void setExpressionFactoryClass(Class expfcls)(Code) | | Sets the implementation of the expression factory that shall
be used by the whole system, or null to use the system default.
Default: null - it means
org.zkoss.xel.el.ELFactory .
Note: you can only specify an implementation that is compatible
with JSP EL here, since all builtin pages depend on it.
Parameters: expfcls - the implemtation class, or null to use the default.Note: expfcls must implement ExpressionFactory.If null, the system default is used. |
|
|