public static final class Evaluator.LazySequence extends Evaluator
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.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
Modifier and Type | Field and Description |
---|---|
static Evaluator.LazySequence |
INSTANCE |
Constructor and Description |
---|
LazySequence() |
Modifier and Type | Method and Description |
---|---|
Sequence |
evaluate(Expression expr,
XPathContext context)
Evaluate an expression to return a sequence
|
int |
getCode()
Get the integer code for the evaluator
|
public static final Evaluator.LazySequence INSTANCE
public int getCode()
Evaluator
public Sequence evaluate(Expression expr, XPathContext context) throws XPathException
Evaluator
evaluate
in class Evaluator
expr
- the expression to be evaluatedcontext
- the dynamic context for evaluationXPathException
- if any dynamic error occurs during the evaluationCopyright (c) 2004-2022 Saxonica Limited. All rights reserved.