Package net.sf.saxon.expr.elab
Class MemoClosureEvaluator
- java.lang.Object
-
- net.sf.saxon.expr.elab.MemoClosureEvaluator
-
- All Implemented Interfaces:
SequenceEvaluator
public class MemoClosureEvaluator extends Object implements SequenceEvaluator
AMemoClosureEvaluator
is aSequenceEvaluator
that evaluates an expression lazily and incrementally; it evaluates new items in the result as and when they are needed.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) Expression
input
(package private) PullEvaluator
inputEvaluator
(package private) boolean
singleton
-
Constructor Summary
Constructors Constructor Description MemoClosureEvaluator(Expression input, PullEvaluator inputEvaluator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Sequence
evaluate(XPathContext context)
Evaluate a construct to produce a value (which might be a lazily evaluated Sequence)
-
-
-
Field Detail
-
input
final Expression input
-
inputEvaluator
final PullEvaluator inputEvaluator
-
singleton
final boolean singleton
-
-
Constructor Detail
-
MemoClosureEvaluator
public MemoClosureEvaluator(Expression input, PullEvaluator inputEvaluator)
-
-
Method Detail
-
evaluate
public Sequence evaluate(XPathContext context) throws XPathException
Evaluate a construct to produce a value (which might be a lazily evaluated Sequence)- Specified by:
evaluate
in interfaceSequenceEvaluator
- Parameters:
context
- the evaluation context- Returns:
- a Sequence (not necessarily grounded)
- Throws:
XPathException
- if a dynamic error occurs during the evaluation.
-
-