use of org.whole.lang.artifacts.visitors.ArtifactsInterpreterVisitor in project whole by wholeplatform.
the class ArtifactsLanguageDeployer method deploy.
public void deploy(ReflectionFactory platform) {
platform.addLanguageKit(new ArtifactsLanguageKit());
platform.addOperationFactory(ArtifactsLanguageKit.URI, GenericBuilderAdapterOperation.ID, new IBuilderFactory() {
public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
return new ArtifactsGenericBuilderAdapter((IArtifactsBuilder) strategy, entityContext);
}
});
platform.addOperationFactory(ArtifactsLanguageKit.URI, SpecificBuilderAdapterOperation.ID, new IBuilderFactory() {
public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
return new ArtifactsSpecificBuilderAdapter(strategy, entityContext);
}
});
platform.addOperationFactory(ArtifactsLanguageKit.URI, ArtifactsGeneratorOperation.ID, new IVisitorFactory() {
public IVisitor create(IOperation operation, int stage) {
return new ResourceArtifactsGeneratorVisitor();
}
});
platform.addOperationFactory(ArtifactsLanguageKit.URI, InterpreterOperation.ID, new IVisitorFactory() {
public IVisitor create(IOperation operation, int stage) {
if (stage == 0)
return new ArtifactsInterpreterVisitor();
else
return null;
}
});
}
Aggregations