Class Evaluator.SingleItem

  • Enclosing class:

    public static final class Evaluator.SingleItem
    extends Evaluator
    A (default) evaluator for arguments supplied as an expression that will always return a singleton item
    • Method Detail

      • getCode

        public int getCode()
        Description copied from class: Evaluator
        Get the integer code for the evaluator
        Specified by:
        getCode in class Evaluator
        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 class Evaluator
        expr - the expression to be evaluated
        context - the dynamic context for evaluation
        the result of the evaluation
        XPathException - if any dynamic error occurs during the evaluation