Class DirectiveInstance
- java.lang.Object
-
- io.smallrye.graphql.client.model.helper.DirectiveInstance
-
public class DirectiveInstance extends Object
Represents an instance of a GraphQL directive, providing methods to build the directive string and convert the directive arguments to a string representation.- Author:
- mskacelik
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringbuildDirective()Builds the GraphQL directive string, including its name and arguments.static DirectiveInstanceof(org.jboss.jandex.AnnotationInstance annotationInstance)Creates and returns a newDirectiveInstancebased on the provided JandexAnnotationInstance.StringtoString()
-
-
-
Method Detail
-
of
public static DirectiveInstance of(org.jboss.jandex.AnnotationInstance annotationInstance)
Creates and returns a newDirectiveInstancebased on the provided JandexAnnotationInstance.- Parameters:
annotationInstance- The JandexAnnotationInstancerepresenting the GraphQL directive.- Returns:
- A new
DirectiveInstanceinstance.
-
buildDirective
public String buildDirective()
Builds the GraphQL directive string, including its name and arguments.- Returns:
- The GraphQL directive string.
-
-