Search in sources :

Example 1 with FirstOrderLogicSpecificBuilderAdapter

use of org.whole.lang.firstorderlogic.builders.FirstOrderLogicSpecificBuilderAdapter in project whole by wholeplatform.

the class FirstOrderLogicLanguageDeployer method deploy.

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

        public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
            return new FirstOrderLogicGenericBuilderAdapter((IFirstOrderLogicBuilder) strategy, entityContext);
        }
    });
    platform.addOperationFactory(FirstOrderLogicLanguageKit.URI, SpecificBuilderAdapterOperation.ID, new IBuilderFactory() {

        public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
            return new FirstOrderLogicSpecificBuilderAdapter(strategy, entityContext);
        }
    });
    platform.addEditorKit(FirstOrderLogicTextualEditorKit.ID);
}
Also used : IBuilder(org.whole.lang.builders.IBuilder) IEntityContext(org.whole.lang.contexts.IEntityContext) FirstOrderLogicSpecificBuilderAdapter(org.whole.lang.firstorderlogic.builders.FirstOrderLogicSpecificBuilderAdapter) FirstOrderLogicGenericBuilderAdapter(org.whole.lang.firstorderlogic.builders.FirstOrderLogicGenericBuilderAdapter) IFirstOrderLogicBuilder(org.whole.lang.firstorderlogic.builders.IFirstOrderLogicBuilder) IBuilderFactory(org.whole.lang.builders.IBuilderFactory)

Aggregations

IBuilder (org.whole.lang.builders.IBuilder)1 IBuilderFactory (org.whole.lang.builders.IBuilderFactory)1 IEntityContext (org.whole.lang.contexts.IEntityContext)1 FirstOrderLogicGenericBuilderAdapter (org.whole.lang.firstorderlogic.builders.FirstOrderLogicGenericBuilderAdapter)1 FirstOrderLogicSpecificBuilderAdapter (org.whole.lang.firstorderlogic.builders.FirstOrderLogicSpecificBuilderAdapter)1 IFirstOrderLogicBuilder (org.whole.lang.firstorderlogic.builders.IFirstOrderLogicBuilder)1