Class DescriptionHelper
java.lang.Object
io.smallrye.graphql.schema.helper.DescriptionHelper
Helper to get the correct Description.
Basically looking for the @Description annotation.
- Author:
- Phillip Kruger (phillip.kruger@redhat.com)
-
Method Summary
Modifier and TypeMethodDescriptiongetDescriptionForField(Annotations annotations, org.jboss.jandex.Type type) Get the Description on a field or argumentgetDescriptionForType(Annotations annotations) Get the description on a class type
-
Method Details
-
getDescriptionForField
public static Optional<String> getDescriptionForField(Annotations annotations, org.jboss.jandex.Type type) Get the Description on a field or argument- Parameters:
annotations- the annotations for that field/argumenttype- the java type (some types have default values)- Returns:
- the optional description
-
getDescriptionForType
Get the description on a class type- Parameters:
annotations- annotation on the class- Returns:
- the optional description
-