Examples of RPN


Examples of org.nutz.el.arithmetic.RPN

   * 预编译
   */
  public El(CharSequence cs){
    ShuntingYard sy = new ShuntingYard();
    Queue<Object> rpn = sy.parseToRPN(cs.toString());
    rc = new RPN(rpn);
  }
View Full Code Here

Examples of org.nutz.el.arithmetic.RPN

    return eval(null, val);
  }

  public static Object eval(Context context, String val) {
    ShuntingYard sy = new ShuntingYard();
    RPN rc = new RPN();
    Queue<Object> rpn = sy.parseToRPN(val);
    return rc.calculate(context, rpn);
  }
View Full Code Here

Examples of org.nutz.el.arithmetic.RPN

     */
    public El(CharSequence cs){
        elstr = cs;
        ShuntingYard sy = new ShuntingYard();
        Queue<Object> rpn = sy.parseToRPN(cs.toString());
        rc = new RPN(rpn);
    }
View Full Code Here

Examples of org.nutz.el.arithmetic.RPN

        return eval(null, val);
    }

    public static Object eval(Context context, String val) {
        ShuntingYard sy = new ShuntingYard();
        RPN rc = new RPN();
        Queue<Object> rpn = sy.parseToRPN(val);
        return rc.calculate(context, rpn);
    }
View Full Code Here

Examples of rpn.RPN

public class RPNTest extends TestCase {
  private RPN rPN;
 
  @Override
  protected void setUp() {
    rPN = new RPN();
   
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.