Package net.sf.saxon.expr.parser
Class Evaluator.SingleItem
- java.lang.Object
-
- net.sf.saxon.expr.parser.Evaluator
-
- net.sf.saxon.expr.parser.Evaluator.SingleItem
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.sf.saxon.expr.parser.Evaluator
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
-
-
Field Summary
Fields Modifier and Type Field Description static Evaluator.SingleItem
INSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Item
evaluate(Expression expr, XPathContext context)
Evaluate an expression to return a sequenceint
getCode()
Get the integer code for the evaluator
-
-
-
Field Detail
-
INSTANCE
public static final Evaluator.SingleItem INSTANCE
-
-
Method Detail
-
getCode
public int getCode()
Description copied from class:Evaluator
Get the integer code for the evaluator
-
evaluate
public Item evaluate(Expression expr, XPathContext context) throws XPathException
Description copied from class:Evaluator
Evaluate an expression to return a sequence- Specified by:
evaluate
in classEvaluator
- 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
-
-