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 Details

    • of

      public static DirectiveInstance of(org.jboss.jandex.AnnotationInstance annotationInstance)
      Creates and returns a new DirectiveInstance based on the provided Jandex AnnotationInstance.
      Parameters:
      annotationInstance - The Jandex AnnotationInstance representing the GraphQL directive.
      Returns:
      A new DirectiveInstance instance.
    • buildDirective

      public String buildDirective()
      Builds the GraphQL directive string, including its name and arguments.
      Returns:
      The GraphQL directive string.
    • toString

      public String toString()
      Overrides:
      toString in class Object