Package org.formulacompiler.compiler.internal.expressions

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


  {
    int iCol = _iCol;
    while (iCol < _nCol && _dataElements.hasNext()) {
      final ExpressionNode next = _dataElements.next();
      if (next instanceof ExpressionNodeForArrayReference || next instanceof ExpressionNodeForSubSectionModel) {
        iCol = getFirstRowFromTableInto( iCol, _nCol, next.arguments().iterator(), _row );
      }
      else {
        if (!(next instanceof ExpressionNodeForCellModel)) {
          throw new CompilerException.UnsupportedExpression( "Database table data must be cells." );
        }
View Full Code Here


  private int compileRowTraversal( int _foldedCol, List<ExpressionNode> _elts, int _iElt ) throws CompilerException
  {
    final ExpressionNode elt = _elts.get( _iElt );
    if (elt instanceof ExpressionNodeForArrayReference) {
      compileRowTraversal( _foldedCol, elt.arguments(), 0 );
      return _iElt + 1;
    }
    else if (elt instanceof ExpressionNodeForSubSectionModel) {
      compileSubSectionTraversal( _foldedCol, (ExpressionNodeForSubSectionModel) elt );
      return _iElt + 1;
View Full Code Here

  {
    Iterable<ExpressionNode> vec0 = _elts;
    ExpressionNode elt0;
    while ((elt0 = vec0.iterator().next()) instanceof ExpressionNodeForSubstitution
        || elt0 instanceof ExpressionNodeForArrayReference) {
      vec0 = elt0.arguments();
    }
    return vec0;
  }

}
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.