Package net.sf.saxon.expr.parser
Class Evaluator.EagerSequence
- java.lang.Object
- 
- net.sf.saxon.expr.parser.Evaluator
- 
- net.sf.saxon.expr.parser.Evaluator.EagerSequence
 
 
- 
- Enclosing class:
- Evaluator
 
 public static final class Evaluator.EagerSequence extends Evaluator An evaluator for arguments that in general return a sequence, where the sequence is evaluated eagerly. This is appropriate when it is known that the function will always use the entire value, or when it will use it more than once.
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class net.sf.saxon.expr.parser.EvaluatorEvaluator.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 SummaryFields Modifier and Type Field Description static Evaluator.EagerSequenceINSTANCE
 - 
Constructor SummaryConstructors Constructor Description EagerSequence()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Sequenceevaluate(Expression expr, XPathContext context)Evaluate an expression to return a sequenceintgetCode()Get the integer code for the evaluator
 
- 
- 
- 
Field Detail- 
INSTANCEpublic static Evaluator.EagerSequence INSTANCE 
 
- 
 - 
Method Detail- 
getCodepublic int getCode() Description copied from class:EvaluatorGet the integer code for the evaluator
 - 
evaluatepublic Sequence evaluate(Expression expr, XPathContext context) throws XPathException Description copied from class:EvaluatorEvaluate an expression to return a sequence- Specified by:
- evaluatein class- Evaluator
- Parameters:
- expr- the expression to be evaluated
- context- the dynamic context for evaluation
- Returns:
- the result of the evaluation
- Throws:
- XPathException- if any dynamic error occurs during the evaluation
 
 
- 
 
-