Package org.objectweb.asm.commons

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


        mv.visitVarInsn(ALOAD, 0);
        mv.visitFieldInsn(GETFIELD, m_owner, IM_FIELD, "Lorg/apache/felix/ipojo/InstanceManager;");
        mv.visitVarInsn(ALOAD, 0);
        mv.visitLdcInsn(generateMethodId(name, desc));
        mv.visitVarInsn(ALOAD, exception);
        mv.visitMethodInsn(INVOKEVIRTUAL, "org/apache/felix/ipojo/InstanceManager", ERROR,
                "(Ljava/lang/Object;Ljava/lang/String;Ljava/lang/Throwable;)V", false);
        mv.visitVarInsn(ALOAD, exception);
        mv.visitInsn(ATHROW);

        mv.visitLabel(l7);
View Full Code Here


    mv.visitLabel( l_0 );
    mv.visitInsn( Opcodes.ICONST_0 );
    mv.visitLabel( l_1 );
    compile_context();
    compile_computationMode();
    mv.visitMethodInsn( Opcodes.INVOKESTATIC, "org/formulacompiler/runtime/internal/RuntimeLong_v2", "fun_DAYS360", "(JJZLorg/formulacompiler/runtime/internal/RuntimeLong_v2$Context;Lorg/formulacompiler/runtime/ComputationMode;)J" );
  }

  private final void compile_fun_MONTH( ExpressionNode _a ) throws CompilerException
  {
    final GeneratorAdapter mv = mv();
View Full Code Here

    final GeneratorAdapter mv = mv();
    final int loc = localsOffset();
    compile( _a );
    compile_context();
    compile_computationMode();
    mv.visitMethodInsn( Opcodes.INVOKESTATIC, "org/formulacompiler/runtime/internal/RuntimeLong_v2", "fun_MONTH", "(JLorg/formulacompiler/runtime/internal/RuntimeLong_v2$Context;Lorg/formulacompiler/runtime/ComputationMode;)J" );
  }

  private final void compile_fun_YEAR( ExpressionNode _a ) throws CompilerException
  {
    final GeneratorAdapter mv = mv();
View Full Code Here

    final GeneratorAdapter mv = mv();
    final int loc = localsOffset();
    compile( _a );
    compile_context();
    compile_computationMode();
    mv.visitMethodInsn( Opcodes.INVOKESTATIC, "org/formulacompiler/runtime/internal/RuntimeLong_v2", "fun_YEAR", "(JLorg/formulacompiler/runtime/internal/RuntimeLong_v2$Context;Lorg/formulacompiler/runtime/ComputationMode;)J" );
  }

  private final void compile_fun_NOW() throws CompilerException
  {
    final GeneratorAdapter mv = mv();
View Full Code Here

    final int loc = localsOffset();
    compile_context();
    compile_environment();
    compile_computationTime();
    compile_computationMode();
    mv.visitMethodInsn( Opcodes.INVOKESTATIC, "org/formulacompiler/runtime/internal/RuntimeLong_v2", "fun_NOW", "(Lorg/formulacompiler/runtime/internal/RuntimeLong_v2$Context;Lorg/formulacompiler/runtime/internal/Environment;Lorg/formulacompiler/runtime/internal/ComputationTime;Lorg/formulacompiler/runtime/ComputationMode;)J" );
  }

  private final void compile_fun_TODAY() throws CompilerException
  {
    final GeneratorAdapter mv = mv();
View Full Code Here

    final int loc = localsOffset();
    compile_context();
    compile_environment();
    compile_computationTime();
    compile_computationMode();
    mv.visitMethodInsn( Opcodes.INVOKESTATIC, "org/formulacompiler/runtime/internal/RuntimeLong_v2", "fun_TODAY", "(Lorg/formulacompiler/runtime/internal/RuntimeLong_v2$Context;Lorg/formulacompiler/runtime/internal/Environment;Lorg/formulacompiler/runtime/internal/ComputationTime;Lorg/formulacompiler/runtime/ComputationMode;)J" );
  }

  private final void compile_fun_VALUE( ExpressionNode _a ) throws CompilerException
  {
    final GeneratorAdapter mv = mv();
View Full Code Here

    final ExpressionCompilerForStrings str = method().stringCompiler();
    str.compile( _a );
    compile_context();
    compile_environment();
    compile_computationMode();
    mv.visitMethodInsn( Opcodes.INVOKESTATIC, "org/formulacompiler/runtime/internal/RuntimeLong_v2", "fun_VALUE", "(Ljava/lang/String;Lorg/formulacompiler/runtime/internal/RuntimeLong_v2$Context;Lorg/formulacompiler/runtime/internal/Environment;Lorg/formulacompiler/runtime/ComputationMode;)J" );
  }

  private final void compile_fun_DATEVALUE( ExpressionNode _a ) throws CompilerException
  {
    final GeneratorAdapter mv = mv();
View Full Code Here

    final ExpressionCompilerForStrings str = method().stringCompiler();
    str.compile( _a );
    compile_context();
    compile_environment();
    compile_computationMode();
    mv.visitMethodInsn( Opcodes.INVOKESTATIC, "org/formulacompiler/runtime/internal/RuntimeLong_v2", "fun_DATEVALUE", "(Ljava/lang/String;Lorg/formulacompiler/runtime/internal/RuntimeLong_v2$Context;Lorg/formulacompiler/runtime/internal/Environment;Lorg/formulacompiler/runtime/ComputationMode;)J" );
  }

  private final void compile_fun_TIMEVALUE( ExpressionNode _a ) throws CompilerException
  {
    final GeneratorAdapter mv = mv();
View Full Code Here

    final ExpressionCompilerForStrings str = method().stringCompiler();
    str.compile( _a );
    compile_context();
    compile_environment();
    compile_computationMode();
    mv.visitMethodInsn( Opcodes.INVOKESTATIC, "org/formulacompiler/runtime/internal/RuntimeLong_v2", "fun_TIMEVALUE", "(Ljava/lang/String;Lorg/formulacompiler/runtime/internal/RuntimeLong_v2$Context;Lorg/formulacompiler/runtime/internal/Environment;Lorg/formulacompiler/runtime/ComputationMode;)J" );
  }

  @Override
  protected void compileOperatorWithFirstArgOnStack( Operator _operator, ExpressionNode _secondArg ) throws CompilerException
  {
View Full Code Here

  {
    final GeneratorAdapter mv = mv();
    final int loc = localsOffset();
    mv.push( _b );
    compile_context();
    mv.visitMethodInsn( Opcodes.INVOKESTATIC, "org/formulacompiler/runtime/internal/RuntimeLong_v2", "round", "(JILorg/formulacompiler/runtime/internal/RuntimeLong_v2$Context;)J" );
  }

  protected final void compile_util_scaleUp( long _b ) throws CompilerException
  {
    final GeneratorAdapter mv = mv();
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.