public static IDLVisitor newIDLCompiler() { final IDLLoader idlLoader = IDLLoaderChainFactory.newLoader(); final BasicInputResourceLocator inputResourceLocator = new BasicInputResourceLocator(); final BasicOutputFileLocator outputFileLocator = new BasicOutputFileLocator(); final BasicASTTransformer astTransformer = new BasicASTTransformer(); astTransformer.nodeFactoryItf = new STNodeFactoryImpl(); final StringTemplateGroupLoader stcLoader = STLoaderFactory.newSTLoader(); return newIDLCompiler(idlLoader, inputResourceLocator, outputFileLocator, astTransformer, stcLoader); }
public static final DefinitionSourceGenerator newDefinitionSourceGenerator() { final IDLLoader idlLoader = IDLLoaderChainFactory.newLoader(); final BasicInputResourceLocator inputResourceLocator = new BasicInputResourceLocator(); final BasicOutputFileLocator outputFileLocator = new BasicOutputFileLocator(); final BasicASTTransformer astTransformer = new BasicASTTransformer(); astTransformer.nodeFactoryItf = new STNodeFactoryImpl(); final StringTemplateGroupLoader stcLoader = STLoaderFactory.newSTLoader(); final IDLVisitor idlCompiler = IDLBackendFactory.newIDLCompiler(idlLoader, inputResourceLocator, outputFileLocator, astTransformer, stcLoader); return newDefinitionSourceGenerator(inputResourceLocator, outputFileLocator, idlLoader, idlCompiler, astTransformer, stcLoader); }
public static DefinitionCompiler newDefinitionCompiler() { final IDLLoader idlLoader = IDLLoaderChainFactory.newLoader(); final BasicInputResourceLocator inputResourceLocator = new BasicInputResourceLocator(); final BasicOutputFileLocator outputFileLocator = new BasicOutputFileLocator(); final ImplementationLocator implementationLocator = new BasicImplementationLocator(); final BasicASTTransformer astTransformer = new BasicASTTransformer(); astTransformer.nodeFactoryItf = new STNodeFactoryImpl(); final StringTemplateGroupLoader stcLoader = STLoaderFactory.newSTLoader(); final IDLVisitor idlCompiler = IDLBackendFactory.newIDLCompiler(idlLoader, inputResourceLocator, outputFileLocator, astTransformer, stcLoader); final DefinitionSourceGenerator definitionSourceGenerator = newDefinitionSourceGenerator( inputResourceLocator, outputFileLocator, idlLoader, idlCompiler, astTransformer, stcLoader); final CompilerWrapper compilerWrapper = new GccCompilerWrapper(); final MPPWrapper mppWrapper = new BasicMPPWrapper(); return newDefinitionCompiler(definitionSourceGenerator, implementationLocator, outputFileLocator, compilerWrapper, mppWrapper); }
public static GraphCompiler newGraphCompiler() { final IDLLoader idlLoader = IDLLoaderChainFactory.newLoader(); final BasicInputResourceLocator inputResourceLocator = new BasicInputResourceLocator(); final BasicOutputFileLocator outputFileLocator = new BasicOutputFileLocator(); final ImplementationLocator implementationLocator = new BasicImplementationLocator(); final BasicASTTransformer astTransformer = new BasicASTTransformer(); astTransformer.nodeFactoryItf = new STNodeFactoryImpl(); final StringTemplateGroupLoader stcLoader = STLoaderFactory.newSTLoader(); final IDLVisitor idlCompiler = IDLBackendFactory.newIDLCompiler(idlLoader, inputResourceLocator, outputFileLocator, astTransformer, stcLoader); final DefinitionSourceGenerator definitionSourceGenerator = newDefinitionSourceGenerator( inputResourceLocator, outputFileLocator, idlLoader, idlCompiler, astTransformer, stcLoader); final CompilerWrapper compilerWrapper = new GccCompilerWrapper(); final MPPWrapper mppWrapper = new BasicMPPWrapper(); final DefinitionCompiler definitionCompiler = newDefinitionCompiler( definitionSourceGenerator, implementationLocator, outputFileLocator, compilerWrapper, mppWrapper); return newGraphCompiler(inputResourceLocator, implementationLocator, outputFileLocator, compilerWrapper, mppWrapper, definitionCompiler, stcLoader); }