Package org.objectweb.asm.commons

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


          LitBoolean.TRUE.writeOut(bc, Expression.MODE_VALUE);
        }
        else {
          adapter.loadLocal(pe);
          ct.type.writeOut(bc, Expression.MODE_REF);
          adapter.invokeVirtual(Types.PAGE_EXCEPTION, TYPE_EQUAL);
        }
       
       
       
View Full Code Here


        GeneratorAdapter adapter = bc.getAdapter();
        adapter.loadArg(0);
          //adapter.checkCast(Types.PAGE_CONTEXT_IMPL);
          adapter.push(pos.pos);
          adapter.push(id);
        adapter.invokeVirtual(Types.PAGE_CONTEXT, method);
    }
    catch(Throwable t) {
      t.printStackTrace();
    }   
  }
View Full Code Here

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

      adapter.visitLabel(endAllIf);
     
        // PageExceptionImpl old=pc.setCatch(old);
            adapter.loadArg(0);
            adapter.loadLocal(old);
            adapter.invokeVirtual(Types.PAGE_CONTEXT, TagTry.SET_CATCH_PE);
     
  }

  private static void catchBody(BytecodeContext bc, GeneratorAdapter adapter, Catch ct, int pe, int lRef,boolean caugth,boolean store) throws BytecodeException {
    // pc.setCatch(pe,true);
View Full Code Here

         
          // item.set(pc,line);
          adapter.loadLocal(item);
          adapter.loadArg(0);
          adapter.loadLocal(line);
          adapter.invokeVirtual(Types.VARIABLE_REFERENCE, SET);
          adapter.pop();
         
        }
        // only index
        else if(index!=-1) {
View Full Code Here

        else if(index!=-1) {
          // index.set(pc,line);
          adapter.loadLocal(index);
          adapter.loadArg(0);
          adapter.loadLocal(line);
          adapter.invokeVirtual(Types.VARIABLE_REFERENCE, SET);
          adapter.pop();
         
        }
        // only item
        else {
View Full Code Here

        else {
          // item.set(pc,line);
          adapter.loadLocal(item);
          adapter.loadArg(0);
          adapter.loadLocal(line);
          adapter.invokeVirtual(Types.VARIABLE_REFERENCE, SET);
          adapter.pop();
        }
       
       
       
View Full Code Here

     

      // index.set(from);
      adapter.loadLocal(index);
      adapter.loadLocal(from);
      adapter.invokeVirtual(Types.VARIABLE_REFERENCE, SET_DOUBLE);
     
      // for
       
      //int i=forConditionVisitor.visitBeforeExpression(adapter,from,step,true);
     
View Full Code Here

      adapter.visitInsn(Opcodes.DUP2);
      adapter.visitVarInsn(Opcodes.DSTORE, forDoubleVisitor.i);
     
     
     
      adapter.invokeVirtual(Types.VARIABLE_REFERENCE, SET_DOUBLE);
     
     
     
     
      // expression
View Full Code Here

          adapter.visitVarInsn(Opcodes.ILOAD, i);
          adapter.invokeInterface(Types.ARRAY, GETE);
         
       
      }
      adapter.invokeVirtual(Types.VARIABLE_REFERENCE, SET);
      adapter.pop();
     

      // key
      if(index!=-1 && item!=-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.