Class InputTypeCreator

java.lang.Object
io.smallrye.graphql.schema.creator.type.InputTypeCreator
All Implemented Interfaces:
Creator<InputType>

public class InputTypeCreator extends Object implements Creator<InputType>
This creates an input type object. The input object has fields that might reference other types that should still be created.
Author:
Phillip Kruger (phillip.kruger@redhat.com)
  • Constructor Details

    • InputTypeCreator

      public InputTypeCreator(FieldCreator fieldCreator)
  • Method Details

    • create

      public InputType create(org.jboss.jandex.ClassInfo classInfo, Reference reference)
      Specified by:
      create in interface Creator<InputType>
    • getDirectiveLocation

      public String getDirectiveLocation()
      Specified by:
      getDirectiveLocation in interface Creator<InputType>
    • hasUseableConstructor

      public boolean hasUseableConstructor(org.jboss.jandex.ClassInfo classInfo)
    • findCreator

      public org.jboss.jandex.MethodInfo findCreator(org.jboss.jandex.ClassInfo classInfo)
      Returns a constructor or factory method to create instances of this class. Could either be the default constructor or any constructor or static method annotated with @JsonbCreator
      Parameters:
      classInfo - the class whose creator is to be found
      Returns:
      the creator, null, if no public constructor or factory method is found
    • setDirectives

      public void setDirectives(Directives directives)