getDeclaringClass<D> abstract method

Class<D> getDeclaringClass<D>()

Gets the class that declares this method.

Type Parameters:

  • D: The expected declaring class type

Returns:

  • The Class<D> where this method is defined

Example:

final declaringClass = method.getDeclaringClass<MyClass>();

Implementation

Class<D> getDeclaringClass<D>();