Examples of ArrayDescriptor


Examples of org.formulacompiler.compiler.internal.expressions.ArrayDescriptor

    // 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 );
    }
    else {
      final int rows = desc.numberOfRows();
      if (rows == 1 && isNullOrZeroOrOne( _row )) {
        // <col> - 1;
        numCompiler.compileInt( _col );
        mv.push( 1 );
        mv.visitInsn( Opcodes.ISUB );
View Full Code Here

Examples of org.formulacompiler.compiler.internal.expressions.ArrayDescriptor

  @Override
  protected void compileBody() throws CompilerException
  {
    final GeneratorAdapter mv = mv();
    final ArrayDescriptor dim = this.arrayNode.arrayDescriptor();
    final int n = dim.numberOfElements();
    final DataType eltDataType = this.arrayNode.getDataType();
    final TypeCompiler eltCompiler = section().engineCompiler().typeCompiler( eltDataType );
    final Type eltType = eltCompiler.type();

    // private double[] xy;
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.