use of org.whole.lang.actions.builders.IActionsBuilder in project whole by wholeplatform.
the class ActionsLanguageDeployer method deploy.
public void deploy(ReflectionFactory platform) {
platform.addLanguageKit(new ActionsLanguageKit());
platform.addOperationFactory(ActionsLanguageKit.URI, GenericBuilderAdapterOperation.ID, new IBuilderFactory() {
public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
return new ActionsGenericBuilderAdapter((IActionsBuilder) strategy, entityContext);
}
});
platform.addOperationFactory(ActionsLanguageKit.URI, SpecificBuilderAdapterOperation.ID, new IBuilderFactory() {
public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
return new ActionsSpecificBuilderAdapter(strategy, entityContext);
}
});
platform.addOperationFactory(ActionsLanguageKit.URI, InterpreterOperation.ID, new IVisitorFactory() {
public IVisitor create(IOperation operation, int stage) {
if (stage == 0)
return new ActionsInterpreterVisitor();
else
return null;
}
});
platform.addOperationFactory(ActionsLanguageKit.URI, DynamicCompilerOperation.ID, new IVisitorFactory() {
public IVisitor create(IOperation operation, int stage) {
if (stage == 0)
return new ActionsDynamicCompilerVisitor();
else
return null;
}
});
}
Aggregations