Package com.scriptbasic.utility
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
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidregisterFunctions(java.lang.Class<?> klass, Interpreter interpreter)Register all annotated methods of the classklassso that they can be accessed from BASIC.
-
-
-
Method Detail
-
registerFunctions
public static void registerFunctions(java.lang.Class<?> klass, Interpreter interpreter) throws BasicRuntimeExceptionRegister all annotated methods of the classklassso that they can be accessed from BASIC.- Parameters:
klass- the class that contains the static methods to registerinterpreter- the interpreter to register the methods into as BASIC functions- Throws:
BasicRuntimeException- when a function is double defined and not an identical manner
-
-