Package org.objectweb.asm.commons

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


      final int state=adapter.newLocal(Types.INT_VALUE);
     
      // int state=tag.doStartTag();
      adapter.loadLocal(currLocal);
      adapter.invokeVirtual(currType, DO_START_TAG);
      adapter.storeLocal(state);
     
      // if (state!=Tag.SKIP_BODY)
      Label endBody=new Label();
      adapter.loadLocal(state);
      adapter.push(javax.servlet.jsp.tagext.Tag.SKIP_BODY);
View Full Code Here


      // ForEachUtil.toIterator(value)
      value.writeOut(bc, Expression.MODE_REF);
      adapter.invokeStatic(FOR_EACH_UTIL, TO_ITERATOR);
      //adapter.invokeStatic(COLLECTION_UTIL, TO_ITERATOR);
      // Iterator it=...
      adapter.storeLocal(it);
      TryFinallyVisitor tfv=new TryFinallyVisitor(new OnFinally() {
       
        @Override
        public void writeOut(BytecodeContext bc) throws BytecodeException {
          GeneratorAdapter a = bc.getAdapter();
View Full Code Here

    GeneratorAdapter adapter = bc.getAdapter();

    // expression
    int expression=adapter.newLocal(Types.STRING);
    getAttribute("expression").getValue().writeOut(bc, Expression.MODE_REF);
    adapter.storeLocal(expression);
   
   
    List statements = getBody().getStatements();
    Statement stat;
    Tag tag;
View Full Code Here

        Type thr = Type.getType(Throwable.class);
        Label handler = ga.mark();
        Type udt = Type.getType(UndeclaredThrowableException.class);
        int loc = ga.newLocal(thr);
        ga.storeLocal(loc, thr);
        ga.newInstance(udt);
        ga.dup();
        ga.loadLocal(loc, thr);
        ga.invokeConstructor(udt, org.objectweb.asm.commons.Method
                .getMethod("void <init>(java.lang.Throwable)"));
View Full Code Here

            gen.loadThis();
            gen.visitFieldInsn(Opcodes.GETFIELD,
                    generatedClassName,
                    fieldName, probeType.getDescriptor());
            int index = gen.newLocal(probeType);
            gen.storeLocal(index);
            gen.loadLocal(index);
            gen.invokeVirtual(probeType, Method.getMethod("boolean isEnabled()"));
            gen.push(true);
            Label enabledLabel = new Label();
            Label notEnabledLabel = new Label();
View Full Code Here

            gen.loadThis();
            gen.visitFieldInsn(Opcodes.GETFIELD,
                    generatedClassName,
                    fieldName, probeType.getDescriptor());
            int index = gen.newLocal(probeType);
            gen.storeLocal(index);
            gen.loadLocal(index);
            gen.invokeVirtual(probeType, Method.getMethod("boolean isEnabled()"));
            gen.push(true);
            Label enabledLabel = new Label();
            Label notEnabledLabel = new Label();
View Full Code Here

            gen.loadThis();
            gen.visitFieldInsn(Opcodes.GETFIELD,
                    generatedClassName,
                    fieldName, probeType.getDescriptor());
            int index = gen.newLocal(probeType);
            gen.storeLocal(index);
            gen.loadLocal(index);
            gen.invokeVirtual(probeType, Method.getMethod("boolean isEnabled()"));
            gen.push(true);
            Label enabledLabel = new Label();
            Label notEnabledLabel = new Label();
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.