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 Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static StringgetPropertyName(Direction direction, String methodName)Get the correct field name from a methodstatic booleanisPropertyMethod(Direction direction, String methodName)Deprecated.UseisPropertyMethod(Direction, MethodInfo)insteadstatic booleanisPropertyMethod(Direction direction, org.jboss.jandex.MethodInfo method)See if this is a getter or setter for a field property (depending on the direction)
-
-
-
Method Detail
-
getPropertyName
public static String getPropertyName(Direction direction, String methodName)
Get the correct field name from a method- Parameters:
direction- the directionmethodName- the method name- Returns:
- the field name
-
isPropertyMethod
@Deprecated public static boolean isPropertyMethod(Direction direction, String methodName)
Deprecated.UseisPropertyMethod(Direction, MethodInfo)insteadSee if this is a getter or setter for a field property (depending on the direction)- Parameters:
direction- The directionmethodName- 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 directionmethod- the method- Returns:
- true if it is
-
-