Package org.jruby

Examples of org.jruby.IncludedModuleWrapper


      for (RubyModule p = module.getSuperClass(); p != null; p = p.getSuperClass())
        nestedModuleCount++;

      IncludedModuleWrapper[] nestedModules = new IncludedModuleWrapper[nestedModuleCount];

       IncludedModuleWrapper nestedModule = (IncludedModuleWrapper)module.getSuperClass();
      for(int index = 0; index < nestedModules.length; index++){
        nestedModules[index] = nestedModule;
        nestedModule =  (IncludedModuleWrapper)nestedModule.getSuperClass();
      }

      for(int index = nestedModules.length; index > 0; index--) {
          add_module(klass, nestedModules[index-1].getNonIncludedClass());
      }
View Full Code Here


    protected synchronized static void add_module(RubyClass klass, RubyModule module)
      throws NoSuchMethodException, IllegalAccessException, InvocationTargetException {

        klass.infectBy(module);
       
        IncludedModuleWrapper includedKlass = new IncludedModuleWrapper(klass.getRuntime(), klass.getSuperClass(), module);
       
        setSuperClass(klass, includedKlass);

        clearCache(klass, klass.getSuperClass())
    }
View Full Code Here

TOP

Related Classes of org.jruby.IncludedModuleWrapper

Copyright © 2018 www.massapicom. 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.