Package org.nutz.el

Examples of org.nutz.el.Operator.calculate()


   * 计算
   */
  private Object calculate(Deque<Object> el2){
    if(el2.peek() instanceof Operator){
      Operator obj = (Operator) el2.peek();
      return obj.calculate();
    }
    if(el2.peek() instanceof IdentifierObj){
      return ((IdentifierObj) el2.peek()).fetchVal();
    }
    return el2.peek();
View Full Code Here


     * 计算
     */
    private Object calculate(LinkedList<Object> el2){
        if(el2.peek() instanceof Operator){
            Operator obj = (Operator) el2.peek();
            return obj.calculate();
        }
        if(el2.peek() instanceof Elobj){
            return ((Elobj) el2.peek()).fetchVal();
        }
        return el2.peek();
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.