use of org.whole.lang.visitors.IVisitorFactory in project whole by wholeplatform.
the class SQLLanguageDeployer method deploy.
public void deploy(ReflectionFactory platform) {
platform.addLanguageKit(new SQLLanguageKit());
platform.addOperationFactory(SQLLanguageKit.URI, GenericBuilderAdapterOperation.ID, new IBuilderFactory() {
public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
return new SQLGenericBuilderAdapter((ISQLBuilder) strategy, entityContext);
}
});
platform.addOperationFactory(SQLLanguageKit.URI, SpecificBuilderAdapterOperation.ID, new IBuilderFactory() {
public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
return new SQLSpecificBuilderAdapter(strategy, entityContext);
}
});
platform.addOperationFactory(SQLLanguageKit.URI, PrettyPrinterOperation.ID, new IVisitorFactory() {
public IVisitor create(IOperation operation, int stage) {
return new SQLPrettyPrinterVisitor((PrettyPrinterOperation) operation);
}
});
platform.addOperationFactory(SQLLanguageKit.URI, InterpreterOperation.ID, new IVisitorFactory() {
public IVisitor create(IOperation operation, int stage) {
if (stage == 0)
return new SQLInterpreterVisitor();
else
return null;
}
});
}
use of org.whole.lang.visitors.IVisitorFactory in project whole by wholeplatform.
the class PropertiesLanguageDeployer method deploy.
public void deploy(ReflectionFactory platform) {
platform.addLanguageKit(new PropertiesLanguageKit());
platform.addOperationFactory(PropertiesLanguageKit.URI, GenericBuilderAdapterOperation.ID, new IBuilderFactory() {
public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
return new PropertiesGenericBuilderAdapter((IPropertiesBuilder) strategy, entityContext);
}
});
platform.addOperationFactory(PropertiesLanguageKit.URI, SpecificBuilderAdapterOperation.ID, new IBuilderFactory() {
public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
return new PropertiesSpecificBuilderAdapter(strategy, entityContext);
}
});
platform.addOperationFactory(PropertiesLanguageKit.URI, PrettyPrinterOperation.ID, new IVisitorFactory() {
public IVisitor create(IOperation operation, int stage) {
return new PropertiesPrettyPrinterVisitor((PrettyPrinterOperation) operation);
}
});
platform.addOperationFactory(PropertiesLanguageKit.URI, InterpreterOperation.ID, new IVisitorFactory() {
public IVisitor create(IOperation operation, int stage) {
if (stage == 0)
return new PropertiesInterpreterVisitor();
else
return null;
}
});
platform.addPersistenceKit("org.whole.lang.properties.PropertiesTextEditor", PropertiesTextPersistenceKit.instance());
platform.addPersistenceKit("org.whole.lang.properties.PropertiesXmlEditor", PropertiesXmlPersistenceKit.instance());
}
use of org.whole.lang.visitors.IVisitorFactory in project whole by wholeplatform.
the class IDEOperationsDeployer method deploy.
public void deploy(ReflectionFactory platform) {
platform.addOperationFactory(WorkflowsLanguageKit.URI, InterpreterOperation.ID, new IVisitorFactory() {
public IVisitor create(IOperation operation, int stage) {
if (stage == 0)
return new WorkflowsIDEInterpreterVisitor();
else
return null;
}
});
platform.addOperationFactory(WorkflowsLanguageKit.URI, ContentAssistOperation.ID, new IVisitorFactory() {
public IVisitor create(IOperation operation, int stage) {
return new WorkflowsIDEContentAssistVisitor();
}
});
new JavaReflectLibraryDeployer().deploy(platform);
}
use of org.whole.lang.visitors.IVisitorFactory 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);
}
});
}
use of org.whole.lang.visitors.IVisitorFactory in project whole by wholeplatform.
the class SemanticsLanguageDeployer method deploy.
public void deploy(ReflectionFactory platform) {
platform.addLanguageKit(new SemanticsLanguageKit());
platform.addOperationFactory(SemanticsLanguageKit.URI, GenericBuilderAdapterOperation.ID, new IBuilderFactory() {
public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
return new SemanticsGenericBuilderAdapter((ISemanticsBuilder) strategy, entityContext);
}
});
platform.addOperationFactory(SemanticsLanguageKit.URI, SpecificBuilderAdapterOperation.ID, new IBuilderFactory() {
public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
return new SemanticsSpecificBuilderAdapter(strategy, entityContext);
}
});
platform.addOperationFactory(SemanticsLanguageKit.URI, InterpreterOperation.ID, new IVisitorFactory() {
public IVisitor create(IOperation operation, int stage) {
if (stage == 0)
return new SemanticsInterpreterVisitor();
else
return null;
}
});
platform.addOperationFactory(SemanticsLanguageKit.URI, DynamicCompilerOperation.ID, new IVisitorFactory() {
public IVisitor create(IOperation operation, int stage) {
if (stage == 0)
return new SemanticsDynamicCompilerVisitor();
else
return null;
}
});
}
Aggregations