Class DirectiveInstance
java.lang.Object
io.smallrye.graphql.client.model.helper.DirectiveInstance
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
Modifier and TypeMethodDescriptionBuilds 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.toString()
-
Method Details
-
of
Creates and returns a newDirectiveInstancebased on the provided JandexAnnotationInstance.- Parameters:
annotationInstance- The JandexAnnotationInstancerepresenting the GraphQL directive.- Returns:
- A new
DirectiveInstanceinstance.
-
buildDirective
Builds the GraphQL directive string, including its name and arguments.- Returns:
- The GraphQL directive string.
-
toString
-