Class DirectiveHelper
java.lang.Object
io.smallrye.graphql.client.model.helper.DirectiveHelper
Utility methods for resolving GraphQL directives from annotated elements.
- Author:
- mskacelik
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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.
-
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.
-