Class MethodRegisterUtility

    • Method Detail

      • registerFunctions

        public static void registerFunctions​(java.lang.Class<?> klass,
                                             Interpreter interpreter)
                                      throws BasicRuntimeException
        Register all annotated methods of the class klass so that they can be accessed from BASIC.
        Parameters:
        klass - the class that contains the static methods to register
        interpreter - the interpreter to register the methods into as BASIC functions
        Throws:
        BasicRuntimeException - when a function is double defined and not an identical manner