public abstract class Evaluator
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static Evaluator |
EAGER_SEQUENCE
An evaluator for arguments that in general return a sequence, where the sequence is evaluated
eagerly.
|
static Evaluator |
LAZY_SEQUENCE
An evaluator for arguments that in general return a sequence, where the sequence is evaluated
lazily on first use.
|
static Evaluator |
LITERAL
An evaluator for arguments supplied as a literal
|
static Evaluator |
OPTIONAL_ITEM
A (default) evaluator for arguments supplied as an expression that will return either a
singleton item, or an empty sequence
|
static Evaluator |
SINGLE_ITEM
A (default) evaluator for arguments supplied as an expression that will always return a
singleton item
|
static Evaluator |
VARIABLE
An evaluator for arguments supplied as a variable reference
|
Constructor and Description |
---|
Evaluator() |
Modifier and Type | Method and Description |
---|---|
abstract Sequence |
evaluate(Expression expr,
XPathContext context)
Evaluate an expression to return a sequence
|
public static final Evaluator LITERAL
public static final Evaluator VARIABLE
public static final Evaluator SINGLE_ITEM
public static final Evaluator OPTIONAL_ITEM
public static final Evaluator LAZY_SEQUENCE
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.public static final Evaluator EAGER_SEQUENCE
public abstract Sequence evaluate(Expression expr, XPathContext context) throws XPathException
expr
- the expression to be evaluatedcontext
- the dynamic context for evaluationXPathException
- if any dynamic error occurs during the evaluationCopyright (c) 2004-2018 Saxonica Limited. All rights reserved.