Class MethodHelper

java.lang.Object
io.smallrye.graphql.schema.helper.MethodHelper

public class MethodHelper extends Object
Helping with method operations. Use to get the correct name for a method (so remove the get/set/is)
Author:
Phillip Kruger (phillip.kruger@redhat.com)
  • Method Details

    • getPropertyName

      public static String getPropertyName(Direction direction, String methodName)
      Get the correct field name from a method
      Parameters:
      direction - the direction
      methodName - the method name
      Returns:
      the field name
    • isPropertyMethod

      @Deprecated public static boolean isPropertyMethod(Direction direction, String methodName)
      See if this is a getter or setter for a field property (depending on the direction)
      Parameters:
      direction - The direction
      methodName - the methodName
      Returns:
      true if it is
    • isPropertyMethod

      public static boolean isPropertyMethod(Direction direction, org.jboss.jandex.MethodInfo method)
      See if this is a getter or setter for a field property (depending on the direction)
      Parameters:
      direction - The direction
      method - the method
      Returns:
      true if it is