use of org.whole.lang.contexts.IEntityContext in project whole by wholeplatform.
the class DBCFGLanguageDeployer method deploy.
public void deploy(ReflectionFactory platform) {
platform.addLanguageKit(new DBCFGLanguageKit());
platform.addOperationFactory(DBCFGLanguageKit.URI, GenericBuilderAdapterOperation.ID, new IBuilderFactory() {
public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
return new DBCFGGenericBuilderAdapter((IDBCFGBuilder) strategy, entityContext);
}
});
platform.addOperationFactory(DBCFGLanguageKit.URI, SpecificBuilderAdapterOperation.ID, new IBuilderFactory() {
public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
return new DBCFGSpecificBuilderAdapter(strategy, entityContext);
}
});
}
use of org.whole.lang.contexts.IEntityContext in project whole by wholeplatform.
the class RDBLanguageDeployer method deploy.
public void deploy(ReflectionFactory platform) {
platform.addLanguageKit(new RDBLanguageKit());
platform.addOperationFactory(RDBLanguageKit.URI, GenericBuilderAdapterOperation.ID, new IBuilderFactory() {
public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
return new RDBGenericBuilderAdapter((IRDBBuilder) strategy, entityContext);
}
});
platform.addOperationFactory(RDBLanguageKit.URI, SpecificBuilderAdapterOperation.ID, new IBuilderFactory() {
public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
return new RDBSpecificBuilderAdapter(strategy, entityContext);
}
});
}
use of org.whole.lang.contexts.IEntityContext 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.contexts.IEntityContext 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.contexts.IEntityContext 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