Object
MethodCaller
Allows to call methods of an object by name dynamically at a runtime.
Calls are done thru MethodHandle and not reflection which supposed to be faster.
Overloaded methods are not supported.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
MethodCaller
- Parameters:
lookup
- this is normally object returned byMethodHandles.lookup()
which is called in user module space. This allows MethodCaller to call cross module methods (methods which declared outside of xfunction module)object
- object which methods will be called- Throws:
Exception
-
-
Method Details
-
call
- Throws:
Throwable
NoSuchMethodException
-
call
- Throws:
Throwable
NoSuchMethodException
-