use of org.whole.lang.builders.IBuilder in project whole by wholeplatform.
the class MappingLanguageDeployer method deploy.
public void deploy(ReflectionFactory platform) {
platform.addLanguageKit(new MappingLanguageKit());
platform.addOperationFactory(MappingLanguageKit.URI, GenericBuilderAdapterOperation.ID, new IBuilderFactory() {
public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
return new MappingGenericBuilderAdapter((IMappingBuilder) strategy, entityContext);
}
});
platform.addOperationFactory(MappingLanguageKit.URI, SpecificBuilderAdapterOperation.ID, new IBuilderFactory() {
public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
return new MappingSpecificBuilderAdapter(strategy, entityContext);
}
});
}
use of org.whole.lang.builders.IBuilder in project whole by wholeplatform.
the class TestEventsLanguageDeployer method deploy.
public void deploy(ReflectionFactory platform) {
if (ReflectionFactory.getLanguageKitRegistry().containsResource(TestEventsLanguageKit.URI, false, null))
return;
platform.addLanguageKit(new TestEventsLanguageKit());
platform.addOperationFactory(TestEventsLanguageKit.URI, GenericBuilderAdapterOperation.ID, new IBuilderFactory() {
public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
return new TestEventsGenericBuilderAdapter((ITestEventsBuilder) strategy, entityContext);
}
});
platform.addOperationFactory(TestEventsLanguageKit.URI, SpecificBuilderAdapterOperation.ID, new IBuilderFactory() {
public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
return new TestEventsSpecificBuilderAdapter(strategy, entityContext);
}
});
}
use of org.whole.lang.builders.IBuilder in project whole by wholeplatform.
the class TestsLanguageDeployer method deploy.
public void deploy(ReflectionFactory platform) {
platform.addLanguageKit(new TestsLanguageKit());
platform.addOperationFactory(TestsLanguageKit.URI, GenericBuilderAdapterOperation.ID, new IBuilderFactory() {
public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
return new TestsGenericBuilderAdapter((ITestsBuilder) strategy, entityContext);
}
});
platform.addOperationFactory(TestsLanguageKit.URI, SpecificBuilderAdapterOperation.ID, new IBuilderFactory() {
public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
return new TestsSpecificBuilderAdapter(strategy, entityContext);
}
});
platform.addOperationFactory(TestsLanguageKit.URI, PrettyPrinterOperation.ID, new IVisitorFactory() {
public IVisitor create(IOperation operation, int stage) {
return new TestsPrettyPrinterVisitor((PrettyPrinterOperation) operation);
}
});
platform.addOperationFactory(TestsLanguageKit.URI, InterpreterOperation.ID, new IVisitorFactory() {
public IVisitor create(IOperation operation, int stage) {
if (stage == 0)
return new TestsLearningInterpreterVisitor();
else
return null;
}
});
platform.addOperationFactory(TestsLanguageKit.URI, ContentAssistOperation.ID, new IVisitorFactory() {
public IVisitor create(IOperation operation, int stage) {
return new TestsContentAssistVisitor();
}
});
}
use of org.whole.lang.builders.IBuilder in project whole by wholeplatform.
the class VersionsLanguageDeployer method deploy.
public void deploy(ReflectionFactory platform) {
platform.addLanguageKit(new VersionsLanguageKit());
platform.addOperationFactory(VersionsLanguageKit.URI, GenericBuilderAdapterOperation.ID, new IBuilderFactory() {
public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
return new VersionsGenericBuilderAdapter((IVersionsBuilder) strategy, entityContext);
}
});
platform.addOperationFactory(VersionsLanguageKit.URI, SpecificBuilderAdapterOperation.ID, new IBuilderFactory() {
public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
return new VersionsSpecificBuilderAdapter(strategy, entityContext);
}
});
}
use of org.whole.lang.builders.IBuilder in project whole by wholeplatform.
the class FirstOrderLogicLanguageDeployer method deploy.
public void deploy(ReflectionFactory platform) {
platform.addLanguageKit(new FirstOrderLogicLanguageKit());
platform.addOperationFactory(FirstOrderLogicLanguageKit.URI, GenericBuilderAdapterOperation.ID, new IBuilderFactory() {
public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
return new FirstOrderLogicGenericBuilderAdapter((IFirstOrderLogicBuilder) strategy, entityContext);
}
});
platform.addOperationFactory(FirstOrderLogicLanguageKit.URI, SpecificBuilderAdapterOperation.ID, new IBuilderFactory() {
public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
return new FirstOrderLogicSpecificBuilderAdapter(strategy, entityContext);
}
});
platform.addEditorKit(FirstOrderLogicTextualEditorKit.ID);
}
Aggregations