Package org.formulacompiler.spreadsheet.internal

Examples of org.formulacompiler.spreadsheet.internal.ExpressionNodeForRange


      else {
        _stringBuilder.append( expressionNodeForCell.toString() );
      }
    }
    else if (_expr instanceof ExpressionNodeForRange) {
      final ExpressionNodeForRange expressionNodeForRange = (ExpressionNodeForRange) _expr;
      final String name = expressionNodeForRange.getName();
      if (name != null) {
        _stringBuilder.append( name );
      }
      else {
        appendRangeRef( _stringBuilder, expressionNodeForRange.getRange(), _baseCell.getSheetIndex() );
      }
    }
    else if (_expr instanceof ExpressionNodeForRangeIntersection) {
      final List<ExpressionNode> arguments = _expr.arguments();
      appendArguments( _stringBuilder, arguments, " ", _baseCell, null );
View Full Code Here


    return new ExprNodeImpl( new ExpressionNodeForCell( cellOf( _cell ) ) );
  }

  public ExprNode ref( RangeRef _rng )
  {
    return new ExprNodeImpl( new ExpressionNodeForRange( rangeOf( _rng ) ) );
  }
View Full Code Here

        RefFormatter.append( _stringBuilder, cellIndex, _baseCell );
        _stringBuilder.append( ']' );
      }
    }
    else if (_expr instanceof ExpressionNodeForRange) {
      final ExpressionNodeForRange expressionNodeForRange = (ExpressionNodeForRange) _expr;
      final String name = expressionNodeForRange.getName();
      if (name != null) {
        _stringBuilder.append( name );
      }
      else {
        final CellRange range = expressionNodeForRange.getRange();
        _stringBuilder.append( '[' );
        RefFormatter.append( _stringBuilder, range, _baseCell );
        _stringBuilder.append( ']' );
      }
    }
View Full Code Here

    if (range instanceof CellIndex) {
      final CellIndex cell = (CellIndex) range;
      return new ExpressionNodeForCell( cell, name );
    }
    else {
      return new ExpressionNodeForRange( range, name );
    }
  }
View Full Code Here

      final CellIndex cell = (CellIndex) _reference;
      return new ExpressionNodeForCell( cell );
    }
    else if (_reference instanceof CellRange) {
      final CellRange range = (CellRange) _reference;
      return new ExpressionNodeForRange( range );
    }
    throw new IllegalArgumentException( "Reference must be a cell or range" );
  }
View Full Code Here

        }, false );
      }
    }
    else if (!_allowRanges && node instanceof ExpressionNodeForRange) {
      try {
        final ExpressionNodeForRange nodeForRange = (ExpressionNodeForRange) node;
        final CellRange range = nodeForRange.getRange();
        final CellIndex cell = range.getCellIndexRelativeTo( this.cellIndex );
        _nodeSource.setExpressionNode( new ExpressionNodeForCell( cell, nodeForRange.getName() ) );
      } catch (SpreadsheetException e) {
        throw new InnerParserException( e );
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.formulacompiler.spreadsheet.internal.ExpressionNodeForRange

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.