Package org.objectweb.asm.commons

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


          adapter.loadLocal(tag.getQuery());
          adapter.loadLocal(tag.getNumberIterator());
          adapter.invokeVirtual(NUMBER_ITERATOR, CURRENT);
         
          adapter.loadLocal(tag.getPID());
          adapter.invokeInterface(Types.QUERY, TagLoop.GO);
         
          NotVisitor.visitNot(bc);
          Label _if=new Label();
          adapter.ifZCmp(Opcodes.IFEQ, _if);
            wv.visitBreak(bc);
View Full Code Here


      adapter.dup();
      loadUDFProperties(bc, valueIndex,arrayIndex,false);
      adapter.invokeConstructor(Types.UDF_IMPL, INIT_UDF_IMPL_PROP);
     
      //loadUDF(bc, index);
      adapter.invokeInterface(Types.VARIABLES, hasKey?SET_KEY:SET_STR);
      adapter.pop();
    }
  }
 
}
View Full Code Here

      adapter.loadLocal(tag.getNumberIterator());
      adapter.invokeVirtual(NUMBER_ITERATOR, CURRENT);
     
      adapter.loadArg(0);
      adapter.invokeVirtual(Types.PAGE_CONTEXT, GET_ID);
      adapter.invokeInterface(Types.QUERY, TagLoop.GO);
     
      NotVisitor.visitNot(bc);
      Label _if=new Label();
      adapter.ifZCmp(Opcodes.IFEQ, _if);
        wv.visitBreak(bc);
View Full Code Here

              int type=Types.getType(rtn);
               
                // Second Arg
                adapter.loadArg(0);
                adapter.invokeVirtual(Types.PAGE_CONTEXT,GET_CONFIG);
                adapter.invokeInterface(Types.CONFIG_WEB,GET_TIMEZONE);
                adapter.invokeStatic(Types.CASTER,Methods_Caster.TO_DATE[type]);
                return Types.DATE_TIME;
            }
            if("decimal".equals(lcType)) {
              rtn=expr.writeOut(bc,MODE_REF);
View Full Code Here

            ga.loadArgArray();
        }

        Label before = ga.mark();

        ga.invokeInterface(INVOCATION_HANDLER_TYPE,
                INVOCATION_HANDLER_INVOKE_METHOD);

        Label after = ga.mark();

        ga.unbox(m.getReturnType());
View Full Code Here

    private void stronglyTyped(org.objectweb.asm.commons.Method method, Class<?>[] paramTypes) {
        GeneratorAdapter adapter = method(ACC_PUBLIC, method);
        loadReceiver(adapter);
        loadArguments(adapter, paramTypes);
        adapter.invokeInterface(receiverType, asmMethod(this.method));
        adapter.returnValue();
        adapter.endMethod();
    }

    private void loadReceiver(GeneratorAdapter adapter) {
View Full Code Here

    private void implement(Method method, int index) {
        GeneratorAdapter adapter = method(ACC_PUBLIC, asmMethod(method));
        adapter.loadThis();
        adapter.getField(outputType(), fieldNameFor(method, index), publisherType);
        loadMessage(method, adapter);
        adapter.invokeInterface(publisherType, publishMethod);
        adapter.returnValue();
        adapter.endMethod();
    }

    private void loadMessage(Method method, GeneratorAdapter adapter) {
View Full Code Here

    methodAdapter.loadArgArray();
    // generate the invoke method
    Method invocationHandlerInvokeMethod = new Method("invoke", OBJECT_TYPE, new Type[] {
        OBJECT_TYPE, METHOD_TYPE, Type.getType(java.lang.Object[].class) });
    // call the invoke method of the invocation handler
    methodAdapter.invokeInterface(IH_TYPE, invocationHandlerInvokeMethod);

    /*
     * Stage 3 the returned object is now on the top of the stack We need to
     * check the type and cast as necessary
     */
 
View Full Code Here

                getExceptionTypes(m), cv);
        mg.loadThis();
        mg.visitFieldInsn(GETFIELD, subClassName.replace('.', '/'),
                DELEGATE_FIELD_NAME, Type.getType(delegateClass).getDescriptor());
        mg.loadArgs();
        mg.invokeInterface(Type.getType(delegateClass), asmMethod);
        mg.returnValue();
        mg.endMethod();

    }
View Full Code Here

                getExceptionTypes(m), cv);
        mg.loadThis();
        mg.visitFieldInsn(GETFIELD, subClassName.replace('.', '/'),
                DELEGATE_FIELD_NAME, Type.getType(delegateClass).getDescriptor());
        mg.loadArgs();
        mg.invokeInterface(Type.getType(delegateClass), asmMethod);
        mg.returnValue();
        mg.endMethod();

    }
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.