Search in sources :

Example 1 with WorkflowsInterpreterVisitor

use of org.whole.lang.workflows.visitors.WorkflowsInterpreterVisitor in project whole by wholeplatform.

the class WorkflowsInterpreterDeployer method deploy.

public void deploy(ReflectionFactory platform) {
    platform.addOperationFactory(WorkflowsLanguageKit.URI, InterpreterOperation.ID, new IVisitorFactory() {

        public IVisitor create(IOperation operation, int stage) {
            if (stage == 0)
                return new WorkflowsInterpreterVisitor();
            else
                return null;
        }
    });
    platform.addOperationFactory(WorkflowsLanguageKit.URI, DynamicCompilerOperation.ID, new IVisitorFactory() {

        public IVisitor create(IOperation operation, int stage) {
            if (stage == 0)
                return new WorkflowsDynamicCompilerVisitor();
            else
                return null;
        }
    });
}
Also used : IOperation(org.whole.lang.operations.IOperation) WorkflowsInterpreterVisitor(org.whole.lang.workflows.visitors.WorkflowsInterpreterVisitor) IVisitor(org.whole.lang.visitors.IVisitor) IVisitorFactory(org.whole.lang.visitors.IVisitorFactory) WorkflowsDynamicCompilerVisitor(org.whole.lang.workflows.visitors.WorkflowsDynamicCompilerVisitor)

Aggregations

IOperation (org.whole.lang.operations.IOperation)1 IVisitor (org.whole.lang.visitors.IVisitor)1 IVisitorFactory (org.whole.lang.visitors.IVisitorFactory)1 WorkflowsDynamicCompilerVisitor (org.whole.lang.workflows.visitors.WorkflowsDynamicCompilerVisitor)1 WorkflowsInterpreterVisitor (org.whole.lang.workflows.visitors.WorkflowsInterpreterVisitor)1