Package revxrsal.commands.core.reflect
Interface MethodCaller
public interface MethodCaller
A high-level wrapper, responsible for invoking methods reflectively.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Represents aMethodCaller
that is attached to an instance -
Method Summary
-
Method Details
-
call
Calls the method of this caller- Parameters:
instance
- Instance to call from. Can be nullarguments
- Invoking arguments- Returns:
- The return result
-
bindTo
Binds this caller to the specified instance. Calls from the bound method caller will no longer need an instance to call from.- Parameters:
instance
- Instance to invoke from. Can be null in case of static methods.- Returns:
- The bound method caller
-