Package gda.jython
Class GdaBuiltinManager
java.lang.Object
gda.jython.GdaBuiltinManager
Utility methods for registering builtins.
These cannot be part of
These cannot be part of
GdaBuiltin due to the @Untraversable annotation
in its superclass.-
Method Summary
Modifier and TypeMethodDescriptionstatic Collection<GdaBuiltin> builtinMethodsFrom(Class<?> clazz) Create a builtin wrapper around all annotated static methods in the given classstatic voidregisterBuiltinsFrom(Class<?> clazz) Create a Python Callable for each static method in the given class and register them as builtins with the current PySystemState.
-
Method Details
-
registerBuiltinsFrom
Create a Python Callable for each static method in the given class and register them as builtins with the current PySystemState.- Parameters:
clazz- with static/annotated methods
-
builtinMethodsFrom
Create a builtin wrapper around all annotated static methods in the given class- Parameters:
clazz- with annotated static methods- Returns:
- a collection of builtin functions
-