public class DependencyTrackerImpl extends Object implements DependencyTracker
Constructor and Description |
---|
DependencyTrackerImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addDependency(OperationEvaluationContext ec,
Ptg[] ptgs)
Construct formula reference dependencies.
|
void |
clearIndirectRefPrecedent(OperationEvaluationContext ec)
Clear precedent for a
IndirectRef |
void |
clearOffsetRefPrecedent(OperationEvaluationContext ec)
Clear precedent for a
OffsetRef |
ValueEval |
postProcessValueEval(OperationEvaluationContext ec,
ValueEval opResult,
boolean eval)
Callback when evaluating a formula cell.
|
void |
setIndirectRefPrecedent(OperationEvaluationContext ec,
ValueEval preRef)
Sets precedent for a
IndirectRef |
void |
setOffsetRefPrecedent(OperationEvaluationContext ec,
ValueEval preRef)
Sets precedent for a
OffsetRef |
public ValueEval postProcessValueEval(OperationEvaluationContext ec, ValueEval opResult, boolean eval)
DependencyTracker
postProcessValueEval
in interface DependencyTracker
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))public void addDependency(OperationEvaluationContext ec, Ptg[] ptgs)
DependencyTracker
addDependency
in interface DependencyTracker
ec
- the evaluation context of the evaluated formula cell.ptgs
- the precedent that might change the formula cell.public void clearIndirectRefPrecedent(OperationEvaluationContext ec)
DependencyTracker
IndirectRef
clearIndirectRefPrecedent
in interface DependencyTracker
public void setIndirectRefPrecedent(OperationEvaluationContext ec, ValueEval preRef)
DependencyTracker
IndirectRef
setIndirectRefPrecedent
in interface DependencyTracker
public void clearOffsetRefPrecedent(OperationEvaluationContext ec)
DependencyTracker
OffsetRef
clearOffsetRefPrecedent
in interface DependencyTracker
public void setOffsetRefPrecedent(OperationEvaluationContext ec, ValueEval preRef)
DependencyTracker
OffsetRef
setOffsetRefPrecedent
in interface DependencyTracker
Copyright © 2023. All rights reserved.