Class CastFunction<ITEM extends IAnyAtomicItem>

java.lang.Object
dev.metaschema.core.metapath.function.library.CastFunction<ITEM>
Type Parameters:
ITEM - the Metapath atomic item's Java type
All Implemented Interfaces:
IFunctionExecutor

public final class CastFunction<ITEM extends IAnyAtomicItem> extends Object implements IFunctionExecutor
Implements the XPath 3.1 casting functions.
  • Method Details

    • execute

      public ISequence<ITEM> execute(@NonNull IFunction function, @NonNull List<ISequence<?>> arguments, @NonNull DynamicContext dynamicContext, IItem focus)
      Description copied from interface: IFunctionExecutor
      Execute the provided function using the provided arguments, dynamic context, and focus.
      Specified by:
      execute in interface IFunctionExecutor
      Parameters:
      function - the signature of the function
      arguments - the function arguments
      dynamicContext - the dynamic evaluation context
      focus - the current focus
      Returns:
      a sequence containing the result of the execution