IdempotentExpressionCacheFilterStrategy class final

Caches the results of idempotent predicates (no now(), random(), … and no references) for one batch of evaluations.

Port of IdempotentExpressionCacheFilterStrategy; the dependency graph uses a fresh one per batch when predicate caching is on.

Implemented types

Constructors

IdempotentExpressionCacheFilterStrategy()
Creates a strategy with an empty cache.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

filter(DataInstance sourceInstance, TreeReference nodeset, XPathExpression predicate, List<TreeReference> children, EvaluationContext context, List<TreeReference> next()) → List<TreeReference>
The children of nodeset that pass predicate, or the result of next (the rest of the chain) when this strategy doesn't apply.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited