Interface Invoker
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A functional interface, that allows the invocation of a
MethodDescription
.-
Method Summary
Modifier and TypeMethodDescription@Nullable Object
invoke
(@NotNull Object instance, @NotNull SequencedCollection<Object> arguments)
-
Method Details
-
invoke
@Nullable @Nullable Object invoke(@NotNull @NotNull Object instance, @NotNull @NotNull SequencedCollection<Object> arguments) throws IllegalAccessException, InvocationTargetException - Parameters:
instance
- an instance of the declaring class of the methodarguments
- aSequencedCollection
of the arguments the method should be invoked with- Returns:
- the result of the method invocation
- Throws:
IllegalAccessException
- if this Method object is enforcing Java language access control and the underlying method is inaccessibleInvocationTargetException
- if an exception was thrown by the invoked method or constructor
-