Class Evaluator
java.lang.Object
net.sf.saxon.expr.parser.Evaluator
- Direct Known Subclasses:
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
An Evaluator evaluates an expression to return a sequence
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classAn evaluator for arguments that in general return a sequence, where the sequence is evaluated eagerly.static final classAn evaluator that always returns the empty sequencestatic final classAn evaluator for arguments that in general return a sequence, where the sequence is evaluated lazily on first use.static final classAn evaluator for arguments that in general return a sequence, where the sequence is evaluated lazily on first use.static final classAn evaluator for arguments supplied as a literalstatic final classAn evaluator for an expression that makes use of an indexed variablestatic final classAn evaluator for arguments that in general return a sequence, where the sequence is evaluated lazily on first use, and where the value might be needed more than once.static final classA (default) evaluator for arguments supplied as an expression that will return either a singleton item, or an empty sequencestatic final classA push-mode evaluator for an expressionstatic final classAn evaluator for "shared append" expressions: used when the argument to a function is a block potentially containing a recursive call.static final classA (default) evaluator for arguments supplied as an expression that will always return a singleton itemstatic final classAn evaluator for arguments that in general return a sequence, where the sequence is evaluated lazily on first use, and where the value might be needed more than once.static final classAn evaluator for the first (streamed) argument of a streamable function call.static final classAn evaluator for a reference to an external parameter valuestatic final classAn evaluator for arguments supplied as a variable reference -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Sequenceevaluate(Expression expr, XPathContext context) Evaluate an expression to return a sequenceabstract intgetCode()Get the integer code for the evaluator
-
Constructor Details
-
Evaluator
public Evaluator()
-
-
Method Details
-
getCode
public abstract int getCode()Get the integer code for the evaluator- Returns:
- the integer code for the evaluator
-
evaluate
Evaluate an expression to return a sequence- 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
-