Package expression.integer

Examples of expression.integer.PlusExpression


    Node next = child.next();
    Expression first = parse(next,p);
    if (!child.hasMoreChild()) exception(1);
    Expression second = intOperatorAux(child,p, operator);
    Expression expr = null;
    if (isPlus(operator)) expr = new PlusExpression(first,second);
    else if (isMinus(operator)) expr = new MinusExpression(first,second);
    else if (isTimes(operator)) expr = new TimeExpression(first,second);
    else expr = new DivExpression(first,second);
//    ExpressionName result = p.exprTable.addExpression(expr);
//    return result;
View Full Code Here


    Node next = child.next();
    Expression first = parse(next,p);
    if (child.hasMoreChild()) {
      Expression second = intOperatorAux(child,p,op);
      Expression expr = null;
      if (isPlus(op)) expr = new PlusExpression(first,second);
      else if (isMinus(op))expr = new MinusExpression(first,second);
      else if (isTimes(op)) expr = new TimeExpression(first,second);
      else expr = new DivExpression(first,second);
      return expr;
      //return p.exprTable.addExpression(expr);
View Full Code Here

TOP

Related Classes of expression.integer.PlusExpression

Copyright © 2018 www.massapicom. 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.