This is a simple example which shows how to use extension functions. I've created an extension function (see SampleFunctionResolver.java) which contains the implementation for a function called "result-type". This function returns, as a String, the type of the parameter which is passed as the argument to the function.

Tips on usage:


Results:

The result type of test1 is: string

The result type of test2 is: boolean

The result type of test3 is: number