Examples of ModuleName


Examples of org.openquark.cal.compiler.ModuleName

       
        Options jFitOptions = commandLineOptions.getJFitOptions();
       
        commandLineLogger.config("Specified options: ");
       
        ModuleName moduleName = jFitOptions.getModuleName();
        commandLineLogger.config("  Module name:    " + (moduleName == null ? notSpecifiedString : moduleName.toSourceText()));
       
        String workspaceName = commandLineOptions.getWorkspaceName();
        commandLineLogger.config("  Workspace name: " + (workspaceName == null ? notSpecifiedString : workspaceName));
       
        File[] inputFiles = jFitOptions.getInputFiles();
View Full Code Here

Examples of org.openquark.cal.compiler.ModuleName

     */
    public ModuleDefn autoFit() {
        if (options == null) {
            return null;
        }
        ModuleName calModuleName = options.getModuleName();
        JFit.Pattern[] patterns = options.getPatterns();
        File[] inputFiles = options.getInputFiles();
        File[] inputDirectories = options.getInputDirectories();
        String[] classPath = options.getClassPath();
        ForeignImportGenerator.GenerationScope generationScope = options.getGenerationScope();
View Full Code Here

Examples of org.openquark.cal.compiler.ModuleName

            if (moduleNameString == null) {
                logger.severe("No module name provided.");
                return null;
            }
           
            ModuleName moduleName = ModuleName.maybeMake(moduleNameString);
            if (moduleName == null) {
                logger.severe("Invalid module name: " + moduleName);
                return null;
            }
           
View Full Code Here

Examples of org.openquark.cal.compiler.ModuleName

    }
   
    Object runFunction(EntryPointSpec entryPointSpec, Object[] arguments, ExecutionContext executionContext) throws CALExecutorException, GemCompilationException {
        cacheLock.readLock().lock();
        try {
            ModuleName moduleName = entryPointSpec.getFunctionalAgentName().getModuleName();
            ModuleCache moduleCache = getModuleCache(moduleName);
           
            return moduleCache.runFunction(entryPointSpec, arguments, executionContext);
        } finally {
            cacheLock.readLock().unlock();
View Full Code Here

Examples of org.openquark.cal.compiler.ModuleName

        //split the entry points into sets of each module 
        HashMap<ModuleName, HashSet<EntryPointSpec> > specs = new HashMap<ModuleName, HashSet<EntryPointSpec> >();
       
        for(EntryPointSpec spec : entryPointSpecs) {
            ModuleName module = spec.getFunctionalAgentName().getModuleName();
            Set<EntryPointSpec> moduleSet = specs.get(module);
           
            if (moduleSet == null) {
                HashSet<EntryPointSpec> set = new HashSet<EntryPointSpec>();
                set.add(spec);
View Full Code Here

Examples of org.openquark.cal.compiler.ModuleName

     */
    public ModuleNameToResourceManagerMapping getModuleNameToResourceManagerMapping(final String resourceType) {
        final Map<ModuleName, ResourceManager> mapping = new HashMap<ModuleName, ResourceManager>();
       
        for (final Map.Entry<ModuleName, Car.Accessor> entry : carAccessors.entrySet()) {
            final ModuleName moduleName = entry.getKey();
            final Car.Accessor carAccessor = entry.getValue();
           
            mapping.put(moduleName, carAccessor.getResourceManager(resourceType));
        }
       
View Full Code Here

Examples of org.openquark.cal.compiler.ModuleName

            if (Character.isLowerCase(entryPointString.charAt(0))) {
                //the module name was not supplied
                return QualifiedName.make(CAL_Prelude.MODULE_NAME, entryPointString);
            }
   
            final ModuleName maybeModuleName = ModuleName.maybeMake(entryPointString);
            //the function name was not supplied
            if (maybeModuleName != null) {
                return QualifiedName.make(maybeModuleName, "main");
            } else {
                return QualifiedName.make(CAL_Prelude.MODULE_NAME, "main");
            }
        }
   
        ModuleName maybeModuleName = ModuleName.maybeMake(entryPointString.substring(0, periodPos));
        String unqualifiedName = entryPointString.substring(periodPos + 1);
   
        if (maybeModuleName != null) {
            return QualifiedName.make(maybeModuleName, unqualifiedName);
        } else {
View Full Code Here

Examples of org.openquark.cal.compiler.ModuleName

         */
        public String getLocationString() {
            final StringBuilder location = new StringBuilder(baseRepository.getLocationString());
           
            for (final Map.Entry<ModuleName, Car.Accessor> entry : carAccessors.entrySet()) {
                final ModuleName moduleName = entry.getKey();
                final Car.Accessor carAccessor = entry.getValue();
               
                location.append("\n[Car: ").append(carAccessor.getCarFileName()).append(", module: ").append(moduleName).append("]");
            }
           
View Full Code Here

Examples of org.openquark.cal.compiler.ModuleName

     * Reads a module name from the stream.
     * @return the module name read from the stream as a ModuleName.
     */
    public final ModuleName readModuleName() throws IOException {
        final String moduleNameString = readUTF();
        final ModuleName cachedModuleName = moduleNameCache.get(moduleNameString);
       
        if (cachedModuleName != null) {
            return cachedModuleName;
           
        } else {
            final ModuleName moduleName = ModuleName.make(moduleNameString);
            moduleNameCache.put(moduleNameString, moduleName);
            return moduleName;
        }
    }
View Full Code Here

Examples of org.openquark.cal.compiler.ModuleName

        }
        /* ModuleName moduleName = */ s.readModuleName();
        int nImports = s.readInt();
        Set<ModuleName> set = new HashSet<ModuleName>();
        for (int i = 0; i < nImports; ++i) {
            ModuleName imported = s.readModuleName();
            set.add(imported);
        }
       
        s.skipRestOfRecord();
       
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.