Package org.objectweb.asm.commons

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


    compileInputGetterCall( inputCall );
    mv.storeLocal( l_ds );

    // ~ if (ds != null) {
    final Label isNull = mv.newLabel();
    mv.loadLocal( l_ds );
    mv.ifNull( isNull );

    int l_di;
    if (inputContainerClass.isArray()) {
      l_di = compileInitFromArray( sub, mv, l_ds );
View Full Code Here


    else if (Collection.class.isAssignableFrom( inputContainerClass )) {
      l_di = compileInitFromCollection( sub, mv, l_ds );
    }
    else if (Iterable.class.isAssignableFrom( inputContainerClass )) {
      final int l_it = mv.newLocal( ITERATOR_INTF );
      mv.loadLocal( l_ds );
      mv.visitMethodInsn( Opcodes.INVOKEINTERFACE, ITERABLE_INTF.getInternalName(), "iterator", "()"
          + ITERATOR_INTF.getDescriptor() );
      mv.storeLocal( l_it );
      l_di = compileInitFromIterator( sub, mv, l_it );
    }
View Full Code Here

          + inputCall.getMethod() + "' is not supported as input to a repeating section." );
    }

    // ~ ~ this.field = di;
    mv.loadThis();
    mv.loadLocal( l_di );
    mv.putField( section().classType(), sub.getterName(), sub.arrayType() );

    // ~ } else {
    mv.goTo( alreadySet );
    mv.mark( isNull );
View Full Code Here

    mg.mark(endTry);
    mg.returnValue();
    mg.mark(catchHandle);
    int exception = mg.newLocal(Type.getType(IllegalAccessException.class));
    mg.storeLocal(exception);
    mg.loadLocal(exception);
    mg.invokeStatic(Type.getType(Throwables.class),
                    getMethod(RuntimeException.class, "propagate", Throwable.class));
    mg.throwException();
    mg.endMethod();
View Full Code Here

   
    ExpressionUtil.visitLine(bc, startline);
    adapter.visitLabel(l2);
    adapter.visitVarInsn(ILOAD, i);
   
    if(isLocal)adapter.loadLocal(end);
    else adapter.push(end);
    adapter.visitJumpInsn(IF_ICMPLE, l3);
   
    adapter.visitLabel(lend);
View Full Code Here

    Label l8 = new Label();
    ga.visitLabel(l8);

    onFinally.writeOut(bc);
   
    ga.loadLocal(lThrow);
    ga.visitInsn(ATHROW);
    ga.visitLabel(l5);

    onFinally.writeOut(bc);
    if(fcf!=null && fcf.getAfterFinalGOTOLabel()!=null) {
View Full Code Here

      ExpressionUtil.visitLine(bc, right.getStart());
      right.writeOut(bc, MODE_REF);
      ExpressionUtil.visitLine(bc, right.getEnd());
      ga.visitJumpInsn(Opcodes.GOTO, end);
      ga.visitLabel(notNull);
      ga.loadLocal(l);
      ga.visitLabel(end);
     
      return Types.OBJECT;
    }
   
View Full Code Here

    lThrow = ga.newLocal(Types.THROWABLE);
    ga.storeLocal(lThrow);
   
    onFinally.writeOut(bc);
   
    ga.loadLocal(lThrow);
    ga.visitInsn(ATHROW);
   
    ga.visitLabel(beforeFinally);
   
    onFinally.writeOut(bc);
View Full Code Here

   
    adapter.visitLabel(lbegin);
    if(isLocal) {
      adapter.visitVarInsn(ILOAD, i);
      //adapter.loadLocal(i);
      adapter.loadLocal(step);
      adapter.visitInsn(IADD);
      //adapter.dup();
      adapter.visitVarInsn(ISTORE, i);
     
    }
View Full Code Here

      public void writeOut(BytecodeContext bc) {

        // undefined.setMode(oldMode);
        adapter.loadArg(0);
        adapter.invokeVirtual(Types.PAGE_CONTEXT, UNDEFINED_SCOPE);
        adapter.loadLocal(oldCheckArgs,Types.INT_VALUE);
        adapter.invokeInterface(Types.UNDEFINED, SET_MODE);
        adapter.pop();
       
          // c.afterCall(pc,_oldData);
          adapter.loadArg(1);
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.