Package studio.mevera.imperat.util.asm
Interface MethodCaller
public interface MethodCaller
A high-level wrapper, responsible for invoking methods reflectively.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceRepresents aMethodCallerthat 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 setResult
-
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
-