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 Objectinvoke(Object instance, SequencedCollection<Object> arguments)
-
Method Details
-
invoke
@Nullable Object invoke(Object instance, SequencedCollection<Object> arguments) throws IllegalAccessException, InvocationTargetException - Parameters:
instance- an instance of the declaring class of the methodarguments- aSequencedCollectionof 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
-