Search in sources :

Example 1 with ConfigClassBuilder

use of net.jangaroo.exml.as.ConfigClassBuilder in project jangaroo-tools by CoreMedia.

the class ConfigClassBuilderTest method buildConfigClass.

private ConfigClass buildConfigClass(String resourceName, String module) throws URISyntaxException {
    File sourceFile = new File(getClass().getResource("/" + module + "/" + resourceName).toURI());
    InputSource inputSource = new FileInputSource(sourceFile, true);
    CompilationUnit compilationUnit = new Jooc().doParse(inputSource, new StdOutCompileLog(), SemicolonInsertionMode.QUIRKS);
    ConfigClassBuilder configClassBuilder = new ConfigClassBuilder(compilationUnit);
    return configClassBuilder.buildConfigClass();
}
Also used : CompilationUnit(net.jangaroo.jooc.ast.CompilationUnit) InputSource(net.jangaroo.jooc.input.InputSource) FileInputSource(net.jangaroo.jooc.input.FileInputSource) FileInputSource(net.jangaroo.jooc.input.FileInputSource) ConfigClassBuilder(net.jangaroo.exml.as.ConfigClassBuilder) Jooc(net.jangaroo.jooc.Jooc) StdOutCompileLog(net.jangaroo.jooc.StdOutCompileLog) File(java.io.File)

Aggregations

File (java.io.File)1 ConfigClassBuilder (net.jangaroo.exml.as.ConfigClassBuilder)1 Jooc (net.jangaroo.jooc.Jooc)1 StdOutCompileLog (net.jangaroo.jooc.StdOutCompileLog)1 CompilationUnit (net.jangaroo.jooc.ast.CompilationUnit)1 FileInputSource (net.jangaroo.jooc.input.FileInputSource)1 InputSource (net.jangaroo.jooc.input.InputSource)1