Package org.objectweb.asm.commons

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


    mg.iinc(2, 1);
   
    mg.mark(LABEL_LOOP_CMP);
    mg.loadLocal(2);
    mg.loadLocal(1);
    mg.arrayLength();
    mg.ifICmp(GeneratorAdapter.LT, LABEL_LOOP_START);
   
    mg.loadThis();
    mg.invokeVirtual(Type.getType("Lorg/eclipse/swt/custom/CLabel;"),
        Method.getMethod("org.eclipse.swt.widgets.Display getDisplay ()"));
View Full Code Here


      final int l_arr = mv.newLocal( sub.arrayType() );
      mv.storeLocal( l_arr );

      final int l_len = mv.newLocal( Type.INT_TYPE );
      mv.loadLocal( l_arr );
      mv.arrayLength();
      mv.storeLocal( l_len );

      // List lst = new ArrayList( arr.length );
      final int l_lst = mv.newLocal( ARRAYLIST_CLASS );
      mv.newInstance( ARRAYLIST_CLASS );
View Full Code Here

    final int[] cnts = _node.subSectionStaticValueCounts();
    for (int i = 0; i < subs.length; i++) {
      SubSectionCompiler sub = sectionInContext().subSectionCompiler( subs[ i ] );
      mv.visitVarInsn( Opcodes.ALOAD, method().objectInContext() );
      sectionInContext().compileCallToGetterFor( mv, sub );
      mv.arrayLength();
      if (cnts[ i ] != 1) {
        mv.push( cnts[ i ] );
        mv.visitInsn( Opcodes.IMUL );
      }
      mv.visitInsn( Opcodes.IADD );
View Full Code Here

        dv.visitBegin();
          if(attr!=null) {
            // IOUtil.read(bufferedreader,12)
            adapter.loadLocal(br);
            adapter.loadLocal(carr);
            adapter.arrayLength();
            adapter.invokeStatic(Types.IOUTIL, READ);
          }
          else {
            // br.readLine()
            adapter.loadLocal(br);
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.