Interface StringEvaluator

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface StringEvaluator
A StringEvaluator is a function that typically encapsulates the logic for evaluating an expression that returns a string.
  • Method Summary

    Modifier and Type
    Method
    Description
    eval(XPathContext context)
    Evaluate the encapsulated expression
  • Method Details

    • eval

      String eval(XPathContext context) throws XPathException
      Evaluate the encapsulated expression
      Parameters:
      context - the evaluation context
      Returns:
      the result, as a string; or null to represent an empty sequence
      Throws:
      XPathException - if a dynamic error occurs