Package org.objectweb.asm.commons

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


            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);
          }
        }
        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);
        }
        rtn=Types.OBJECT;
      }
View Full Code Here


            else adapter.invokeVirtual(Types.PAGE_CONTEXT,asCollection(asCollection, last)?GET_COLLECTION:GET);
          }
        }
        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);
        }
        rtn=Types.OBJECT;
      }

      // UDF
View Full Code Here

          if(startIndex!=null)startIndex.setValue(1);
          adapter.loadArg(0);
          adapter.checkCast(Types.PAGE_CONTEXT_IMPL);
          if(defaultValue!=null) {
            defaultValue.writeOut(bc, MODE_REF);
            adapter.invokeVirtual(Types.PAGE_CONTEXT_IMPL,(countFM+countDM)==1?THIS_GET_EL:THIS_TOUCH_EL);
          }
          else adapter.invokeVirtual(Types.PAGE_CONTEXT_IMPL,(countFM+countDM)==1?THIS_GET:THIS_TOUCH);
          return Types.OBJECT;
        }
        }
View Full Code Here

          adapter.checkCast(Types.PAGE_CONTEXT_IMPL);
          if(defaultValue!=null) {
            defaultValue.writeOut(bc, MODE_REF);
            adapter.invokeVirtual(Types.PAGE_CONTEXT_IMPL,(countFM+countDM)==1?THIS_GET_EL:THIS_TOUCH_EL);
          }
          else adapter.invokeVirtual(Types.PAGE_CONTEXT_IMPL,(countFM+countDM)==1?THIS_GET:THIS_TOUCH);
          return Types.OBJECT;
        }
        }
      }
      // local
View Full Code Here

      if(scope==Scope.SCOPE_LOCAL && defaultValue!=null) {
        adapter.loadArg(0);
        adapter.checkCast(Types.PAGE_CONTEXT_IMPL);
      LitBoolean.FALSE.writeOut(bc, MODE_VALUE);
        defaultValue.writeOut(bc, MODE_VALUE);
        adapter.invokeVirtual(Types.PAGE_CONTEXT_IMPL, TypeScope.METHOD_LOCAL_EL);
        rtn= Types.OBJECT;
      }
      else {
        adapter.loadArg(0);
        rtn = TypeScope.invokeScope(adapter, scope);
View Full Code Here

      if(member instanceof DataMember)  {
        //((DataMember)member).getName().writeOut(bc, MODE_REF);
          boolean isKey=Variable.registerKey(bc, ((DataMember)member).getName());
       
          if(last)value.writeOut(bc, MODE_REF);
          if(isKey)adapter.invokeVirtual(Types.PAGE_CONTEXT,last?SET_KEY:TOUCH_KEY);
          else adapter.invokeVirtual(Types.PAGE_CONTEXT,last?SET:TOUCH);
            rtn=Types.OBJECT;
      }
     
      // UDF
View Full Code Here

          LitString ls = ((LitString)es);
          ls.setExternalize(true);
        }*/
       
        if(!usedExternalizer)es.writeOut(bc,Expression.MODE_REF);
        adapter.invokeVirtual(Types.PAGE_CONTEXT,checkPSQ?METHOD_WRITE_PSQ:METHOD_WRITE);
    }


  /**
   * @return the expr
View Full Code Here

   
    // initInterface(pc,c);
    adapter.visitVarInsn(Opcodes.ALOAD, 0);
    //adapter.loadArg(0);
    adapter.loadLocal(comp);
    adapter.invokeVirtual(Types.INTERFACE_PAGE, INIT_INTERFACE);
   
    adapter.visitLabel(methodEnd);
       
       
        // return interface;
View Full Code Here

    if(pageType==IFunction.PAGE_TYPE_COMPONENT) {
      GeneratorAdapter adapter = bc.getAdapter();
      adapter.loadArg(1);
      adapter.loadArg(0);
      adapter.visitVarInsn(Opcodes.ALOAD, 0);
      adapter.invokeVirtual(Types.COMPONENT_IMPL, CHECK_INTERFACE);

    }
    if(pageType!=IFunction.PAGE_TYPE_INTERFACE){
      BodyBase.writeOut(bc.getStaticConstructor(),bc.getConstructor(),bc.getKeys(),body.getStatements(), bc);
    }
View Full Code Here


          // 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);
         
         
      // cast to PageException  Caster.toPagException(t);
          adapter.loadLocal(lThrow);
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.