use of org.whole.lang.math.builders.IMathBuilder in project whole by wholeplatform.
the class MathLanguageDeployer method deploy.
public void deploy(ReflectionFactory platform) {
platform.addLanguageKit(new MathLanguageKit());
platform.addOperationFactory(MathLanguageKit.URI, GenericBuilderAdapterOperation.ID, new IBuilderFactory() {
public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
return new MathGenericBuilderAdapter((IMathBuilder) strategy, entityContext);
}
});
platform.addOperationFactory(MathLanguageKit.URI, SpecificBuilderAdapterOperation.ID, new IBuilderFactory() {
public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
return new MathSpecificBuilderAdapter(strategy, entityContext);
}
});
platform.addOperationFactory(MathLanguageKit.URI, InterpreterOperation.ID, new IVisitorFactory() {
public IVisitor create(IOperation operation, int stage) {
if (stage == 0)
return new MathInterpreterVisitor();
else
return null;
}
});
}
Aggregations