Class MethodReference

java.lang.Object
org.springframework.aot.agent.MethodReference

public final class MethodReference extends Object
Reference to a Java method, identified by its owner class and the method name.

This implementation is ignoring parameters on purpose, as the goal here is to inform developers on invocations requiring additional RuntimeHints configuration, not precisely identifying a method.

Since:
6.0
Author:
Brian Clozel
  • Method Details

    • of

      public static MethodReference of(Class<?> klass, String methodName)
    • getClassName

      public String getClassName()
      Return the declaring class for this method.
      Returns:
      the declaring class name
    • getMethodName

      public String getMethodName()
      Return the name of the method.
      Returns:
      the method name
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object