Package org.objectweb.asm.commons

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


        adapter.invokeStatic(NUMBER_ITERATOR, LOAD_END);
      }
      else {
        adapter.invokeStatic(NUMBER_ITERATOR, LOAD_2);
      }
      adapter.storeLocal(tag.getNumberIterator());
     
      // Group
      Attribute attrGroup = tag.getAttribute("group");
      Attribute attrGroupCS = tag.getAttribute("groupcasesensitive");
      tag.setGroup(adapter.newLocal(Types.STRING));
View Full Code Here


      Attribute attrGroupCS = tag.getAttribute("groupcasesensitive");
      tag.setGroup(adapter.newLocal(Types.STRING));
      final int groupCaseSensitive=adapter.newLocal(Types.BOOLEAN_VALUE);
      if(attrGroup!=null)  {
        attrGroup.getValue().writeOut(bc, Expression.MODE_REF);
        adapter.storeLocal(tag.getGroup());
       
        if(attrGroupCS!=nullattrGroupCS.getValue().writeOut(bc, Expression.MODE_VALUE);
        else           adapter.push(false);
        adapter.storeLocal(groupCaseSensitive);
      }
View Full Code Here

        attrGroup.getValue().writeOut(bc, Expression.MODE_REF);
        adapter.storeLocal(tag.getGroup());
       
        if(attrGroupCS!=nullattrGroupCS.getValue().writeOut(bc, Expression.MODE_VALUE);
        else           adapter.push(false);
        adapter.storeLocal(groupCaseSensitive);
      }
     
      // pc.us().addQuery(query);
      adapter.loadArg(0);
      adapter.invokeVirtual(Types.PAGE_CONTEXT, US);
View Full Code Here

      // current
      final int current=adapter.newLocal(Types.INT_VALUE);
      adapter.loadLocal(from);
      adapter.push(1);
      adapter.visitInsn(Opcodes.ISUB);
      adapter.storeLocal(current);
     
     
      // Try
      TryFinallyVisitor tfv=new TryFinallyVisitor(new OnFinally() {
        public void writeOut(BytecodeContext bc) {
View Full Code Here

         
          if(attrGroup!=null) {
            // NumberIterator oldNi=numberIterator;
            int oldNi=adapter.newLocal(NUMBER_ITERATOR);
            adapter.loadLocal(tag.getNumberIterator());
            adapter.storeLocal(oldNi);
           
            // numberIterator=NumberIterator.load(ni,query,group,grp_case);
            adapter.loadArg(0);
            adapter.loadLocal(tag.getNumberIterator());
            adapter.loadLocal(tag.getQuery());
View Full Code Here

            adapter.loadLocal(tag.getNumberIterator());
            adapter.loadLocal(tag.getQuery());
            adapter.loadLocal(tag.getGroup());
            adapter.loadLocal(groupCaseSensitive);
            adapter.invokeStatic(NUMBER_ITERATOR, LOAD_5);
            adapter.storeLocal(tag.getNumberIterator());
           
            // current=oldNi.current();
            adapter.loadLocal(oldNi);
            adapter.invokeVirtual(NUMBER_ITERATOR, CURRENT);
            adapter.storeLocal(current);
View Full Code Here

            adapter.storeLocal(tag.getNumberIterator());
           
            // current=oldNi.current();
            adapter.loadLocal(oldNi);
            adapter.invokeVirtual(NUMBER_ITERATOR, CURRENT);
            adapter.storeLocal(current);
           
            tag.getBody().writeOut(bc);
           
            //tmp(adapter,current);
           
View Full Code Here

            adapter.loadLocal(tag.getNumberIterator());
            adapter.invokeStatic(NUMBER_ITERATOR, REALEASE);
           
            // numberIterator=oldNi;
            adapter.loadLocal(oldNi);
            adapter.storeLocal(tag.getNumberIterator());
          }
          else {
            // current=ni.current();
            adapter.loadLocal(tag.getNumberIterator());
            adapter.invokeVirtual(NUMBER_ITERATOR, CURRENT);
View Full Code Here

          }
          else {
            // current=ni.current();
            adapter.loadLocal(tag.getNumberIterator());
            adapter.invokeVirtual(NUMBER_ITERATOR, CURRENT);
            adapter.storeLocal(current);
           
            tag.getBody().writeOut(bc);
          }

          // ni.setCurrent(current+1);
View Full Code Here

   
    // Group
    Attribute attrGroup = tag.getAttribute("group");
    tag.setGroup(adapter.newLocal(Types.STRING));
    attrGroup.getValue().writeOut(bc, Expression.MODE_REF);
    adapter.storeLocal(tag.getGroup());
   
    // Group Case Sensitve
    Attribute attrGroupCS = tag.getAttribute("groupcasesensitive");
    int groupCaseSensitive=adapter.newLocal(Types.BOOLEAN_VALUE);
    if(attrGroupCS!=nullattrGroupCS.getValue().writeOut(bc, Expression.MODE_VALUE);
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.