Module dev.metaschema.core
Class MpRecurseDepth
java.lang.Object
dev.metaschema.core.metapath.function.library.MpRecurseDepth
Provides new Metapath functions that evaluate a Metapath recursively over
sequences generated by evaluating that expression.
-
Method Summary
Modifier and TypeMethodDescriptionrecurseDepth(ISequence<INodeItem> initialContext, IMetapathExpression recursionMetapath, DynamicContext dynamicContext) Evaluates therecursionMetapathstarting with the the items in theinitialContextand also recursively using the resulting items returned by evaluating this path.
-
Method Details
-
recurseDepth
@NonNull public static ISequence<INodeItem> recurseDepth(@NonNull ISequence<INodeItem> initialContext, @NonNull IMetapathExpression recursionMetapath, @NonNull DynamicContext dynamicContext) Evaluates therecursionMetapathstarting with the the items in theinitialContextand also recursively using the resulting items returned by evaluating this path.- Parameters:
initialContext- the sequence containing the initial node items to evaluate the Metapath againstrecursionMetapath- the Metapath expression to use for recursive evaluationdynamicContext- the dynamic context supporting evaluation- Returns:
- the Metapath node items resulting from the Metapath execution
-