[Overview][Types][Classes][Procedures and functions][Index] Reference for unit 'Laz2_XPath' (#lazutils)

TXPathFunctionNode.Evaluate

Evaluates the XPath function name using the specified context and environment.

Declaration

Source position: laz2_xpath.pas line 125

public function TXPathFunctionNode.Evaluate(

  AContext: TXPathContext;

  AEnvironment: TXPathEnvironment

):TXPathVariable; override;

Arguments

AContext

  

Context node for the evaluation.

AEnvironment

  

XPath environment for the evaluation.

Function result

Result for the evaluated function.

Description

Evaluate is an overridden TXPathVariable function that implements the method defined in the ancestor class. Evaluate is used to derive the value for the function call using any arguments found in the XPath expression, and to store the result in the TXPathVariable return value.

Evaluate uses the AEnvironment parameter to access the function names (and their implementations) available in the XPath environment. If a function with the required name is not found in AEnvironment, the EvaluationError routine is called to raise an exception with the message in lrsEvalUnknownFunction.

Evaluate creates an internal TXPathVarList instance that is used to store the value for any arguments in the XPath expression. The list, and the context node in AContext, are passed to the function call. The internal list is freed prior to exiting from the method.

See also

TXPathVariable

  

Base class used to represent an XPath variables and results.

TXPathContext

  

Represents the Context for an XPath expression.

TXPathEnvironment

  

Provides access to functions and variables available in the XPath environment.

TXPathFunction

  

Implements an XPath function.

TXPathVarList

  

List used to store XPath variables in the XPath environment.


Version 4.0 Generated 2025-05-03 Home