Class DirectiveHelper

java.lang.Object
io.smallrye.graphql.client.model.helper.DirectiveHelper

public class DirectiveHelper extends Object
Utility methods for resolving GraphQL directives from annotated elements.
Author:
mskacelik
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static Stream<org.jboss.jandex.AnnotationInstance>
    resolveDirectives(Stream<org.jboss.jandex.AnnotationInstance> annotationInstances, String directiveLocation)
    Resolves GraphQL directives from a stream of annotation instances based on the given directive location.
    static Stream<org.jboss.jandex.AnnotationInstance>
    resolveDirectives(Stream<org.jboss.jandex.AnnotationInstance> annotationInstances, String directiveLocation, org.jboss.jandex.AnnotationTarget.Kind targetKind)
    Resolves GraphQL directives from a stream of annotation instances based on the given directive location and target kind.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DirectiveHelper

      public DirectiveHelper()
  • Method Details

    • resolveDirectives

      public static Stream<org.jboss.jandex.AnnotationInstance> resolveDirectives(Stream<org.jboss.jandex.AnnotationInstance> annotationInstances, String directiveLocation, org.jboss.jandex.AnnotationTarget.Kind targetKind)
      Resolves GraphQL directives from a stream of annotation instances based on the given directive location and target kind.
      Parameters:
      annotationInstances - The stream of annotation instances to filter.
      directiveLocation - The GraphQL directive location.
      targetKind - The target kind of the annotation.
      Returns:
      A stream of resolved annotation instances that match the specified criteria.
    • resolveDirectives

      public static Stream<org.jboss.jandex.AnnotationInstance> resolveDirectives(Stream<org.jboss.jandex.AnnotationInstance> annotationInstances, String directiveLocation)
      Resolves GraphQL directives from a stream of annotation instances based on the given directive location.
      Parameters:
      annotationInstances - The stream of annotation instances to filter.
      directiveLocation - The GraphQL directive location.
      Returns:
      A stream of resolved annotation instances that match the specified criteria.