use of org.whole.lang.scripts.visitors.ScriptsInterpreterVisitor in project whole by wholeplatform.
the class ScriptsLanguageDeployer method deploy.
public void deploy(ReflectionFactory platform) {
platform.addLanguageKit(new ScriptsLanguageKit());
platform.addOperationFactory(ScriptsLanguageKit.URI, GenericBuilderAdapterOperation.ID, new IBuilderFactory() {
public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
return new ScriptsGenericBuilderAdapter((IScriptsBuilder) strategy, entityContext);
}
});
platform.addOperationFactory(ScriptsLanguageKit.URI, SpecificBuilderAdapterOperation.ID, new IBuilderFactory() {
public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
return new ScriptsSpecificBuilderAdapter(strategy, entityContext);
}
});
platform.addOperationFactory(ScriptsLanguageKit.URI, InterpreterOperation.ID, new IVisitorFactory() {
public IVisitor create(IOperation operation, int stage) {
if (stage == 0)
return new ScriptsInterpreterVisitor();
else
return null;
}
});
}
Aggregations