enhancement
It should be possible to specify TL-Script functions via reflection, i.e. by configuring the qualified name of a Java method, it should be available in TL-Script.
Furthermore, it should be possible to offer all static functions defined in this class as TL-Script functions by deriving a class.
Application
- The class whose methods are to be available in TL-Script must be a derivation of com.top_logic.model.search.expr.config.operations.TLScriptFunctions.
- The annotation @ScriptPrefix("...") is used to specify a prefix that all functions in this class receive. If no prefix is specified, the name of the class (starting with a lower case letter) is used as the prefix.
- All methods that are "public static" are available in TL-Script. The name for TL-Script is made up of the prefix of the class and the method name. If the method name is insufficient, a different name can be set via @Name.
- The documentation for the TL-Script function is created from the JavaDoc during "mvn install".
- The value of the @Label("...") annotation on the method is used as the "speaking name" for the function.