Package org.objectweb.asm.commons

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


    adapter.visitLocalVariable("this", "L"+name+";", null, methodBegin, methodEnd, 0);
      adapter.visitLabel(methodBegin);

      //ExpressionUtil.visitLine(adapter, component.getStartLine());
     
    int comp=adapter.newLocal(Types.COMPONENT_IMPL);
    adapter.newInstance(Types.COMPONENT_IMPL);
    adapter.dup();
   
    Attribute attr;
    // ComponentPage
View Full Code Here


   */
  public void _writeOut(BytecodeContext bc) throws BytecodeException {
    GeneratorAdapter adapter = bc.getAdapter();
   
  // Array cases=new ArrayImpl();
    int array=adapter.newLocal(Types.ARRAY);
    adapter.newInstance(ARRAY_IMPL);
    adapter.dup();
    adapter.invokeConstructor(ARRAY_IMPL, INIT);
   
    adapter.storeLocal(array);
View Full Code Here

      adapter.invokeVirtual(ARRAY_IMPL, APPEND);
      adapter.pop();
    }
   
    // int result=ArrayUtil.find(array,expression);
    int result=adapter.newLocal(Types.INT_VALUE);
    adapter.loadLocal(array);
    expr.writeOut(bc, Expression.MODE_REF);
    adapter.invokeStatic(Types.ARRAY_UTIL, FIND);
    adapter.storeLocal(result);
   
View Full Code Here

    adapter.visitLocalVariable("this", "L"+name+";", null, methodBegin, methodEnd, 0);
      adapter.visitLabel(methodBegin);

      //ExpressionUtil.visitLine(adapter, interf.getStartLine());
     
    int comp=adapter.newLocal(Types.INTERFACE_IMPL);
   
   
    adapter.newInstance(Types.INTERFACE_IMPL);
    adapter.dup();
   
View Full Code Here

      ASMConstants.NULL(bc.getAdapter());
      bc.getAdapter().cast(Types.OBJECT,STRUCT_IMPL);
      return;
    }
   
    int sct=adapter.newLocal(STRUCT_IMPL);
    adapter.newInstance(STRUCT_IMPL);
    adapter.dup();
    adapter.invokeConstructor(STRUCT_IMPL, INIT_STRUCT_IMPL);
    adapter.storeLocal(sct);
    if(meta!=null) {
View Full Code Here

    GeneratorAdapter adapter = bc.getAdapter();
   
    adapter.visitLabel(begin);
   
    // Reference ref=null;
    final int lRef=adapter.newLocal(Types.REFERENCE);
    adapter.visitInsn(Opcodes.ACONST_NULL);
    adapter.storeLocal(lRef);
   
    // has no try body, if there is no try body, no catches are executed, only finally
    if(!tryBody.hasStatements()) {
View Full Code Here

    }*/
  }
 
  private void _writeOutCatch(BytecodeContext bc, int lRef,int lThrow) throws BytecodeException {
    GeneratorAdapter adapter = bc.getAdapter();
    int pe=adapter.newLocal(Types.PAGE_EXCEPTION);
   
   
    // instance of Abort
      Label abortEnd=new Label();
      adapter.loadLocal(lThrow);
View Full Code Here

          adapter.throwException();
          adapter.visitLabel(abortEnd);


          // PageExceptionImpl old=pc.getCatch();
          int old=adapter.newLocal(Types.PAGE_EXCEPTION);
          adapter.loadArg(0);
          adapter.invokeVirtual(Types.PAGE_CONTEXT, TagTry.GET_CATCH);
      adapter.storeLocal(old);
         
         
View Full Code Here

    ForDoubleVisitor forDoubleVisitor = new ForDoubleVisitor();
    loopVisitor=forDoubleVisitor;
    GeneratorAdapter adapter = bc.getAdapter();

    // int from=(int)@from;
    int from=adapter.newLocal(Types.DOUBLE_VALUE);
    ExpressionUtil.writeOutSilent(getAttribute("from").getValue(), bc, Expression.MODE_VALUE);
    adapter.storeLocal(from)
   
    // int to=(int)@to;
    int to=adapter.newLocal(Types.DOUBLE_VALUE);
View Full Code Here

    int from=adapter.newLocal(Types.DOUBLE_VALUE);
    ExpressionUtil.writeOutSilent(getAttribute("from").getValue(), bc, Expression.MODE_VALUE);
    adapter.storeLocal(from)
   
    // int to=(int)@to;
    int to=adapter.newLocal(Types.DOUBLE_VALUE);
    ExpressionUtil.writeOutSilent(getAttribute("to").getValue(), bc, Expression.MODE_VALUE);
    adapter.storeLocal(to)
   
    // int step=(int)@step;
    int step=adapter.newLocal(Types.DOUBLE_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.