use of org.whole.lang.environment.builders.EnvironmentSpecificBuilderAdapter in project whole by wholeplatform.
the class EnvironmentLanguageDeployer method deploy.
public void deploy(ReflectionFactory platform) {
platform.addLanguageKit(new EnvironmentLanguageKit());
platform.addOperationFactory(EnvironmentLanguageKit.URI, GenericBuilderAdapterOperation.ID, new IBuilderFactory() {
public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
return new EnvironmentGenericBuilderAdapter((IEnvironmentBuilder) strategy, entityContext);
}
});
platform.addOperationFactory(EnvironmentLanguageKit.URI, SpecificBuilderAdapterOperation.ID, new IBuilderFactory() {
public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
return new EnvironmentSpecificBuilderAdapter(strategy, entityContext);
}
});
platform.addOperationFactory(EnvironmentLanguageKit.URI, InterpreterOperation.ID, new IVisitorFactory() {
public IVisitor create(IOperation operation, int stage) {
return stage == 0 ? new EnvironmentInterpreterVisitor() : null;
}
});
platform.addOperationFactory(EnvironmentLanguageKit.URI, ArtifactsGeneratorOperation.ID, new IVisitorFactory() {
public IVisitor create(IOperation operation, int stage) {
return stage == 0 ? new EnvironmentInterpreterVisitor() : null;
}
});
platform.addOperationFactory(EnvironmentLanguageKit.URI, PrettyPrinterOperation.ID, new IVisitorFactory() {
public IVisitor create(IOperation operation, int stage) {
return new EnvironmentPrettyPrinterVisitor((PrettyPrinterOperation) operation);
}
});
}
Aggregations