java.lang.Object
dev.metaschema.core.metapath.function.library.MpRecurseDepth

public final class MpRecurseDepth extends Object
Provides new Metapath functions that evaluate a Metapath recursively over sequences generated by evaluating that expression.
  • Method Details

    • recurseDepth

      @NonNull public static ISequence<INodeItem> recurseDepth(@NonNull ISequence<INodeItem> initialContext, @NonNull IMetapathExpression recursionMetapath, @NonNull DynamicContext dynamicContext)
      Evaluates the recursionMetapath starting with the the items in the initialContext and also recursively using the resulting items returned by evaluating this path.
      Parameters:
      initialContext - the sequence containing the initial node items to evaluate the Metapath against
      recursionMetapath - the Metapath expression to use for recursive evaluation
      dynamicContext - the dynamic context supporting evaluation
      Returns:
      the Metapath node items resulting from the Metapath execution