⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 elfactory.java

📁 ZK 基础介绍 功能操作 模块 结合数据库操作
💻 JAVA
字号:
/* ELFactory.java{{IS_NOTE	Purpose:			Description:			History:		Fri Aug 31 17:00:40     2007, Created by tomyeh}}IS_NOTECopyright (C) 2007 Potix Corporation. All Rights Reserved.{{IS_RIGHT	This program is distributed under GPL Version 2.0 in the hope that	it will be useful, but WITHOUT ANY WARRANTY.}}IS_RIGHT*/package org.zkoss.xel.el;import org.zkoss.xel.Expression;import org.zkoss.xel.ExpressionFactory;import org.zkoss.xel.XelContext;import org.zkoss.xel.XelException;import org.zkforge.apache.commons.el.ExpressionEvaluatorImpl;/** * An implementation based on ZK Commons EL (zcommons-el.jar:  * org.zkforge.apache.commons.el.ExpressionEvaluatorImpl). * ZK commons-EL is a peformance enhancement version of Apache Commons EL. * It is also independent of JSP 2.0. * * @author tomyeh * @since 3.0.0 */public class ELFactory implements ExpressionFactory {	private final ExpressionEvaluatorImpl _eval;	public ELFactory() {		_eval = new ExpressionEvaluatorImpl();	}	//ExpressionFactory//	public boolean isSupported(int feature) {		return feature == FEATURE_FUNCTION;	}	public Expression parseExpression(XelContext xelc, String expression,	Class expectedType)	throws XelException {		return new ELXelExpression(			_eval.parseExpression(expression, expectedType,				xelc != null ? xelc.getFunctionMapper(): null));	}	public Object evaluate(XelContext xelc, String expression,	Class expectedType)	throws XelException {		return _eval.evaluate(expression, expectedType,			xelc != null ? xelc.getVariableResolver(): null,			xelc != null ? xelc.getFunctionMapper(): null);	}}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -