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

panda.el.opt.LBracketOpt Maven / Gradle / Ivy

package panda.el.opt;

import java.util.Queue;

import panda.el.ELContext;
import panda.el.ELException;

/**
 * "("
 */
public class LBracketOpt extends AbstractOpt {
	
	public static final LBracketOpt INSTANCE = new LBracketOpt();
	
	private LBracketOpt() {
	}

	public String operator() {
		return "(";
	}

	public int getPriority() {
		return 100;
	}

	public void wrap(Queue obj) {
		throw new ELException("wrap() is unsupported by '('");
	}

	public Object calculate(ELContext ec) {
		throw new ELException("calculate() is unsupported by '('");
	}
}