system/src/sc/lang/java/ArithmeticExpression.java
public static ArithmeticExpression create(Expression lhs, String operator, Expression rhs, boolean nested) {
      ArithmeticExpression newExpr = new ArithmeticExpression();
      newExpr.isTreeNode = true;
      newExpr.setProperty("lhs", lhs, !nested, !nested);
      newExpr.setProperty("firstExpr", lhs, !nested, !nested);
      newExpr.operator = operator;
      newExpr.setProperty("rhs", rhs, !nested, !nested);
      SemanticNodeList<BaseOperand> newOps = new SemanticNodeList<BaseOperand>(1);
      newOps.add(new BinaryOperand(operator, rhs, !nested, !nested));
      newExpr.setProperty("operands", newOps);
      return newExpr;
   }
/** This variant adds the nested property - used when the lhs and rhs properties already live in the semantic tree rooted from another node.  In this case, do not consider these nodes really part of the tree since the parent is already set. */
This variant adds the nested property - used when the lhs and rhs properties already live in the semantic tree rooted from another node.  In this case, do not consider these nodes really part of the tree since the parent is already set.
This variant adds the nested property - used when the lhs and rhs properties already live in the semantic tree rooted from another node . In this case do not consider these nodes really part of the tree since the parent is already set .
public static ArithmeticExpression create(Expression lhs, String operator, Expression rhs, boolean nested) {
      ArithmeticExpression newExpr = new ArithmeticExpression();
      newExpr.isTreeNode = true;
      newExpr.setProperty("lhs", lhs, !nested, !nested);
      newExpr.setProperty("firstExpr", lhs, !nested, !nested);
      newExpr.operator = operator;
      newExpr.setProperty("rhs", rhs, !nested, !nested);
      SemanticNodeList<BaseOperand> newOps = new SemanticNodeList<BaseOperand>(1);
      newOps.add(new BinaryOperand(operator, rhs, !nested, !nested));
      newExpr.setProperty("operands", newOps);
      return newExpr;
   }
public static ArithmeticExpression create ( Expression lhs , String operator , Expression rhs , boolean nested ) { ArithmeticExpression newExpr = new ArithmeticExpression ( ) ; newExpr . isTreeNode = true ; newExpr . setProperty ( "lhs" , lhs , ! nested , ! nested ) ; newExpr . setProperty ( "firstExpr" , lhs , ! nested , ! nested ) ; newExpr . operator = operator ; newExpr . setProperty ( "rhs" , rhs , ! nested , ! nested ) ; SemanticNodeList < BaseOperand > newOps = new SemanticNodeList < BaseOperand > ( 1 ) ; newOps . add ( new BinaryOperand ( operator , rhs , ! nested , ! nested ) ) ; newExpr . setProperty ( "operands" , newOps ) ; return newExpr ; }
This variant adds the nested property - used when the lhs and rhs properties already live in the semantic tree rooted from another node.
This variant adds the nested property - used when the lhs and rhs properties already live in the semantic tree rooted from another node .