Examples of ExpressionNodeForCellModel


Examples of org.formulacompiler.compiler.internal.model.ExpressionNodeForCellModel

  }

  private ExpressionNode buildExpressionModelForLocalCell( CellIndex _cellIndex ) throws CompilerException
  {
    final CellModel cellModel = getOrCreateCellModel( _cellIndex );
    return new ExpressionNodeForCellModel( cellModel );
  }
View Full Code Here

Examples of org.formulacompiler.compiler.internal.model.ExpressionNodeForCellModel

    return this.cached;
  }

  private TypedResult compute() throws CompilerException
  {
    final ExpressionNodeForCellModel cellNode = (ExpressionNodeForCellModel) node();
    final CellModel cellModel = cellNode.getCellModel();

    if (null == cellModel) {
      return ConstResult.NULL;
    }
View Full Code Here

Examples of org.formulacompiler.compiler.internal.model.ExpressionNodeForCellModel

    private ExpressionNode replaceTableCellsByColRefs( ExpressionNode _node, List<CellModel> _firstRow )
        throws CompilerException
    {
      if (_node instanceof ExpressionNodeForCellModel) {
        final ExpressionNodeForCellModel cellNode = (ExpressionNodeForCellModel) _node;
        final CellModel cellModel = cellNode.getCellModel();
        final int iCol = _firstRow.indexOf( cellModel );
        if (iCol >= 0) {
          return var( colPrefix() + iCol );
        }
        else {
View Full Code Here

Examples of org.formulacompiler.compiler.internal.model.ExpressionNodeForCellModel

    if (_node instanceof ExpressionNodeForConstantValue) {
      final ExpressionNodeForConstantValue constNode = (ExpressionNodeForConstantValue) _node;
      return constNode.value();
    }
    else if (_node instanceof ExpressionNodeForCellModel) {
      final ExpressionNodeForCellModel cellNode = (ExpressionNodeForCellModel) _node;
      final CellModel cell = cellNode.getCellModel();
      if (null == cell) {
        return null;
      }
      else if (!cell.isInput()) {
        if (null == cell.getExpression()) {
View Full Code Here

Examples of org.formulacompiler.compiler.internal.model.ExpressionNodeForCellModel

  }

  protected final ExpressionNode expressionOf( ExpressionNode _node )
  {
    if (_node instanceof ExpressionNodeForCellModel) {
      final ExpressionNodeForCellModel cellNode = (ExpressionNodeForCellModel) _node;
      final CellModel cell = cellNode.getCellModel();
      if (null != cell && !cell.isInput() && null != cell.getExpression()) {
        return expressionOf( cell.getExpression() );
      }
    }
    return _node;
View Full Code Here

Examples of org.formulacompiler.compiler.internal.model.ExpressionNodeForCellModel

      }
      else {
        if (!(next instanceof ExpressionNodeForCellModel)) {
          throw new CompilerException.UnsupportedExpression( "Database table data must be cells." );
        }
        ExpressionNodeForCellModel cellElt = (ExpressionNodeForCellModel) next;
        _row.add( cellElt.getCellModel() );
        iCol++;
      }
    }
    return iCol;
  }
View Full Code Here

Examples of org.formulacompiler.compiler.internal.model.ExpressionNodeForCellModel

  {
    if (_expr == null) return null;

    ExpressionNode result = _expr;
    while (result instanceof ExpressionNodeForCellModel) {
      final ExpressionNodeForCellModel cellNode = (ExpressionNodeForCellModel) result;
      final CellModel cellModel = cellNode.getCellModel();
      if (!isInlineable( cellModel )) return result;
      result = cellModel.getExpression();
      if (null == result) {
        result = new ExpressionNodeForConstantValue( cellModel.getConstantValue(), cellModel.getDataType() );
      }
View Full Code Here

Examples of org.formulacompiler.compiler.internal.model.ExpressionNodeForCellModel

  {
    if (_expr == null) {
      // nothing to do
    }
    else if (_expr instanceof ExpressionNodeForCellModel) {
      ExpressionNodeForCellModel cellNode = (ExpressionNodeForCellModel) _expr;
      CellModel cellModel = cellNode.getCellModel();
      if (null != cellModel) {
        reference( cellModel, _accessedBySubBand );
      }
    }
    else {
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.