java.lang.Object
dev.metaschema.core.metapath.function.FunctionService
- All Implemented Interfaces:
IFunctionResolver
Supports looking up named Metapath functions that are loaded using the
ServiceLoader interface.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFunction(IEnhancedQName name, int arity) Retrieve the function with the provided name that supports the signature of the provided methods.static FunctionServiceGet the singleton instance of the function service.stream()Retrieve the collection of function signatures in this library as a stream.
-
Constructor Details
-
FunctionService
public FunctionService()Construct a new function service.
-
-
Method Details
-
getInstance
Get the singleton instance of the function service.- Returns:
- the service instance
-
stream
Retrieve the collection of function signatures in this library as a stream.- Returns:
- a stream of function signatures
-
getFunction
Description copied from interface:IFunctionResolverRetrieve the function with the provided name that supports the signature of the provided methods.- Specified by:
getFunctionin interfaceIFunctionResolver- Parameters:
name- the name of a group of functionsarity- the count of arguments for use in determining an argument signature match- Returns:
- the matching function
-