The reflect.Method class

The reflect.Method class is a generic API to inspect methods.

This class is provided in the reflect C-Extension library; To use this class, import the reflect package with:
IMPORT reflect

A reflect.Method object is the runtime representation of a method. It can be used to describe method parameters and return values and identify the method by its name.


The exceptions thrown by the reflect.* API can only be caught with a TRY/CATCH block: If WHENEVER ERROR CONTINUE is active and the reflection API throws an exception, the program stops.