Package org.objectweb.asm.commons

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


    if(operation.startsWith("pos")) a.loadLocal(var.intValue());
    if("preDecrement".equals(operation))a.iinc(var.intValue(), -1);
    else if("posDecrement".equals(operation))a.iinc(var.intValue(), -1);
    else if("preIncrement".equals(operation))a.iinc(var.intValue(), 1);
    else if("posIncrement".equals(operation))a.iinc(var.intValue(), 1);
    if(operation.startsWith("pre")) a.loadLocal(var.intValue());
   
    return a.getLocalType(var.intValue());
  }

  public static Type result(Type left, Type right) {
View Full Code Here


   
   
    // initInterface(pc,c);
    adapter.visitVarInsn(Opcodes.ALOAD, 0);
    //adapter.loadArg(0);
    adapter.loadLocal(comp);
    adapter.invokeVirtual(Types.INTERFACE_PAGE, INIT_INTERFACE);
   
    adapter.visitLabel(methodEnd);
       
       
View Full Code Here

   
    adapter.visitLabel(methodEnd);
       
       
        // return interface;
        adapter.loadLocal(comp);

        adapter.returnValue();
      //ExpressionUtil.visitLine(adapter, interf.getEndLine());
        adapter.endMethod();
   
View Full Code Here

    if(attrs!=null) {
      _createMetaDataStruct(bc,adapter,sct,attrs);
    }
   
   
    adapter.loadLocal(sct);
  }

  private static void _createMetaDataStruct(BytecodeContext bc, GeneratorAdapter adapter, int sct, Map attrs) throws BytecodeException {
    Attribute attr;
    Iterator it = attrs.entrySet().iterator();
View Full Code Here

   
   
    //if (reference != null)
    //    reference.removeEL(pagecontext);
    Label removeEnd=new Label();
    adapter.loadLocal(lRef);
    adapter.ifNull(removeEnd);
      adapter.loadLocal(lRef);
      adapter.loadArg(0);
      adapter.invokeInterface(Types.REFERENCE, REMOVE_EL);
      adapter.pop();
View Full Code Here

    //if (reference != null)
    //    reference.removeEL(pagecontext);
    Label removeEnd=new Label();
    adapter.loadLocal(lRef);
    adapter.ifNull(removeEnd);
      adapter.loadLocal(lRef);
      adapter.loadArg(0);
      adapter.invokeInterface(Types.REFERENCE, REMOVE_EL);
      adapter.pop();
    adapter.visitLabel(removeEnd);
   
View Full Code Here

    int pe=adapter.newLocal(Types.PAGE_EXCEPTION);
   
   
    // instance of Abort
      Label abortEnd=new Label();
      adapter.loadLocal(lThrow);
      adapter.invokeStatic(Types.ABORT, TryCatchFinally.IS_ABORT);
      //adapter.instanceOf(Types.ABORT);
          adapter.ifZCmp(Opcodes.IFEQ, abortEnd);
          adapter.loadLocal(lThrow);
          adapter.throwException();
View Full Code Here

      Label abortEnd=new Label();
      adapter.loadLocal(lThrow);
      adapter.invokeStatic(Types.ABORT, TryCatchFinally.IS_ABORT);
      //adapter.instanceOf(Types.ABORT);
          adapter.ifZCmp(Opcodes.IFEQ, abortEnd);
          adapter.loadLocal(lThrow);
          adapter.throwException();
          adapter.visitLabel(abortEnd);


          // PageExceptionImpl old=pc.getCatch();
View Full Code Here

          adapter.invokeVirtual(Types.PAGE_CONTEXT, TagTry.GET_CATCH);
      adapter.storeLocal(old);
         
         
      // cast to PageException  Caster.toPagException(t);
          adapter.loadLocal(lThrow);
          adapter.invokeStatic(Types.CASTER, TO_PAGE_EXCEPTION);
         
      // PageException pe=...
          adapter.storeLocal(pe);
View Full Code Here

        // pe.typeEqual(type)
        if(ct.type==null){
          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

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.