Search in sources :

Example 1 with SyntaxTreesGenericBuilderAdapter

use of org.whole.lang.syntaxtrees.builders.SyntaxTreesGenericBuilderAdapter in project whole by wholeplatform.

the class SyntaxTreesLanguageDeployer method deploy.

public void deploy(ReflectionFactory platform) {
    platform.addLanguageKit(new SyntaxTreesLanguageKit());
    platform.addOperationFactory(SyntaxTreesLanguageKit.URI, GenericBuilderAdapterOperation.ID, new IBuilderFactory() {

        public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
            return new SyntaxTreesGenericBuilderAdapter((ISyntaxTreesBuilder) strategy, entityContext);
        }
    });
    platform.addOperationFactory(SyntaxTreesLanguageKit.URI, SpecificBuilderAdapterOperation.ID, new IBuilderFactory() {

        public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
            return new SyntaxTreesSpecificBuilderAdapter(strategy, entityContext);
        }
    });
}
Also used : IBuilder(org.whole.lang.builders.IBuilder) IEntityContext(org.whole.lang.contexts.IEntityContext) IBuilderFactory(org.whole.lang.builders.IBuilderFactory) ISyntaxTreesBuilder(org.whole.lang.syntaxtrees.builders.ISyntaxTreesBuilder) SyntaxTreesSpecificBuilderAdapter(org.whole.lang.syntaxtrees.builders.SyntaxTreesSpecificBuilderAdapter) SyntaxTreesGenericBuilderAdapter(org.whole.lang.syntaxtrees.builders.SyntaxTreesGenericBuilderAdapter)

Aggregations

IBuilder (org.whole.lang.builders.IBuilder)1 IBuilderFactory (org.whole.lang.builders.IBuilderFactory)1 IEntityContext (org.whole.lang.contexts.IEntityContext)1 ISyntaxTreesBuilder (org.whole.lang.syntaxtrees.builders.ISyntaxTreesBuilder)1 SyntaxTreesGenericBuilderAdapter (org.whole.lang.syntaxtrees.builders.SyntaxTreesGenericBuilderAdapter)1 SyntaxTreesSpecificBuilderAdapter (org.whole.lang.syntaxtrees.builders.SyntaxTreesSpecificBuilderAdapter)1