Package dev.metaschema.core.metapath.function


package dev.metaschema.core.metapath.function
Provides the core framework for defining and executing Metapath functions.

This package contains the foundational interfaces and classes for implementing functions that can be called within Metapath expressions. It supports function registration, resolution, and execution based on the XPath 3.1 function model.

Key Interfaces

  • IFunction - Represents a function signature with its name, arguments, return type, and properties
  • IFunctionLibrary - Provides access to a collection of function signatures
  • IFunctionExecutor - Executes a function with provided arguments
  • IArgument - Represents a single function argument signature

Key Classes

Usage

Functions are registered in libraries and resolved by name and arity during Metapath expression evaluation. The FunctionService loads function libraries using the Java ServiceLoader mechanism, making them available to the Metapath evaluator.

See Also: