Examples of ExpressionNodeForSubSectionModel


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

        else {
          final SectionModel[] subs = new SectionModel[ subCount ];
          final int[] subCounts = new int[ subCount ];
          int i = 0;
          for (ExpressionNode uncountable : uncountables) {
            final ExpressionNodeForSubSectionModel sub = (ExpressionNodeForSubSectionModel) uncountable;
            subs[ i ] = sub.getSectionModel();
            final Collection<ExpressionNode> subUncountables = New.collection();
            subCounts[ i ] = sub.countArgumentValues( context().letDict, subUncountables );
            if (subUncountables.size() > 0) {
              throw new CompilerException.UnsupportedExpression( "COUNT of nested sections not supported" );
            }
          }
          final ExpressionNodeForCount res = new ExpressionNodeForCount( staticValueCount, subs, subCounts );
View Full Code Here

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

  public void stepInto( SectionBinding _sectionDef )
  {
    SectionModelCompiler sectionCompiler = this.targetSectionCompiler.getOrCreateSectionCompiler( _sectionDef );
    SectionModel sectionModel = sectionCompiler.getSectionModel();
    ExpressionNode step = new ExpressionNodeForSubSectionModel( sectionModel );
    add( step );
    this.targetSectionCompiler = sectionCompiler;
  }
View Full Code Here

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

  }


  private void verifyAllElementsReferenceTheSameSubSection( ExpressionNode[] _elts ) throws CompilerException
  {
    final ExpressionNodeForSubSectionModel sub = (ExpressionNodeForSubSectionModel) _elts[ 0 ];
    for (int iVec = 1; iVec < _elts.length; iVec++) {
      final ExpressionNode elt = _elts[ iVec ];
      if (elt instanceof ExpressionNodeForSubSectionModel) {
        final ExpressionNodeForSubSectionModel sub2 = (ExpressionNodeForSubSectionModel) elt;
        if (sub.getSectionModel() != sub2.getSectionModel()) {
          throw differentSubSections( sub, sub2 );
        }
      }
      else throw differentSubSections( sub, elt );
    }
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.