Interface DependencyTracker

  • All Known Implementing Classes:
    DependencyTrackerEx, DependencyTrackerImpl

    public interface DependencyTracker
    Interface for constructing the formula dependency.
    Author:
    Henri Chen (henrichen at zkoss dot org) - dependency tracking
    • Method Detail

      • postProcessValueEval

        ValueEval postProcessValueEval​(OperationEvaluationContext ec,
                                       ValueEval opResult,
                                       boolean eval)
        Callback when evaluating a formula cell.
        Parameters:
        ec - the evaluation context of the evaluated formula cell.
        opResult - the precedent that might change the formula cell.
        eval - whether this reference is an evaluated result(e.g. from INDIRECT() function(true), or directly specified in formula(false))
        Returns:
        the ValueEval after the dependency checking
      • addDependency

        void addDependency​(OperationEvaluationContext ec,
                           Ptg[] ptgs)
        Construct formula reference dependencies.
        Parameters:
        ec - the evaluation context of the evaluated formula cell.
        ptgs - the precedent that might change the formula cell.
      • clearIndirectRefPrecedent

        void clearIndirectRefPrecedent​(OperationEvaluationContext ec)
        Clear precedent for an io.keikai.model.sys.dependency.IndirectRef
        Parameters:
        ec -
        Since:
        3.9.6
      • setIndirectRefPrecedent

        void setIndirectRefPrecedent​(OperationEvaluationContext ec,
                                     ValueEval precedent)
        Sets precedent for an io.keikai.model.sys.dependency.IndirectRef
        Parameters:
        ec -
        precedent -
        Since:
        3.9.6
      • clearOffsetRefPrecedent

        void clearOffsetRefPrecedent​(OperationEvaluationContext ec)
        Clear precedent for an io.keikai.model.sys.dependency.OffsetRef
        Parameters:
        ec -
        Since:
        5.1.0
      • setOffsetRefPrecedent

        void setOffsetRefPrecedent​(OperationEvaluationContext ec,
                                   ValueEval precedent)
        Sets precedent for an io.keikai.model.sys.dependency.OffsetRef
        Parameters:
        ec -
        precedent -
        Since:
        5.1.0