Interface ExecutableMethodsDefinition<T>

Type Parameters:
T - The bean type
All Known Implementing Classes:
AbstractExecutableMethodsDefinition

@Internal public interface ExecutableMethodsDefinition<T>
Collects a set of executable methods ExecutableMethod.
Since:
3.0
Author:
Denis Stepanov
  • Method Details

    • findMethod

      <R> @NonNull Optional<ExecutableMethod<T,R>> findMethod(@NonNull String name, @NonNull Class<?>... argumentTypes)
      Finds a single ExecutableMethod for the given name and argument types.
      Type Parameters:
      R - The return type
      Parameters:
      name - The method name
      argumentTypes - The argument types
      Returns:
      An optional ExecutableMethod
    • findPossibleMethods

      <R> @NonNull Stream<ExecutableMethod<T,R>> findPossibleMethods(@NonNull String name)
      Finds possible methods for the given method name.
      Type Parameters:
      R - The return type
      Parameters:
      name - The method name
      Returns:
      The possible methods
    • getExecutableMethods

      @NonNull List<ExecutableMethod<T,?>> getExecutableMethods()
      Returns:
      The ExecutableMethod instances for this definition
    • getExecutableMethodByIndex

      @NextMajorVersion("Remove default method in v6") default <R> @NonNull ExecutableMethod<T,R> getExecutableMethodByIndex(int index)
      Retrieves an ExecutableMethod from the collection of executable methods by the specified index.
      Parameters:
      index - The index of the ExecutableMethod to retrieve
      Returns:
      The ExecutableMethod at the specified index