Class MethodRegisterUtility

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

public class MethodRegisterUtility
extends java.lang.Object
implements ExtensionInterfaceVersion
Author:
Peter Verhas date Jul 22, 2012
  • Field Summary

    Fields inherited from interface com.scriptbasic.interfaces.ExtensionInterfaceVersion

    EXTENSION_INTERFACE_VERSION
  • Method Summary

    Modifier and Type Method Description
    static void registerFunctions​(java.lang.Class<?> klass, Interpreter interpreter)
    Register all annotated methods of the class klass so that they can be accessed from BASIC.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • 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