Package org.objectweb.asm.commons

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


          adapter.loadArg(0);
          adapter.loadLocal(count);
          adapter.cast(Types.INT_VALUE,Types.DOUBLE_VALUE);
          adapter.invokeStatic(Types.CASTER, Methods.METHOD_TO_DOUBLE_FROM_DOUBLE);
         
          adapter.invokeVirtual(Types.VARIABLE_REFERENCE, SET);
          adapter.pop();
         
          // item.set(pc,line);
          adapter.loadLocal(item);
          adapter.loadArg(0);
View Full Code Here


    //query.go(ni.current(),pc.getId())
    resetCurrentrow(adapter,tag,current);
   
    // ni.first();
    adapter.loadLocal(tag.getNumberIterator());
    adapter.invokeVirtual(NUMBER_ITERATOR, FIRST);
    adapter.pop();
   

    if(isOutput)pbv.visitEnd(bc);
  }
View Full Code Here

    tag.setQuery(parent.getQuery());
    //queryImpl = parent.getQueryImpl();
   
    int current=adapter.newLocal(Types.INT_VALUE);
    adapter.loadLocal(tag.getNumberIterator());
    adapter.invokeVirtual(NUMBER_ITERATOR, CURRENT);
    adapter.storeLocal(current);
   
   
    // inner current
    int icurrent=adapter.newLocal(Types.INT_VALUE);
View Full Code Here

      //while(ni.isValid()) {
      adapter.loadLocal(tag.getNumberIterator());
      adapter.loadLocal(icurrent);
      adapter.push(1);
      adapter.visitInsn(Opcodes.IADD);
      adapter.invokeVirtual(NUMBER_ITERATOR, IS_VALID_1);
     
    wv.visitAfterExpressionBeforeBody(bc);
   
      // if(!query.go(ni.current()))break;
     
View Full Code Here

   
      // if(!query.go(ni.current()))break;
     
      adapter.loadLocal(tag.getQuery());
      adapter.loadLocal(tag.getNumberIterator());
      adapter.invokeVirtual(NUMBER_ITERATOR, CURRENT);
     
      adapter.loadArg(0);
      adapter.invokeVirtual(Types.PAGE_CONTEXT, GET_ID);
      adapter.invokeInterface(Types.QUERY, TagLoop.GO);
     
View Full Code Here

      adapter.loadLocal(tag.getQuery());
      adapter.loadLocal(tag.getNumberIterator());
      adapter.invokeVirtual(NUMBER_ITERATOR, CURRENT);
     
      adapter.loadArg(0);
      adapter.invokeVirtual(Types.PAGE_CONTEXT, GET_ID);
      adapter.invokeInterface(Types.QUERY, TagLoop.GO);
     
      /*OLD
      adapter.invokeInterface(Types.QUERY, TagLoop.GO_1);
      */
 
View Full Code Here

        wv.visitBreak(bc);
      adapter.visitLabel(_if);
   
      // current=ni.current();
      adapter.loadLocal(tag.getNumberIterator());
      adapter.invokeVirtual(NUMBER_ITERATOR, CURRENT);
      adapter.storeLocal(icurrent);
     
      tag.getBody().writeOut(bc);
     
      // ni.setCurrent(current+1);
View Full Code Here

    resetCurrentrow(adapter,tag,current);
   
   
    // ni.first();
    adapter.loadLocal(tag.getNumberIterator());
    adapter.invokeVirtual(NUMBER_ITERATOR, FIRST);
    adapter.pop();
  }
 
  public static void writeOutTypeInnerQuery(TagGroup tag,BytecodeContext bc) throws BytecodeException {
    GeneratorAdapter adapter = bc.getAdapter();
View Full Code Here

    //queryImpl = parent.getQueryImpl();
   
    //int currentOuter=ni.current();
    int current=adapter.newLocal(Types.INT_VALUE);
    adapter.loadLocal(tag.getNumberIterator());
    adapter.invokeVirtual(NUMBER_ITERATOR, CURRENT);
    adapter.storeLocal(current);
   
    // current
    int icurrent=adapter.newLocal(Types.INT_VALUE);
   
View Full Code Here

      //while(ni.isValid()) {
      adapter.loadLocal(tag.getNumberIterator());
      adapter.loadLocal(icurrent);
      adapter.push(1);
      adapter.visitInsn(Opcodes.IADD);
      adapter.invokeVirtual(NUMBER_ITERATOR, IS_VALID_1);
     
    wv.visitAfterExpressionBeforeBody(bc);
   
      // if(!query.go(ni.current()))break;
      adapter.loadLocal(tag.getQuery());
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.