Package net.sf.saxon.expr.elab
Class LiteralEvaluator
java.lang.Object
net.sf.saxon.expr.elab.LiteralEvaluator
- All Implemented Interfaces:
SequenceEvaluator
A
SequenceEvaluator
for literals. This is a trivial implementation of the interface,
because the value of a literal is already known.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionevaluate
(XPathContext context) Evaluate a construct to produce a value (which might be a lazily evaluated Sequence)
-
Constructor Details
-
LiteralEvaluator
-
-
Method Details
-
evaluate
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.
-