Package com.asakusafw.dmdl.util

Examples of com.asakusafw.dmdl.util.AnalyzeTask


        }
        return compiler.getClassLoader();
    }

    private DmdlSemantics analyze(DmdlSourceRepository source) throws IOException {
        AnalyzeTask analyzer = new AnalyzeTask("testing", getClass().getClassLoader());
        return analyzer.process(source);
    }
View Full Code Here


        URL resource = getClass().getResource(dmdl);
        assertThat(dmdl, resource, not(nullValue()));

        DmdlSourceResource repo = new DmdlSourceResource(Arrays.asList(resource), Charset.forName("UTF-8"));
        ClassLoader loader = ExcelTesterRoot.class.getClassLoader();
        AnalyzeTask task = new AnalyzeTask(testName.getMethodName(), loader);
        try {
            DmdlSemantics results = task.process(repo);
            ModelDeclaration decl = results.findModelDeclaration(model);
            assertThat(dmdl + ":" + model, decl, not(nullValue()));
            return decl;
        } catch (IOException e) {
            throw new AssertionError(e);
View Full Code Here

        }
        LOG.info("テンプレートの生成を終了しました");
    }

    private DmdlSemantics analyze() throws IOException {
        AnalyzeTask analyzer = new AnalyzeTask(generator.getTitle(), serviceClassLoader);
        return analyzer.process(repository);
    }
View Full Code Here

        }
        LOG.info(Messages.getString("GenerateTask.monitorGenerateFinishing")); //$NON-NLS-1$
    }

    private DmdlSemantics analyze() throws IOException {
        AnalyzeTask analyzer =
                new AnalyzeTask(Messages.getString("GenerateTask.name"), conf.getServiceClassLoader()); //$NON-NLS-1$
        return analyzer.process(conf.getSource());
    }
View Full Code Here

TOP

Related Classes of com.asakusafw.dmdl.util.AnalyzeTask

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.