Package org.objectweb.asm.commons

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


        adapter.loadLocal(index);
        adapter.loadArg(0);
        adapter.visitVarInsn(Opcodes.ILOAD, i);
        adapter.cast(Types.INT_VALUE,Types.DOUBLE_VALUE);
              adapter.invokeStatic(Types.CASTER,Methods_Caster.TO_DOUBLE[Methods_Caster.DOUBLE]);
              adapter.invokeVirtual(Types.VARIABLE_REFERENCE, SET);
        adapter.pop();
      }
     
     
      getBody().writeOut(bc);
View Full Code Here


       

          // PageExceptionImpl old=pc.getCatch();
          int old=adapter.newLocal(Types.PAGE_EXCEPTION);
          adapter.loadArg(0);
          adapter.invokeVirtual(Types.PAGE_CONTEXT, GET_CATCH);
      adapter.storeLocal(old);
     
          // PageException pe=Caster.toPageEception(e);
          int pe=adapter.newLocal(Types.PAGE_EXCEPTION);
          adapter.loadLocal(e);
View Full Code Here

        ExpressionUtil.visitLine(bc, tag.getStart());
       
        // if(pe.typeEqual(@type)
        adapter.loadLocal(pe);
        type.writeOut(bc, Expression.MODE_REF);
        adapter.invokeVirtual(Types.PAGE_EXCEPTION, TYPE_EQUAL);
       
        adapter.ifZCmp(Opcodes.IFEQ, endIf);
          catchBody(bc,adapter,tag,pe,true,true);
         
              adapter.visitJumpInsn(Opcodes.GOTO, endAllIfs);
View Full Code Here

        // pc.setCatch(pe,true);
        adapter.loadArg(0);
            adapter.loadLocal(pe);
            adapter.push(false);
            adapter.push(true);
            adapter.invokeVirtual(Types.PAGE_CONTEXT, SET_CATCH3);
       
        //throw pe;
        adapter.loadLocal(pe);
        adapter.throwException();
      }
View Full Code Here

     
   
    // PageExceptionImpl old=pc.getCatch();
        adapter.loadArg(0);
        adapter.loadLocal(old);
        adapter.invokeVirtual(Types.PAGE_CONTEXT, SET_CATCH_PE);
     
    tcfv.visitCatchEnd(bc);
  }
 
View Full Code Here

        adapter.loadLocal(index);
        adapter.loadArg(0);
        adapter.loadLocal(entry);
        adapter.invokeInterface(Types.MAP_ENTRY, GET_KEY);
        adapter.invokeStatic(Types.CASTER,Methods.METHOD_TO_STRING);
        adapter.invokeVirtual(Types.VARIABLE_REFERENCE, SET);
        adapter.pop();

        // valueRef.set(pc,entry.getKey())
        adapter.loadLocal(item);
        adapter.loadArg(0);
View Full Code Here

        // valueRef.set(pc,entry.getKey())
        adapter.loadLocal(item);
        adapter.loadArg(0);
        adapter.loadLocal(entry);
        adapter.invokeInterface(Types.MAP_ENTRY, GET_VALUE);
        adapter.invokeVirtual(Types.VARIABLE_REFERENCE, SET);
        adapter.pop();
   
      }
      else {
        if(index==-1) adapter.loadLocal(item);
View Full Code Here

       
        adapter.loadArg(0);
        adapter.loadLocal(it);
        adapter.invokeInterface(Types.ITERATOR, NEXT);
       
        adapter.invokeVirtual(Types.VARIABLE_REFERENCE, SET);
        adapter.pop();
      }
     
     
     
View Full Code Here

    adapter.invokeStatic(RESOURCE_UTIL, TO_RESOURCE_EXISTING);
    adapter.storeLocal(resource);
   
    // pc.getConfig().getSecurityManager().checkFileLocation(resource);
    adapter.loadArg(0);
    adapter.invokeVirtual(Types.PAGE_CONTEXT, GET_CONFIG);
    adapter.invokeInterface(Types.CONFIG_WEB, GET_SECURITY_MANAGER);
    adapter.loadLocal(resource);
    adapter.invokeInterface(Types.SECURITY_MANAGER, CHECK_FILE_LOCATION);
   
    // char[] carr=new char[characters];
View Full Code Here

            adapter.invokeStatic(Types.IOUTIL, READ);
          }
          else {
            // br.readLine()
            adapter.loadLocal(br);
            adapter.invokeVirtual(Types.BUFFERED_READER, READ_LINE);
          }
          adapter.dup();
          adapter.storeLocal(line);
         
        dv.visitNEQ();
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.