public interface MethodCaller
| Modifier and Type | Interface and Description |
|---|---|
static interface |
MethodCaller.BoundMethodCaller
Represents a
MethodCaller that is attached to an instance |
| Modifier and Type | Method and Description |
|---|---|
default MethodCaller.BoundMethodCaller |
bindTo(@Nullable java.lang.Object instance)
Binds this caller to the specified instance.
|
java.lang.Object |
call(@Nullable java.lang.Object instance,
java.lang.Object... arguments)
Calls the method of this caller
|
java.lang.Object call(@Nullable
@Nullable java.lang.Object instance,
java.lang.Object... arguments)
instance - Instance to call from. Can be nullarguments - Invoking argumentsdefault MethodCaller.BoundMethodCaller bindTo(@Nullable @Nullable java.lang.Object instance)
instance - Instance to invoke from. Can be null in case of static
methods.