Package org.objectweb.asm.commons

Examples of org.objectweb.asm.commons.GeneratorAdapter.visitTypeInsn()


    mv.visitVarInsn( Opcodes.ASTORE, 0 + loc );
    mv.visitJumpInsn( Opcodes.IFNONNULL, l_0 );
    mv.visitFieldInsn( Opcodes.GETSTATIC, "java/math/BigDecimal", "ZERO", "Ljava/math/BigDecimal;" );
    mv.visitJumpInsn( Opcodes.GOTO, l_1 );
    mv.visitLabel( l_0 );
    mv.visitTypeInsn( Opcodes.NEW, "java/math/BigDecimal" );
    mv.visitInsn( Opcodes.DUP );
    mv.visitVarInsn( Opcodes.ALOAD, 0 + loc );
    mv.visitMethodInsn( Opcodes.INVOKESPECIAL, "java/math/BigDecimal", "<init>", "(Ljava/math/BigInteger;)V" );
    mv.visitLabel( l_1 );
    compileValueAdjustment();
View Full Code Here


    mv.visitVarInsn( Opcodes.ASTORE, 0 + loc );
    mv.visitJumpInsn( Opcodes.IFNONNULL, l_0 );
    mv.visitFieldInsn( Opcodes.GETSTATIC, "java/math/BigDecimal", "ZERO", "Ljava/math/BigDecimal;" );
    mv.visitJumpInsn( Opcodes.GOTO, l_1 );
    mv.visitLabel( l_0 );
    mv.visitTypeInsn( Opcodes.NEW, "java/math/BigDecimal" );
    mv.visitInsn( Opcodes.DUP );
    mv.visitVarInsn( Opcodes.ALOAD, 0 + loc );
    mv.visitMethodInsn( Opcodes.INVOKEVIRTUAL, "java/lang/Object", "toString", "()Ljava/lang/String;" );
    mv.visitMethodInsn( Opcodes.INVOKESPECIAL, "java/math/BigDecimal", "<init>", "(Ljava/lang/String;)V" );
    mv.visitLabel( l_1 );
View Full Code Here

    final FieldVisitor fv = cw.visitField( Opcodes.ACC_STATIC + Opcodes.ACC_FINAL, RUNTIME_CONTEXT_NAME,
        RUNTIME_CONTEXT_TYPE.getDescriptor(), null, null );
    fv.visitEnd();

    final GeneratorAdapter mv = root.initializer();
    mv.visitTypeInsn( Opcodes.NEW, RUNTIME_CONTEXT_TYPE.getInternalName() );
    mv.visitInsn( Opcodes.DUP );
    mv.push( numericType().scale() );
    mv.visitMethodInsn( Opcodes.INVOKESPECIAL, RUNTIME_CONTEXT_TYPE.getInternalName(), "<init>", "(I)V" );
    mv.visitFieldInsn( Opcodes.PUTSTATIC, root.classInternalName(), RUNTIME_CONTEXT_NAME, RUNTIME_CONTEXT_DESCRIPTOR );
  }
