Package com.scriptbasic.utility
Class MethodRegisterUtility
java.lang.Object
com.scriptbasic.utility.MethodRegisterUtility
- All Implemented Interfaces:
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 TypeMethodDescriptionstatic voidregisterFunctions(Class<?> klass, Interpreter interpreter) Register all annotated methods of the classklassso that they can be accessed from BASIC.
-
Method Details
-
registerFunctions
public static void registerFunctions(Class<?> klass, Interpreter interpreter) throws BasicRuntimeException Register 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
-