Package apigen.adt.api.types

Examples of apigen.adt.api.types.Module


  private static void generateSignature(ADT adt,
      JavaTomGenerationParameters params) {
    Iterator<Module> it = adt.moduleIterator();
    while (it.hasNext()) {
      Module module = it.next();
      JavaTomSignatureImplementation signature = new JavaTomSignatureImplementation(
          params, module);
      new JavaTomSignatureGenerator(adt, signature, params, module).run();
    }
  }
View Full Code Here


  private static void generateSignature(ADT adt,
      CTomSignatureImplementation signature,
      CTomGenerationParameters params) {
    Iterator<Module> it = adt.moduleIterator();
    while (it.hasNext()) {
      Module module = it.next();
      // TODO: Not a CTomSignatureGenerator???
      new TomSignatureGenerator(adt, signature, params, module).run();
    }
  }
View Full Code Here

  private static void generateFactories(ADT adt,
      JavaGenerationParameters params, GenerationObserver observer) {
    Iterator<Module> moduleIterator = adt.moduleIterator();
    while (moduleIterator.hasNext()) {
      Module module = moduleIterator.next();
      run(new FactoryGenerator(adt, params, module), observer);
    }
  }
View Full Code Here

  private static void generateAbstractTypes(ADT adt,
      JavaGenerationParameters params, GenerationObserver observer) {
    Iterator<Module> moduleIterator = adt.moduleIterator();
    while (moduleIterator.hasNext()) {
      Module module = moduleIterator.next();
      run(new AbstractTypeGenerator(adt, params, module), observer);
      run(new AbstractListGenerator(adt, params, module), observer);
    }
  }
View Full Code Here

  private static void generateVisitors(ADT adt,
      JavaGenerationParameters params, GenerationObserver l) {
    Iterator<Module> moduleIterator = adt.moduleIterator();
    while (moduleIterator.hasNext()) {
      Module module = moduleIterator.next();
      run(new VisitorGenerator(adt, params, module), l);
    }
  }
View Full Code Here

  private static void generateForward(ADT adt,
      JavaGenerationParameters params, GenerationObserver l) {
    Iterator<Module> moduleIterator = adt.moduleIterator();
    while (moduleIterator.hasNext()) {
      Module module = moduleIterator.next();
      run(new ForwardGenerator(adt, params, module), l);
    }
  }
View Full Code Here

  private static void generateForwardVisitable(ADT adt,
      JavaGenerationParameters params, GenerationObserver l) {
    Iterator<Module> moduleIterator = adt.moduleIterator();
    while (moduleIterator.hasNext()) {
      Module module = moduleIterator.next();
      run(new ForwardVisitableGenerator(adt, params, module), l);
    }
  }
View Full Code Here

  private static void generateForwardVoid(ADT adt,
      JavaGenerationParameters params, GenerationObserver l) {
    Iterator<Module> moduleIterator = adt.moduleIterator();
    while (moduleIterator.hasNext()) {
      Module module = moduleIterator.next();
      run(new ForwardVoidGenerator(adt, params, module), l);
    }
  }
View Full Code Here

        return result;
    }
   
    private void computeImportsClosureForModule(Set<String> result,String moduleName) {
          //  System.out.println("moduleName = " + moduleName);
          Module currentModule = getModuleFromName(moduleName);
          if(currentModule==null) {
              return;
          }
     
          String currentModuleName = currentModule.getModulename().getName();
          result.add(currentModuleName);
         
          Imports imported = currentModule.getImports();
          while(!imported.isEmpty()) {
              String name = imported.getHead().getName();
              if(!result.contains(name)) {
                computeImportsClosureForModule(result,name);
              }
View Full Code Here

    }
   
    private Module getModuleFromName(String moduleName) {
          Iterator<Module> modulesIt = moduleIterator();
            while(modulesIt.hasNext()) {
              Module currentModule = modulesIt.next();
              String currentModuleName = currentModule.getModulename().getName();
              if(moduleName.equals(currentModuleName)) {
                return currentModule;
              }
            }
            return null;
View Full Code Here

TOP

Related Classes of apigen.adt.api.types.Module

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.