- All Known Implementing Classes:
DefaultFunctionLibrary,FunctionLibrary
public interface IFunctionLibrary
Provides access to a collection of Metapath function signatures.
-
Method Summary
Modifier and TypeMethodDescriptiongetFunction(IEnhancedQName name, int arity) Retrieve the function with the provided namespace qualified name that supports the signature of the providedarity, if such a function exists.default booleanhasFunction(IEnhancedQName name, int arity) Determine if there is a function with the provided namespace qualified name that supports the signature of the providedarity.stream()Retrieve the collection of function signatures in this library as a stream.
-
Method Details
-
stream
Retrieve the collection of function signatures in this library as a stream.- Returns:
- a stream of function signatures
-
hasFunction
Determine if there is a function with the provided namespace qualified name that supports the signature of the providedarity.- Parameters:
name- the namespace qualified name of a group of functionsarity- the count of arguments for use in determining an argument signature match- Returns:
trueif a function signature matches orfalseotherwise
-
getFunction
Retrieve the function with the provided namespace qualified name that supports the signature of the providedarity, if such a function exists.- Parameters:
name- the namespace qualified name of a group of functionsarity- the count of arguments for use in determining an argument signature match- Returns:
- the matching function or
nullif no match exists
-