Package org.objectweb.asm.commons

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


    mg.invokeConstructor(Type.getType("Lorg/eclipse/swt/widgets/Control;"),
        Method.getMethod("org.eclipse.swt.graphics.Color getForeground ()"));
    mg.returnValue();
   
    mg.mark(LABEL_SKIP_CALL_TO_SUPER);
    mg.iinc(2, 1);
   
    mg.mark(LABEL_LOOP_CMP);
    mg.loadLocal(2);
    mg.loadLocal(1);
    mg.arrayLength();
View Full Code Here


      mv.arrayLoad( sub.classType() );
      mv.visitMethodInsn( Opcodes.INVOKEVIRTUAL, ARRAYLIST_CLASS.getInternalName(), "add", "(Ljava/lang/Object;)Z" );
      mv.pop();

      // } // for
      mv.iinc( l_i, 1 );
      mv.mark( test );
      mv.loadLocal( l_i );
      mv.loadLocal( l_len );
      mv.ifCmp( Type.INT_TYPE, mv.LT, again );
View Full Code Here

      throw new BytecodeException("there is no variable with name ["+operation+"] in the enviroment", getLine());
   
    GeneratorAdapter a = bc.getAdapter();
   
    if(operation.startsWith("pos")) a.loadLocal(var.intValue());
    if("preDecrement".equals(operation))a.iinc(var.intValue(), -1);
    else if("posDecrement".equals(operation))a.iinc(var.intValue(), -1);
    else if("preIncrement".equals(operation))a.iinc(var.intValue(), 1);
    else if("posIncrement".equals(operation))a.iinc(var.intValue(), 1);
    if(operation.startsWith("pre")) a.loadLocal(var.intValue());
   
View Full Code Here

   
    GeneratorAdapter a = bc.getAdapter();
   
    if(operation.startsWith("pos")) a.loadLocal(var.intValue());
    if("preDecrement".equals(operation))a.iinc(var.intValue(), -1);
    else if("posDecrement".equals(operation))a.iinc(var.intValue(), -1);
    else if("preIncrement".equals(operation))a.iinc(var.intValue(), 1);
    else if("posIncrement".equals(operation))a.iinc(var.intValue(), 1);
    if(operation.startsWith("pre")) a.loadLocal(var.intValue());
   
    return a.getLocalType(var.intValue());
View Full Code Here

    GeneratorAdapter a = bc.getAdapter();
   
    if(operation.startsWith("pos")) a.loadLocal(var.intValue());
    if("preDecrement".equals(operation))a.iinc(var.intValue(), -1);
    else if("posDecrement".equals(operation))a.iinc(var.intValue(), -1);
    else if("preIncrement".equals(operation))a.iinc(var.intValue(), 1);
    else if("posIncrement".equals(operation))a.iinc(var.intValue(), 1);
    if(operation.startsWith("pre")) a.loadLocal(var.intValue());
   
    return a.getLocalType(var.intValue());
  }
View Full Code Here

   
    if(operation.startsWith("pos")) a.loadLocal(var.intValue());
    if("preDecrement".equals(operation))a.iinc(var.intValue(), -1);
    else if("posDecrement".equals(operation))a.iinc(var.intValue(), -1);
    else if("preIncrement".equals(operation))a.iinc(var.intValue(), 1);
    else if("posIncrement".equals(operation))a.iinc(var.intValue(), 1);
    if(operation.startsWith("pre")) a.loadLocal(var.intValue());
   
    return a.getLocalType(var.intValue());
  }
View Full Code Here

       
      whileVisitor.visitAfterExpressionBeforeBody(bc);
        //if(++count < startLine) continue;
        DecisionIntVisitor dv2=new DecisionIntVisitor();
        dv2.visitBegin();
          adapter.iinc(count, 1);
          adapter.loadLocal(count);
        dv2.visitLT();
          adapter.loadLocal(startline);
        dv2.visitEnd(bc);
        Label end=new Label();
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.