Class MethodHelper
java.lang.Object
io.smallrye.graphql.schema.helper.MethodHelper
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
Modifier and TypeMethodDescriptionstatic StringgetPropertyName(Direction direction, String methodName) Get the correct field name from a methodstatic booleanisPropertyMethod(Direction direction, String methodName) Deprecated.static 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 Details
-
getPropertyName
Get the correct field name from a method- Parameters:
direction- the directionmethodName- the method name- Returns:
- the field name
-
isPropertyMethod
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
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
-
isPropertyMethod(Direction, MethodInfo)instead