Package org.objectweb.asm.commons

Examples of org.objectweb.asm.commons.GeneratorAdapter


  protected final void compileSubSectionTraversal( final ExpressionNodeForSubSectionModel _sub,
      final SubSectionTraversal _traversal ) throws CompilerException
  {
    final SubSectionCompiler subSection = sectionInContext().subSectionCompiler( _sub.getSectionModel() );
    final GeneratorAdapter mv = mv();
    mv.visitVarInsn( Opcodes.ALOAD, objectInContext() );
    sectionInContext().compileCallToGetterFor( mv, subSection );
    expressionCompiler().compile_scanArray( new ExpressionCompiler.ForEachElementCompilation()
    {

      public void compile( int _xi ) throws CompilerException
View Full Code Here


    super( _methodCompiler, _numericType );
  }

  private final void compile_fun_CODE( ExpressionNode _a ) throws CompilerException
  {
    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();
  }
View Full Code Here

    compileConversionFromInt();
  }

  private final void compile_fun_LEN( ExpressionNode _a ) throws CompilerException
  {
    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();
  }
View Full Code Here

    compileConversionFromInt();
  }

  private final void compile_fun_EXACT( ExpressionNode _a, ExpressionNode _b ) throws CompilerException
  {
    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 );
  }
View Full Code Here

    compileConversionFrom( Boolean.TYPE );
  }

  private final void compile_fun_SEARCH( ExpressionNode _a, ExpressionNode _b ) throws CompilerException
  {
    final GeneratorAdapter mv = mv();
    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();
  }
View Full Code Here

    compileConversionFromInt();
  }

  private final void compile_fun_SEARCH( ExpressionNode _a, ExpressionNode _b, ExpressionNode _c ) throws CompilerException
  {
    final GeneratorAdapter mv = mv();
    final int loc = localsOffset();
    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();
  }
View Full Code Here

    compileConversionFromInt();
  }

  private final void compile_fun_FIND( ExpressionNode _a, ExpressionNode _b ) throws CompilerException
  {
    final GeneratorAdapter mv = mv();
    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_FIND", "(Ljava/lang/String;Ljava/lang/String;I)I" );
    compileConversionFromInt();
  }
View Full Code Here

    compileConversionFromInt();
  }

  private final void compile_fun_FIND( ExpressionNode _a, ExpressionNode _b, ExpressionNode _c ) throws CompilerException
  {
    final GeneratorAdapter mv = mv();
    final int loc = localsOffset();
    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_FIND", "(Ljava/lang/String;Ljava/lang/String;I)I" );
    compileConversionFromInt();
  }
View Full Code Here

    compileConversionFromInt();
  }

  private final void compile_fun_ERROR( ExpressionNode _a ) throws CompilerException
  {
    final GeneratorAdapter mv = mv();
    final int loc = localsOffset();
    final ExpressionCompilerForStrings str = method().stringCompiler();
    str.compile( _a );
    mv.visitMethodInsn( Opcodes.INVOKESTATIC, "org/formulacompiler/runtime/internal/Runtime_v2", "fun_ERROR", "(Ljava/lang/String;)V" );
    mv.visitInsn( Opcodes.ICONST_M1 );
    compileConversionFromInt();
  }
View Full Code Here

    compileConversionFromInt();
  }

  private final void compile_fun_NA() throws CompilerException
  {
    final GeneratorAdapter mv = mv();
    final int loc = localsOffset();
    mv.visitMethodInsn( Opcodes.INVOKESTATIC, "org/formulacompiler/runtime/internal/Runtime_v2", "fun_NA", "()V" );
    mv.visitInsn( Opcodes.ICONST_M1 );
    compileConversionFromInt();
  }
View Full Code Here

TOP

Related Classes of org.objectweb.asm.commons.GeneratorAdapter

Copyright © 2018 www.massapicom. 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.