Search in sources :

Example 41 with IEntityContext

use of org.whole.lang.contexts.IEntityContext in project whole by wholeplatform.

the class FlowchartLanguageDeployer method deploy.

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

        public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
            return new FlowchartGenericBuilderAdapter((IFlowchartBuilder) strategy, entityContext);
        }
    });
    platform.addOperationFactory(FlowchartLanguageKit.URI, SpecificBuilderAdapterOperation.ID, new IBuilderFactory() {

        public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
            return new FlowchartSpecificBuilderAdapter(strategy, entityContext);
        }
    });
    platform.addEditorKit(FlowchartFreeformEditorKit.ID);
}
Also used : IBuilder(org.whole.lang.builders.IBuilder) FlowchartSpecificBuilderAdapter(org.whole.lang.flowchart.builders.FlowchartSpecificBuilderAdapter) IEntityContext(org.whole.lang.contexts.IEntityContext) FlowchartGenericBuilderAdapter(org.whole.lang.flowchart.builders.FlowchartGenericBuilderAdapter) IFlowchartBuilder(org.whole.lang.flowchart.builders.IFlowchartBuilder) IBuilderFactory(org.whole.lang.builders.IBuilderFactory)

Example 42 with IEntityContext

use of org.whole.lang.contexts.IEntityContext in project whole by wholeplatform.

the class TypesLanguageDeployer method deploy.

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

        public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
            return new TypesGenericBuilderAdapter((ITypesBuilder) strategy, entityContext);
        }
    });
    platform.addOperationFactory(TypesLanguageKit.URI, SpecificBuilderAdapterOperation.ID, new IBuilderFactory() {

        public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
            return new TypesSpecificBuilderAdapter(strategy, entityContext);
        }
    });
}
Also used : IBuilder(org.whole.lang.builders.IBuilder) TypesGenericBuilderAdapter(org.whole.lang.types.builders.TypesGenericBuilderAdapter) IEntityContext(org.whole.lang.contexts.IEntityContext) IBuilderFactory(org.whole.lang.builders.IBuilderFactory) TypesSpecificBuilderAdapter(org.whole.lang.types.builders.TypesSpecificBuilderAdapter) ITypesBuilder(org.whole.lang.types.builders.ITypesBuilder)

Aggregations

IBuilder (org.whole.lang.builders.IBuilder)42 IBuilderFactory (org.whole.lang.builders.IBuilderFactory)42 IEntityContext (org.whole.lang.contexts.IEntityContext)42 IOperation (org.whole.lang.operations.IOperation)20 IVisitor (org.whole.lang.visitors.IVisitor)20 IVisitorFactory (org.whole.lang.visitors.IVisitorFactory)20 PrettyPrinterOperation (org.whole.lang.operations.PrettyPrinterOperation)11 IRedBlackTreeBuilder (org.whole.examples.datatypes.redblacktree.builders.IRedBlackTreeBuilder)1 RedBlackTreeGenericBuilderAdapter (org.whole.examples.datatypes.redblacktree.builders.RedBlackTreeGenericBuilderAdapter)1 RedBlackTreeSpecificBuilderAdapter (org.whole.examples.datatypes.redblacktree.builders.RedBlackTreeSpecificBuilderAdapter)1 IImpBuilder (org.whole.examples.lang.imp.builders.IImpBuilder)1 ImpGenericBuilderAdapter (org.whole.examples.lang.imp.builders.ImpGenericBuilderAdapter)1 ImpSpecificBuilderAdapter (org.whole.examples.lang.imp.builders.ImpSpecificBuilderAdapter)1 BytecodeGeneratorOperation (org.whole.examples.lang.imp.visitors.BytecodeGeneratorOperation)1 ImpBytecodeGeneratorVisitor (org.whole.examples.lang.imp.visitors.ImpBytecodeGeneratorVisitor)1 ImpDefUseValidatorVisitor (org.whole.examples.lang.imp.visitors.ImpDefUseValidatorVisitor)1 ImpInterpreterVisitor (org.whole.examples.lang.imp.visitors.ImpInterpreterVisitor)1 ImpPrettyPrinterVisitor (org.whole.examples.lang.imp.visitors.ImpPrettyPrinterVisitor)1 ImpResolverValidatorVisitor (org.whole.examples.lang.imp.visitors.ImpResolverValidatorVisitor)1 ActionsGenericBuilderAdapter (org.whole.lang.actions.builders.ActionsGenericBuilderAdapter)1