Package org.formulacompiler.compiler.internal.model

Examples of org.formulacompiler.compiler.internal.model.ComputationModel


  public SaveableEngine compile() throws CompilerException, EngineException
  {
    final SpreadsheetToModelCompiler cc = new SpreadsheetToModelCompiler( this.binding, this.numericType,
        this.computationMode, this.compileToReadableCode || this.computationListenerEnabled );
    ComputationModel cm = cc.compile();

    final ModelToEngineCompiler.Config ecc = new ModelToEngineCompiler.Config();
    ecc.model = cm;
    ecc.numericType = this.numericType;
    ecc.factoryClass = this.factoryClass;
View Full Code Here


  {
    assert null == this.computationModel;

    final SectionBinding rootDef = this.binding.getRoot();
    final Environment env = this.binding.getEnvironment();
    this.computationModel = new ComputationModel( rootDef.getInputClass(), rootDef.getOutputClass(), getComputationMode(), env );
    new SectionModelCompiler( this, null, rootDef, this.computationModel.getRoot() );

    buildModel();

    if (this.copyCellNames) {
View Full Code Here

    mtcfg.model = cfg.model;
    mtcfg.numericType = cfg.numericType;
    mtcfg.constExprCellListenerSupport = cfg.constExprCellListenerSupport;
    mtcfg.computationListenerEnabled = cfg.computationListenerEnabled;
    final ComputationModelTransformer mt = TRANSFORMER_FACTORY.newInstance( mtcfg );
    final ComputationModel transformed = mt.destructiveTransform();

    final Config eccfg = cfg.clone();
    eccfg.model = transformed;
    final OptimizedModelToEngineCompiler ec = COMPILER_FACTORY.newInstance( eccfg );
    return ec.compile();
View Full Code Here

TOP

Related Classes of org.formulacompiler.compiler.internal.model.ComputationModel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.