All Downloads are FREE. Search and download functionalities are using the official Maven repository.

panda.el.Operator Maven / Gradle / Ivy

package panda.el;

import java.util.Queue;

/**
 * 操作符
 */
public interface Operator {

	/**
	 * @return the priority of the operator
	 */
	public int getPriority();

	/**
	 * 打包数据. 每个操作符都有相应的操作数,这个方法目的在于,根据操作符自身的需求,从operand中读取相应的操作数
	 * 
	 * @param operand 操作数
	 */
	public void wrap(Queue operand);

	/**
	 * @param ec the ElContext
	 * @return the calculated value
	 */
	public Object calculate(ELContext ec);

}