Class DirectiveHelper


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

      • DirectiveHelper

        public DirectiveHelper()
    • Method Detail

      • 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.