Package org.formulacompiler.compiler.internal.expressions

Examples of org.formulacompiler.compiler.internal.expressions.ExpressionNode.addArgument()


    // No need to clone leaf nodes.
    if (_args.length == 0) return node();

    ExpressionNode result = node().cloneWithoutArguments();
    for (final TypedResult arg : _args) {
      result.addArgument( valueToNode( arg ) );
    }
    return result;
  }

  protected abstract TypedResult evaluateToConst( TypedResult... _args ) throws CompilerException;
View Full Code Here


   */
  protected final void popNodeAndMergeIntoTopNode()
  {
    final ExpressionNode popped = popNode();
    final ExpressionNode top = peekNode();
    top.addArgument( popped );
  }

  protected final ExpressionNode peekNode()
  {
    return this.nodes.get( this.nodes.size() - 1 );
View Full Code Here

      newFold = fold;
    }

    final ExpressionNode result;
    result = node().cloneWithoutArguments();
    result.addArgument( newFold );
    addDynamicArgsToPartialFold( result, dynArgs );
    return result;
  }

View Full Code Here

        }
      }
      else {
        final ExpressionNode clone = _node.cloneWithoutArguments();
        for (ExpressionNode arg : _node.arguments()) {
          clone.addArgument( replaceTableCellsByColRefs( arg, _firstRow ) );
        }
        return clone;
      }
    }
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.