Class MethodViewModel


public class MethodViewModel extends MemberViewModel
This utility class renders Method objects into a more human-readable format. It can be used as a Java type renderer in Intellij-based IDE to support debugging.
  • Method Details

    • render

      public static MethodViewModel render(Clazz clazz, Method method)
      A wrapper utility method that wraps a Method object in a MethodViewModel
      Parameters:
      clazz - The Clazz that the Method belongs to.
      method - The Method object to be rendered.
      Returns:
      An abstract representation of the Method object.
    • renderPreview

      public String renderPreview()
      A utility method that renders a Method entry into a preview string, e.g., private int bar(Foo obj)
      Returns:
      A string previewing the method signature.