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(@Nullable Object instance, SequencedCollection<Object> arguments) Invokes the method behindMethodDescription.
-
Method Details
-
invoke
@Nullable Object invoke(@Nullable Object instance, SequencedCollection<Object> arguments) throws IllegalAccessException, InvocationTargetException Invokes the method behind
MethodDescription.Please note that this method isn't intended to be directly used by bot developers. Calling it may result in undefined behavior!
- Parameters:
instance- an instance of the declaring class of the method or null for static methodsarguments- 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
-