Package org.objectweb.asm.commons

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


        ASMConstants.NULL(adapter);
      cv.visitWhenAfterBody(bc);

      cv.visitOtherviseBeforeBody();
        adapter.loadArg(0);
        adapter.invokeVirtual(Types.PAGE_CONTEXT, PUSH_BODY);
      cv.visitOtherviseAfterBody();
    cv.visitAfter(bc);
    adapter.storeLocal(localBC);
   
    // c.init(pc,this);
View Full Code Here


   
    // c.init(pc,this);
    adapter.loadArg(1);
    adapter.loadArg(0);
    adapter.visitVarInsn(Opcodes.ALOAD, 0);
    adapter.invokeVirtual(Types.COMPONENT_IMPL, INIT);
     
     
    //int oldCheckArgs=  pc.undefinedScope().setMode(Undefined.MODE_NO_LOCAL_AND_ARGUMENTS);
      final int oldCheckArgs = adapter.newLocal(Types.INT_VALUE);
      adapter.loadArg(0);
View Full Code Here

      }
    },null);

    //ExpressionUtil.visitLine(bc, line);
    adapter.loadArg(0);
    adapter.invokeVirtual(Types.PAGE_CONTEXT,OUTPUT_START);
    tfv.visitTryBegin(bc);


  }
  public void visitEnd(BytecodeContext bc) throws BytecodeException {
View Full Code Here

     
     
    //int oldCheckArgs=  pc.undefinedScope().setMode(Undefined.MODE_NO_LOCAL_AND_ARGUMENTS);
      final int oldCheckArgs = adapter.newLocal(Types.INT_VALUE);
      adapter.loadArg(0);
      adapter.invokeVirtual(Types.PAGE_CONTEXT, UNDEFINED_SCOPE);
      adapter.push(Undefined.MODE_NO_LOCAL_AND_ARGUMENTS);
      adapter.invokeInterface(Types.UNDEFINED, SET_MODE);
      adapter.storeLocal(oldCheckArgs);
   
     
View Full Code Here

     
      public void writeOut(BytecodeContext bc) {

        // undefined.setMode(oldMode);
        adapter.loadArg(0);
        adapter.invokeVirtual(Types.PAGE_CONTEXT, UNDEFINED_SCOPE);
        adapter.loadLocal(oldCheckArgs,Types.INT_VALUE);
        adapter.invokeInterface(Types.UNDEFINED, SET_MODE);
        adapter.pop();
       
          // c.afterCall(pc,_oldData);
View Full Code Here

       
          // c.afterCall(pc,_oldData);
          adapter.loadArg(1);
          adapter.loadArg(0);
          adapter.loadLocal(oldData);
          adapter.invokeVirtual(Types.COMPONENT_IMPL, AFTER_CALL);
       
       
      }
    },null);
    tcf.visitTryBegin(bc);
View Full Code Here

    },null);
    tcf.visitTryBegin(bc);
      // oldData=c.beforeCall(pc);
      adapter.loadArg(1);
      adapter.loadArg(0);
      adapter.invokeVirtual(Types.COMPONENT_IMPL, BEFORE_CALL);
      adapter.storeLocal(oldData);
      ExpressionUtil.visitLine(bc, component.getStart());
      writeOutCallBody(bc,component.getBody(),IFunction.PAGE_TYPE_COMPONENT);
      ExpressionUtil.visitLine(bc, component.getEnd());
    int t = tcf.visitTryEndCatchBeging(bc);
View Full Code Here

     */
    public void _writeOut(BytecodeContext bc) throws BytecodeException {
      GeneratorAdapter adapter = bc.getAdapter();
        adapter.getStatic(Type.getType(System.class),"out",Type.getType(PrintStream.class));
        expr.writeOut(bc,Expression.MODE_REF);
        adapter.invokeVirtual(Type.getType(PrintStream.class),METHOD_PRINTLN);
    }
}
View Full Code Here

   
    // initComponent(pc,c);
    adapter.visitVarInsn(Opcodes.ALOAD, 0);
    adapter.loadArg(0);
    adapter.loadLocal(comp);
    adapter.invokeVirtual(Types.COMPONENT_PAGE, INIT_COMPONENT);
   
        adapter.visitLabel(methodEnd);
       
        // return component;
        adapter.loadLocal(comp);
View Full Code Here

      c=it.next();
     

      adapter.loadLocal(array);
      c.expression.writeOut(bc, Expression.MODE_REF);
      adapter.invokeVirtual(ARRAY_IMPL, APPEND);
      adapter.pop();
    }
   
    // int result=ArrayUtil.find(array,expression);
    int result=adapter.newLocal(Types.INT_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.