panda.el.parse.Converter Maven / Gradle / Ivy
package panda.el.parse;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import panda.el.ELException;
import panda.el.obj.ELObj;
import panda.el.opt.LArrayOpt;
import panda.el.opt.LBracketOpt;
import panda.el.opt.RArrayOpt;
import panda.el.opt.RBracketOpt;
import panda.el.opt.arithmetic.DivOpt;
import panda.el.opt.arithmetic.ModOpt;
import panda.el.opt.arithmetic.MulOpt;
import panda.el.opt.arithmetic.NegateOpt;
import panda.el.opt.arithmetic.PlusOpt;
import panda.el.opt.arithmetic.SubOpt;
import panda.el.opt.object.CommaOpt;
import panda.el.opt.object.InvokeMethodOpt;
import panda.el.opt.object.MakeArrayOpt;
import panda.el.opt.object.MethodOpt;
/**
* 转换器,也就是用来将字符串转换成队列. 这个类的名字不知道取什么好...
*/
public class Converter {
private final List parses = new ArrayList();
// 表达式字符队列
private CharQueue exp;
// 表达式项
private LinkedList