Package eu.admire.dispel.engine

Examples of eu.admire.dispel.engine.CompilationException


        {
            LOG.debug("Compiling DISPEL for used object: " + object);
        }
        if (object.getDispel() == null)
        {
            CompilationException exc = new CompilationException();
            exc.initCause(new NoDispelException(object));
            throw exc;
        }
        DISPELCompiler compiler = new DISPELCompiler();
        DISPELGraphBuilder builder = new DISPELGraphBuilder(registry, optimiser);
           
        compiler.setRequestBuilder(builder);
        builder.setCompiler(compiler);
        SimpleErrorListener listener = new SimpleErrorListener();
        compiler.addErrorListener(listener);
        compiler.parse(object.getDispel());
       
        if (listener.getError() != null)
        {
            CompilationException exc = new CompilationException();
            exc.initCause(listener.getError());
            throw exc;
        }
        LOG.debug("Compilation complete for object: " + object.getName());

        // Write the functions obtained to our function store
View Full Code Here

TOP

Related Classes of eu.admire.dispel.engine.CompilationException

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.