Module dev.metaschema.core
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 Summary
-
Method Details
-
execute
public ISequence<ITEM> execute(@NonNull IFunction function, @NonNull List<ISequence<?>> arguments, @NonNull DynamicContext dynamicContext, IItem focus) Description copied from interface:IFunctionExecutorExecute the provided function using the provided arguments, dynamic context, and focus.- Specified by:
executein interfaceIFunctionExecutor- Parameters:
function- the signature of the functionarguments- the function argumentsdynamicContext- the dynamic evaluation contextfocus- the current focus- Returns:
- a sequence containing the result of the execution
-