View Full Code Here

    }
    else if (mc == MathContext.UNLIMITED) {
      compilePredefinedMathContext( mv, "UNLIMITED" );
    }
    else {
      mv.visitTypeInsn( Opcodes.NEW, RUNTIME_CONTEXT_TYPE.getInternalName() );
      mv.visitInsn( Opcodes.DUP );
      mv.push( mc.getPrecision() );
      final Type modeType = Type.getType( RoundingMode.class );
      mv.getStatic( modeType, mc.getRoundingMode().name(), modeType );
      mv.visitMethodInsn( Opcodes.INVOKESPECIAL, RUNTIME_CONTEXT_TYPE.getInternalName(), "<init>",
View Full Code Here

    mv.visitJumpInsn( Opcodes.IFNULL, l_0 );
    mv.push( _f );
    mv.visitInsn( Opcodes.DUP );
    mv.visitVarInsn( Opcodes.ASTORE, 5 + loc );
    mv.visitJumpInsn( Opcodes.IFNULL, l_0 );
    mv.visitTypeInsn( Opcodes.NEW, "org/formulacompiler/runtime/internal/spreadsheet/CellAddressImpl" );
    mv.visitInsn( Opcodes.DUP );
    mv.visitVarInsn( Opcodes.ALOAD, 4 + loc );
    mv.push( _e );
    mv.push( _d );
    mv.visitMethodInsn( Opcodes.INVOKESPECIAL, "org/formulacompiler/runtime/internal/spreadsheet/CellAddressImpl", "<init>", "(Ljava/lang/String;II)V" );
View Full Code Here

    mv.visitVarInsn( Opcodes.ALOAD, 4 + loc );
    mv.push( _e );
    mv.push( _d );
    mv.visitMethodInsn( Opcodes.INVOKESPECIAL, "org/formulacompiler/runtime/internal/spreadsheet/CellAddressImpl", "<init>", "(Ljava/lang/String;II)V" );
    mv.visitVarInsn( Opcodes.ASTORE, 2 + loc );
    mv.visitTypeInsn( Opcodes.NEW, "org/formulacompiler/runtime/internal/spreadsheet/CellAddressImpl" );
    mv.visitInsn( Opcodes.DUP );
    mv.visitVarInsn( Opcodes.ALOAD, 5 + loc );
    mv.push( _h );
    mv.push( _g );
    mv.visitMethodInsn( Opcodes.INVOKESPECIAL, "org/formulacompiler/runtime/internal/spreadsheet/CellAddressImpl", "<init>", "(Ljava/lang/String;II)V" );
View Full Code Here

    mv.visitVarInsn( Opcodes.ALOAD, 5 + loc );
    mv.push( _h );
    mv.push( _g );
    mv.visitMethodInsn( Opcodes.INVOKESPECIAL, "org/formulacompiler/runtime/internal/spreadsheet/CellAddressImpl", "<init>", "(Ljava/lang/String;II)V" );
    mv.visitVarInsn( Opcodes.ASTORE, 3 + loc );
    mv.visitTypeInsn( Opcodes.NEW, "org/formulacompiler/runtime/internal/spreadsheet/RangeAddressImpl" );
    mv.visitInsn( Opcodes.DUP );
    mv.visitVarInsn( Opcodes.ALOAD, 2 + loc );
    mv.visitVarInsn( Opcodes.ALOAD, 3 + loc );
    mv.visitMethodInsn( Opcodes.INVOKESPECIAL, "org/formulacompiler/runtime/internal/spreadsheet/RangeAddressImpl", "<init>", "(Lorg/formulacompiler/runtime/spreadsheet/CellAddress;Lorg/formulacompiler/runtime/spreadsheet/CellAddress;)V" );
    mv.visitVarInsn( Opcodes.ASTORE, 1 + loc );
View Full Code Here

    mv.visitJumpInsn( Opcodes.GOTO, l_1 );
    mv.visitLabel( l_0 );
    mv.visitInsn( Opcodes.ACONST_NULL );
    mv.visitVarInsn( Opcodes.ASTORE, 1 + loc );
    mv.visitLabel( l_1 );
    mv.visitTypeInsn( Opcodes.NEW, "org/formulacompiler/runtime/internal/spreadsheet/SectionInfoImpl" );
    mv.visitInsn( Opcodes.DUP );
    mv.push( _b );
    mv.visitVarInsn( Opcodes.ALOAD, 1 + loc );
    mv.visitVarInsn( Opcodes.ILOAD, 0 + loc );
    mv.visitMethodInsn( Opcodes.INVOKESPECIAL, "org/formulacompiler/runtime/internal/spreadsheet/SectionInfoImpl", "<init>", "(Ljava/lang/String;Lorg/formulacompiler/runtime/spreadsheet/RangeAddress;I)V" );
View Full Code Here

    incLocalsOffset( 5 );
    mv.visitVarInsn( Opcodes.ASTORE, 0 + loc );
    compile_environment();
    mv.visitMethodInsn( Opcodes.INVOKEVIRTUAL, "org/formulacompiler/runtime/internal/Environment", "computationListener", "()Lorg/formulacompiler/runtime/event/CellComputationListener;" );
    mv.visitVarInsn( Opcodes.ASTORE, 1 + loc );
    mv.visitTypeInsn( Opcodes.NEW, "org/formulacompiler/runtime/internal/spreadsheet/CellAddressImpl" );
    mv.visitInsn( Opcodes.DUP );
    mv.push( _b );
    mv.push( _c );
    mv.push( _d );
    mv.visitMethodInsn( Opcodes.INVOKESPECIAL, "org/formulacompiler/runtime/internal/spreadsheet/CellAddressImpl", "<init>", "(Ljava/lang/String;II)V" );
View Full Code Here

    mv.push( _b );
    mv.push( _c );
    mv.push( _d );
    mv.visitMethodInsn( Opcodes.INVOKESPECIAL, "org/formulacompiler/runtime/internal/spreadsheet/CellAddressImpl", "<init>", "(Ljava/lang/String;II)V" );
    mv.visitVarInsn( Opcodes.ASTORE, 2 + loc );
    mv.visitTypeInsn( Opcodes.NEW, "org/formulacompiler/runtime/internal/spreadsheet/CellInfoImpl" );
    mv.visitInsn( Opcodes.DUP );
    mv.visitVarInsn( Opcodes.ALOAD, 2 + loc );
    mv.push( _e );
    mv.visitMethodInsn( Opcodes.INVOKESPECIAL, "org/formulacompiler/runtime/internal/spreadsheet/CellInfoImpl", "<init>", "(Lorg/formulacompiler/runtime/spreadsheet/CellAddress;Ljava/lang/String;)V" );
    mv.visitVarInsn( Opcodes.ASTORE, 3 + loc );
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.