Class Evaluator.LazySequence
java.lang.Object
net.sf.saxon.expr.parser.Evaluator
net.sf.saxon.expr.parser.Evaluator.LazySequence
- Enclosing class:
Evaluator
An evaluator for arguments that in general return a sequence, where the sequence is evaluated
lazily on first use. This is appropriate when calling a function which might not use the value, or
might not use all of it. It returns a
LazySequence, which can only be read once, so
this is only suitable for use when calling a function that can be trusted to read the argument
once only.-
Nested Class Summary
Nested classes/interfaces inherited from class Evaluator
Evaluator.EagerSequence, Evaluator.EmptySequenceEvaluator, Evaluator.LazySequence, Evaluator.LazyTail, Evaluator.Literal, Evaluator.MakeIndexedVariable, Evaluator.MemoClosureEvaluator, Evaluator.OptionalItem, Evaluator.Process, Evaluator.SharedAppend, Evaluator.SingleItem, Evaluator.SingletonClosure, Evaluator.StreamingArgument, Evaluator.SuppliedParameter, Evaluator.Variable -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionevaluate(Expression expr, XPathContext context) Evaluate an expression to return a sequenceintgetCode()Get the integer code for the evaluator
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
LazySequence
public LazySequence()
-
-
Method Details
-
getCode
-
evaluate
Description copied from class:EvaluatorEvaluate an expression to return a sequence- Specified by:
evaluatein classEvaluator- Parameters:
expr- the expression to be evaluatedcontext- the dynamic context for evaluation- Returns:
- the result of the evaluation
- Throws:
XPathException- if any dynamic error occurs during the evaluation
-