Class MethodRegisterUtility

java.lang.Object
com.scriptbasic.utility.MethodRegisterUtility
All Implemented Interfaces:
ExtensionInterfaceVersion

public class MethodRegisterUtility extends Object implements ExtensionInterfaceVersion
Author:
Peter Verhas date Jul 22, 2012
  • Method Details

    • registerFunctions

      public static void registerFunctions(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