Interface TuriFunction
- All Superinterfaces:
LngCallable,LngCallable.LngCallableClosure,ServiceLoaded
Represents a function in the Turi language system that can be loaded as a service.
This interface extends both LngCallable.LngCallableClosure for function execution
capabilities and ServiceLoaded for service loading functionality.
-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.turic.LngCallable
LngCallable.LngCallableClosure, LngCallable.LngCallableMacro -
Method Summary
Modifier and TypeMethodDescriptionstatic List<TuriFunction> Returns all instances of TuriFunction that are currently loaded in the system.name()Returns the identifier name of this function used for registration in the global heap space.Methods inherited from interface ch.turic.LngCallable
call
-
Method Details
-
getInstances
Returns all instances of TuriFunction that are currently loaded in the system. This method utilizes the ServiceLoader mechanism to discover and load all implementations of TuriFunction available in the classpath.- Returns:
- a List containing all discovered TuriFunction instances
-
name
String name()Returns the identifier name of this function used for registration in the global heap space. This name is used to reference and call the function within the Turi language environment. The name must be unique within the scope where the function is registered.- Returns:
- the unique name of the function used for registration and reference in the global space
-