Package org.openquark.cal.compiler

Examples of org.openquark.cal.compiler.ProgramModifier$ProgramChangeListener


     * @param options - the values for compiler options
     * @return a copy of the program modifier, either a new one, or the private copy held by this workspace manager.
     */
    protected ProgramModifier makeProgramModifier(CompilationOptions options) {
       
        ProgramModifier newProgramModifier = programManager.makeProgramModifier();
       
        for (final StatusListener statusListener : statusListeners) {
            newProgramModifier.addStatusListener(statusListener);
        }
       
        if (options != null) {
            newProgramModifier.setForceCodeRegen(options.isForceCodeRegeneration());
            newProgramModifier.setForImmediateUse(options.isForImmediateUse());
            newProgramModifier.setIgnoreCompiledModuleInfo(options.isIgnoreCompiledModuleInfo());
            newProgramModifier.setForeignContextProvider(options.getCustomForeignContextProvider());
        }
       
        return newProgramModifier;
    }
View Full Code Here


        if (definitionGroup == null) {
            logger.logMessage(new CompilerMessage(new MessageKind.Fatal.CouldNotFindWorkspaceDefinition()));
            return;
        }
       
        ProgramModifier newProgramModifier = makeProgramModifier(options);
       
        if (statusListener != null) {
            newProgramModifier.addStatusListener(statusListener);
        }
       
        try {
            newProgramModifier.compile(definitionGroup, logger, dirtyModulesOnly);
           
        } finally {
            if (statusListener != null) {
                newProgramModifier.removeStatusListener(statusListener);
            }
        }
    }
View Full Code Here

        // objects with the same timestamp back-to-back would erroneously supress the code
        // generation for the second and subsequent compilation attempts.
        CompilationOptions modifiedOptions = new CompilationOptions(options);
        modifiedOptions.setForceCodeRegeneration(true);
       
        ProgramModifier pm = makeProgramModifier(modifiedOptions);
        return pm.compile (sourceDef, logger);
    }
View Full Code Here

        // objects with the same timestamp back-to-back would erroneously supress the code
        // generation for the second and subsequent compilation attempts.
        CompilationOptions modifiedOptions = new CompilationOptions(options);
        modifiedOptions.setForceCodeRegeneration(true);
       
        ProgramModifier pm = makeProgramModifier(modifiedOptions);
        return pm.compile (moduleNames, definitionGroup, logger);
    }
View Full Code Here

    /**
     * {@inheritDoc}
     */
    @Override
    protected ProgramModifier makeProgramModifier(CompilationOptions options) {
        ProgramModifier newProgramModifier = super.makeProgramModifier(options);
       
        // the workspace Program registers as a
        // listener so that it can update itself as the program changes.
        newProgramModifier.addChangeListener(workspace);
       
        return newProgramModifier;
    }
View Full Code Here

TOP

Related Classes of org.openquark.cal.compiler.ProgramModifier$ProgramChangeListener

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.