use of org.whole.lang.queries.visitors.QueriesInterpreterVisitor in project whole by wholeplatform.
the class QueriesLanguageDeployer method deploy.
public void deploy(ReflectionFactory platform) {
platform.addLanguageKit(new QueriesLanguageKit());
platform.addOperationFactory(QueriesLanguageKit.URI, GenericBuilderAdapterOperation.ID, new IBuilderFactory() {
public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
return new QueriesGenericBuilderAdapter((IQueriesBuilder) strategy, entityContext);
}
});
platform.addOperationFactory(QueriesLanguageKit.URI, SpecificBuilderAdapterOperation.ID, new IBuilderFactory() {
public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
return new QueriesSpecificBuilderAdapter(strategy, entityContext);
}
});
platform.addOperationFactory(QueriesLanguageKit.URI, InterpreterOperation.ID, new IVisitorFactory() {
public IVisitor create(IOperation operation, int stage) {
if (stage == 0)
return new QueriesInterpreterVisitor();
else
return null;
}
});
platform.addOperationFactory(QueriesLanguageKit.URI, DynamicCompilerOperation.ID, new IVisitorFactory() {
public IVisitor create(IOperation operation, int stage) {
if (stage == 0)
return new QueriesDynamicCompilerVisitor();
else
return null;
}
});
platform.addOperationFactory(QueriesLanguageKit.URI, PrettyPrinterOperation.ID, new IVisitorFactory() {
public IVisitor create(IOperation operation, int stage) {
return new QueriesPrettyPrinterVisitor((PrettyPrinterOperation) operation);
}
});
}
Aggregations