Package org.objectweb.asm.commons

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


  {
    final GeneratorAdapter mv = mv();
    final int loc = localsOffset();
    compile_context();
    compile_environment();
    mv.visitMethodInsn( Opcodes.INVOKEVIRTUAL, "org/formulacompiler/runtime/internal/Environment", "timeZone", "()Ljava/util/TimeZone;" );
    compile_computationMode();
    mv.visitMethodInsn( Opcodes.INVOKESTATIC, "org/formulacompiler/runtime/internal/RuntimeLong_v2", "msSinceUTC1970ToNum", "(JLorg/formulacompiler/runtime/internal/RuntimeLong_v2$Context;Ljava/util/TimeZone;Lorg/formulacompiler/runtime/ComputationMode;)J" );
  }

  protected final void compile_util_fromMs() throws CompilerException
View Full Code Here


    final int loc = localsOffset();
    compile_context();
    compile_environment();
    mv.visitMethodInsn( Opcodes.INVOKEVIRTUAL, "org/formulacompiler/runtime/internal/Environment", "timeZone", "()Ljava/util/TimeZone;" );
    compile_computationMode();
    mv.visitMethodInsn( Opcodes.INVOKESTATIC, "org/formulacompiler/runtime/internal/RuntimeLong_v2", "msSinceUTC1970ToNum", "(JLorg/formulacompiler/runtime/internal/RuntimeLong_v2$Context;Ljava/util/TimeZone;Lorg/formulacompiler/runtime/ComputationMode;)J" );
  }

  protected final void compile_util_fromMs() throws CompilerException
  {
    final GeneratorAdapter mv = mv();
View Full Code Here

  protected final void compile_util_fromMs() throws CompilerException
  {
    final GeneratorAdapter mv = mv();
    final int loc = localsOffset();
    compile_context();
    mv.visitMethodInsn( Opcodes.INVOKESTATIC, "org/formulacompiler/runtime/internal/RuntimeLong_v2", "msToNum", "(JLorg/formulacompiler/runtime/internal/RuntimeLong_v2$Context;)J" );
  }

  protected final void compile_util_toByte() throws CompilerException
  {
    final GeneratorAdapter mv = mv();
View Full Code Here

  protected final void compile_util_toDouble_Scaled() throws CompilerException
  {
    final GeneratorAdapter mv = mv();
    final int loc = localsOffset();
    compile_context();
    mv.visitMethodInsn( Opcodes.INVOKESTATIC, "org/formulacompiler/runtime/internal/RuntimeLong_v2", "toDouble", "(JLorg/formulacompiler/runtime/internal/RuntimeLong_v2$Context;)D" );
  }

  protected final void compile_util_toFloat() throws CompilerException
  {
    final GeneratorAdapter mv = mv();
View Full Code Here

  protected final void compile_util_toFloat_Scaled() throws CompilerException
  {
    final GeneratorAdapter mv = mv();
    final int loc = localsOffset();
    compile_context();
    mv.visitMethodInsn( Opcodes.INVOKESTATIC, "org/formulacompiler/runtime/internal/RuntimeLong_v2", "toDouble", "(JLorg/formulacompiler/runtime/internal/RuntimeLong_v2$Context;)D" );
    mv.visitInsn( Opcodes.D2F );
  }

  protected final void compile_util_toBigInteger() throws CompilerException
  {
View Full Code Here

  protected final void compile_util_toBigInteger() throws CompilerException
  {
    final GeneratorAdapter mv = mv();
    final int loc = localsOffset();
    mv.visitMethodInsn( Opcodes.INVOKESTATIC, "java/math/BigInteger", "valueOf", "(J)Ljava/math/BigInteger;" );
  }

  protected final void compile_util_toBigDecimal() throws CompilerException
  {
    final GeneratorAdapter mv = mv();
View Full Code Here

  protected final void compile_util_toBigDecimal() throws CompilerException
  {
    final GeneratorAdapter mv = mv();
    final int loc = localsOffset();
    mv.visitMethodInsn( Opcodes.INVOKESTATIC, "java/math/BigDecimal", "valueOf", "(J)Ljava/math/BigDecimal;" );
  }

  protected final void compile_util_toBigDecimal_Scaled() throws CompilerException
  {
    final GeneratorAdapter mv = mv();
View Full Code Here

  protected final void compile_util_toBigDecimal_Scaled() throws CompilerException
  {
    final GeneratorAdapter mv = mv();
    final int loc = localsOffset();
    compile_context();
    mv.visitMethodInsn( Opcodes.INVOKESTATIC, "org/formulacompiler/runtime/internal/RuntimeLong_v2", "toBigDecimal", "(JLorg/formulacompiler/runtime/internal/RuntimeLong_v2$Context;)Ljava/math/BigDecimal;" );
  }

  protected final void compile_util_toBoolean() throws CompilerException
  {
    final GeneratorAdapter mv = mv();
View Full Code Here

  {
    final GeneratorAdapter mv = mv();
    final int loc = localsOffset();
    compile_context();
    compile_environment();
    mv.visitMethodInsn( Opcodes.INVOKEVIRTUAL, "org/formulacompiler/runtime/internal/Environment", "timeZone", "()Ljava/util/TimeZone;" );
    compile_computationMode();
    mv.visitMethodInsn( Opcodes.INVOKESTATIC, "org/formulacompiler/runtime/internal/RuntimeLong_v2", "dateFromNum", "(JLorg/formulacompiler/runtime/internal/RuntimeLong_v2$Context;Ljava/util/TimeZone;Lorg/formulacompiler/runtime/ComputationMode;)Ljava/util/Date;" );
  }

  protected final void compile_util_toMsSinceUTC1970() throws CompilerException
View Full Code Here

    final int loc = localsOffset();
    compile_context();
    compile_environment();
    mv.visitMethodInsn( Opcodes.INVOKEVIRTUAL, "org/formulacompiler/runtime/internal/Environment", "timeZone", "()Ljava/util/TimeZone;" );
    compile_computationMode();
    mv.visitMethodInsn( Opcodes.INVOKESTATIC, "org/formulacompiler/runtime/internal/RuntimeLong_v2", "dateFromNum", "(JLorg/formulacompiler/runtime/internal/RuntimeLong_v2$Context;Ljava/util/TimeZone;Lorg/formulacompiler/runtime/ComputationMode;)Ljava/util/Date;" );
  }

  protected final void compile_util_toMsSinceUTC1970() 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.