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
  • Method Details

    • findMethod

      @NonNull <R> @NonNull Optional<ExecutableMethod<T,R>> findMethod(@NonNull @NonNull String name, @NonNull @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

      @NonNull <R> @NonNull Stream<ExecutableMethod<T,R>> findPossibleMethods(@NonNull @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 @NonNull Collection<ExecutableMethod<T,?>> getExecutableMethods()
      Returns:
      The ExecutableMethod instances for this definition