Class TypeCreator

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

public class TypeCreator extends Object
This creates a type object.

The type object has fields that might reference other types that should still be created. It might also implement some interfaces that should be created. It might also have some operations that reference other types that should still be created.

Author:
Phillip Kruger (phillip.kruger@redhat.com)
  • Constructor Details

  • Method Details

    • addFields

      protected void addFields(Type type, org.jboss.jandex.ClassInfo classInfo, Reference reference)
    • referenceType

      protected ReferenceType referenceType()
    • getDirectiveLocation

      public String getDirectiveLocation()
    • setDirectives

      public void setDirectives(Directives directives)
    • create

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

      protected void addOperations(Type type, org.jboss.jandex.ClassInfo classInfo)
    • toOperations

      protected Map<String,Operation> toOperations(Map<org.jboss.jandex.DotName,List<org.jboss.jandex.MethodParameterInfo>> sourceFields, Type type, org.jboss.jandex.ClassInfo classInfo)