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

org.nutz.el.Operator Maven / Gradle / Ivy

Go to download

Nutz, which is a collections of lightweight frameworks, each of them can be used independently

There is a newer version: 1.r.72
Show newest version
package org.nutz.el;

import java.util.Queue;

/**
 * 操作符
 * @author juqkai([email protected])
 *
 */
public interface Operator {

    /**
     * 优先级
     */
    public int fetchPriority();

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

    /**
     * 计算
     */
    public Object calculate();

}