Package org.objectweb.asm.commons

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


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

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


  {
    final GeneratorAdapter mv = mv();
    final int loc = localsOffset();
    mv.visitInsn( Opcodes.F2D );
    compile_context();
    mv.visitMethodInsn( Opcodes.INVOKESTATIC, "org/formulacompiler/runtime/internal/RuntimeLong_v2", "fromDouble", "(DLorg/formulacompiler/runtime/internal/RuntimeLong_v2$Context;)J" );
  }

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

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

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

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

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

    mv.visitJumpInsn( Opcodes.IFNONNULL, l_0 );
    mv.visitInsn( Opcodes.LCONST_0 );
    mv.visitJumpInsn( Opcodes.GOTO, l_1 );
    mv.visitLabel( l_0 );
    mv.visitVarInsn( Opcodes.ALOAD, 0 + loc );
    mv.visitMethodInsn( Opcodes.INVOKEVIRTUAL, "java/lang/Number", "longValue", "()J" );
    mv.visitLabel( l_1 );
  }

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

    final GeneratorAdapter mv = mv();
    final int loc = localsOffset();
    final ExpressionCompilerForStrings str = method().stringCompiler();
    str.compile( _a );
    compile_environment();
    mv.visitMethodInsn( Opcodes.INVOKESTATIC, "org/formulacompiler/runtime/internal/Runtime_v2", "fun_CODE", "(Ljava/lang/String;Lorg/formulacompiler/runtime/internal/Environment;)I" );
    compileConversionFromInt();
  }

  private final void compile_fun_LEN( ExpressionNode _a ) throws CompilerException
  {
View Full Code Here

  {
    final GeneratorAdapter mv = mv();
    final int loc = localsOffset();
    final ExpressionCompilerForStrings str = method().stringCompiler();
    str.compile( _a );
    mv.visitMethodInsn( Opcodes.INVOKEVIRTUAL, "java/lang/String", "length", "()I" );
    compileConversionFromInt();
  }

  private final void compile_fun_EXACT( ExpressionNode _a, ExpressionNode _b ) throws CompilerException
  {
View Full Code Here

    final GeneratorAdapter mv = mv();
    final int loc = localsOffset();
    final ExpressionCompilerForStrings str = method().stringCompiler();
    str.compile( _a );
    str.compile( _b );
    mv.visitMethodInsn( Opcodes.INVOKESTATIC, "org/formulacompiler/runtime/internal/Runtime_v2", "fun_EXACT", "(Ljava/lang/String;Ljava/lang/String;)Z" );
    compileConversionFrom( Boolean.TYPE );
  }

  private final void compile_fun_SEARCH( ExpressionNode _a, ExpressionNode _b ) throws CompilerException
  {
View Full Code Here

    final int loc = localsOffset();
    final ExpressionCompilerForStrings str = method().stringCompiler();
    str.compile( _a );
    str.compile( _b );
    mv.visitInsn( Opcodes.ICONST_1 );
    mv.visitMethodInsn( Opcodes.INVOKESTATIC, "org/formulacompiler/runtime/internal/Runtime_v2", "fun_SEARCH", "(Ljava/lang/String;Ljava/lang/String;I)I" );
    compileConversionFromInt();
  }

  private final void compile_fun_SEARCH( ExpressionNode _a, ExpressionNode _b, ExpressionNode _c ) throws CompilerException
  {
View Full Code Here

    final ExpressionCompilerForStrings str = method().stringCompiler();
    str.compile( _a );
    str.compile( _b );
    compile( _c );
    compileConversionTo( Integer.TYPE );
    mv.visitMethodInsn( Opcodes.INVOKESTATIC, "org/formulacompiler/runtime/internal/Runtime_v2", "fun_SEARCH", "(Ljava/lang/String;Ljava/lang/String;I)I" );
    compileConversionFromInt();
  }

  private final void compile_fun_FIND( ExpressionNode _a, ExpressionNode _b ) throws CompilerException
  {
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.