Package org.objectweb.asm.commons

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


         }
         else if(classRtn==float.class) {
                    rtn=Opcodes.FRETURN;
                    adapter.invokeStatic(JAVA_PROXY, TO_FLOAT);
         }
         else if(classRtn==int.class)   adapter.invokeStatic(JAVA_PROXY, TO_INT);
         else if(classRtn==long.class)   {
                         rtn=Opcodes.LRETURN;
                         adapter.invokeStatic(JAVA_PROXY, TO_LONG);
         }
         else if(classRtn==short.class) adapter.invokeStatic(JAVA_PROXY, TO_SHORT);
View Full Code Here


                    adapter.invokeStatic(JAVA_PROXY, TO_FLOAT);
         }
         else if(classRtn==int.class)   adapter.invokeStatic(JAVA_PROXY, TO_INT);
         else if(classRtn==long.class)   {
                         rtn=Opcodes.LRETURN;
                         adapter.invokeStatic(JAVA_PROXY, TO_LONG);
         }
         else if(classRtn==short.class) adapter.invokeStatic(JAVA_PROXY, TO_SHORT);
         else if(classRtn==void.class){
                         rtn=Opcodes.RETURN;
                         adapter.pop();
View Full Code Here

         else if(classRtn==int.class)   adapter.invokeStatic(JAVA_PROXY, TO_INT);
         else if(classRtn==long.class)   {
                         rtn=Opcodes.LRETURN;
                         adapter.invokeStatic(JAVA_PROXY, TO_LONG);
         }
         else if(classRtn==short.class) adapter.invokeStatic(JAVA_PROXY, TO_SHORT);
         else if(classRtn==void.class){
                         rtn=Opcodes.RETURN;
                         adapter.pop();
         }
         else {
View Full Code Here

          av.visitBeginItem(adapter, y);
            adapter.loadArg(y);
          av.visitEndItem(bc.getAdapter());
            }
            av.visitEnd();
            adapter.invokeStatic(COMPONENT_CONTROLLER, INVOKE);
            adapter.checkCast(rtnType);
           
            //ASMConstants.NULL(adapter);
            adapter.returnValue();
            Label end=adapter.newLabel();
View Full Code Here

      if(member instanceof DataMember)  {
        ExprString name = ((DataMember)member).getName();
        if(last && ASMUtil.isDotKey(name)){
          LitString ls = (LitString)name;
          if(ls.getString().equalsIgnoreCase("RECORDCOUNT")){
            adapter.invokeStatic(VARIABLE_UTIL_IMPL, RECORDCOUNT);
          }
          else if(ls.getString().equalsIgnoreCase("CURRENTROW")){
            adapter.invokeStatic(VARIABLE_UTIL_IMPL, CURRENTROW);
          }
          else if(ls.getString().equalsIgnoreCase("COLUMNLIST")){
View Full Code Here

          LitString ls = (LitString)name;
          if(ls.getString().equalsIgnoreCase("RECORDCOUNT")){
            adapter.invokeStatic(VARIABLE_UTIL_IMPL, RECORDCOUNT);
          }
          else if(ls.getString().equalsIgnoreCase("CURRENTROW")){
            adapter.invokeStatic(VARIABLE_UTIL_IMPL, CURRENTROW);
          }
          else if(ls.getString().equalsIgnoreCase("COLUMNLIST")){
            adapter.invokeStatic(VARIABLE_UTIL_IMPL, COLUMNLIST);
          }
          else {
View Full Code Here

          }
          else if(ls.getString().equalsIgnoreCase("CURRENTROW")){
            adapter.invokeStatic(VARIABLE_UTIL_IMPL, CURRENTROW);
          }
          else if(ls.getString().equalsIgnoreCase("COLUMNLIST")){
            adapter.invokeStatic(VARIABLE_UTIL_IMPL, COLUMNLIST);
          }
          else {
           
            if(registerKey(bc,name))adapter.invokeVirtual(Types.PAGE_CONTEXT,asCollection(asCollection, last)?GET_COLLECTION_KEY:GET_KEY);
            else adapter.invokeVirtual(Types.PAGE_CONTEXT,asCollection(asCollection, last)?GET_COLLECTION:GET);
View Full Code Here

      argTypes=new Type[2];
      argTypes[0]=Types.PAGE_CONTEXT;
      argTypes[1]=Types.OBJECT_ARRAY;
      ExpressionUtil.writeOutExpressionArray(bc, Types.OBJECT, args)
    }
    adapter.invokeStatic(bifType,new Method("call",rtnType,argTypes));
    if(mode==MODE_REF || !last) {
      if(Types.isPrimitiveType(rtnType)) {
        adapter.invokeStatic(Types.CASTER,new Method("toRef",Types.toRefType(rtnType),new Type[]{rtnType}));
        rtnType=Types.toRefType(rtnType);
      }
View Full Code Here

      ExpressionUtil.writeOutExpressionArray(bc, Types.OBJECT, args)
    }
    adapter.invokeStatic(bifType,new Method("call",rtnType,argTypes));
    if(mode==MODE_REF || !last) {
      if(Types.isPrimitiveType(rtnType)) {
        adapter.invokeStatic(Types.CASTER,new Method("toRef",Types.toRefType(rtnType),new Type[]{rtnType}));
        rtnType=Types.toRefType(rtnType);
      }
    }
    return rtnType;
  }
View Full Code Here

   
    // 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);
   
    // switch(result)
    ns=new NativeSwitch(result,NativeSwitch.LOCAL_REF,getStart(),getEnd());
    it = cases.iterator();
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.