Examples of numberOfColumns()


Examples of org.formulacompiler.compiler.internal.expressions.ArrayDescriptor.numberOfColumns()

  private ExpressionNode getHVLookupSubArray( Function _fun, ExpressionNodeForArrayReference _arrayNode, int _index )
  {
    final ArrayDescriptor desc = _arrayNode.arrayDescriptor();
    if (_fun == HLOOKUP) {
      final int cols = desc.numberOfColumns();
      return _arrayNode.subArray( _index, 1, 0, cols );
    }
    else {
      final int rows = desc.numberOfRows();
      return _arrayNode.subArray( 0, rows, _index, 1 );
View Full Code Here

Examples of org.formulacompiler.compiler.internal.expressions.ArrayDescriptor.numberOfColumns()


  public final ExpressionNode rewrite() throws CompilerException
  {
    final ArrayDescriptor tableDescriptor = this.table.arrayDescriptor();
    if (tableDescriptor.numberOfColumns() == ArrayDescriptor.DYNAMIC) {
      throw new CompilerException.SectionOrientation( "The function "
          + this.fun.getFunction() + " can only operate on vertically repeating sections." );
    }

    // We need the type info to properly treat by-example criteria contained in strings.
View Full Code Here

Examples of org.formulacompiler.compiler.internal.expressions.ArrayDescriptor.numberOfColumns()

    // Push receiver for index switch method.
    mtd.mv().visitVarInsn( Opcodes.ALOAD, mtd.objectInContext() );

    // Compute index value.
    final ArrayDescriptor desc = _array.arrayDescriptor();
    final int cols = desc.numberOfColumns();
    if (cols == 1 && isNullOrZeroOrOne( _col )) {
      // <row> - 1;
      numCompiler.compileInt( _row );
      mv.push( 1 );
      mv.visitInsn( Opcodes.ISUB );
View Full Code Here

Examples of org.xwiki.test.ui.po.TableElement.numberOfColumns()

            // Check that the page has the table and the messages.
            Assert.assertTrue(sent.getMessageBoxContent().contains("Your message has been sent."));
            TableElement table = sent.getTable();
            Assert.assertTrue(table.numberOfRows() == 3);
            Assert.assertTrue(table.numberOfColumns() == 3);
            Assert.assertTrue(table.getRow(a).get(1).getText().contains("user@localhost.localdomain"));
            Assert.assertTrue(table.getRow(a).get(2).getText().contains("Pending"));
            Assert.assertTrue(table.getRow(b).get(1).getText().contains("anotheruser@localhost.localdomain"));
            Assert.assertTrue(table.getRow(b).get(2).getText().contains("Pending"));
        } finally {
View Full Code Here

Examples of org.xwiki.test.ui.po.TableElement.numberOfColumns()

            // Check that the page has the table and the message.
            Assert.assertTrue(sent.getMessageBoxContent().contains("Your message has been sent."));
            TableElement table = sent.getTable();
            Assert.assertTrue(table.numberOfRows() == 2);
            Assert.assertTrue(table.numberOfColumns() == 3);
            Assert.assertTrue(table.getRow(1).get(1).getText().contains("user@localhost.localdomain"));
            Assert.assertTrue(table.getRow(1).get(2).getText().contains("Pending"));
        } finally {
            stopGreenMail();
            getUtil().setSession(s);
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.