Package org.formulacompiler.compiler.internal.expressions

Examples of org.formulacompiler.compiler.internal.expressions.ExpressionNodeForArrayReference.addArgument()


    final ExpressionNodeForArrayReference rangeNode = (ExpressionNodeForArrayReference) node();
    final ExpressionNodeForArrayReference result = new ExpressionNodeForArrayReference( rangeNode.arrayDescriptor() );
    result.setDataType( rangeNode.getDataType() );
    for (TypedResult arg : _args) {
      if (arg instanceof ExpressionNode) {
        result.addArgument( (ExpressionNode) arg );
      }
      else {
        result.addArgument( new ExpressionNodeForConstantValue( arg.getConstantValue(), arg.getDataType() ) );
      }
    }
View Full Code Here


    for (TypedResult arg : _args) {
      if (arg instanceof ExpressionNode) {
        result.addArgument( (ExpressionNode) arg );
      }
      else {
        result.addArgument( new ExpressionNodeForConstantValue( arg.getConstantValue(), arg.getDataType() ) );
      }
    }
    return result;
  }
View Full Code Here

    final ArrayDescriptor desc = new ArrayDescriptor( 1, rows, cols );
    final ExpressionNodeForArrayReference result = new ExpressionNodeForArrayReference( desc );

    for (int row = 0; row < rows; row++)
      for (int col = 0; col < cols; col++)
        result.addArgument( _vectors[ col ].argument( row ) );

    return result;
  }

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