Class ModelCreator

java.lang.Object
io.smallrye.graphql.schema.creator.ModelCreator
Direct Known Subclasses:
ArgumentCreator, CustomScalarCreator, DirectiveTypeCreator, FieldCreator, OperationCreator

public abstract class ModelCreator extends Object
Abstract creator
Author:
Phillip Kruger (phillip.kruger@redhat.com)
  • Field Details

  • Constructor Details

  • Method Details

    • setDirectives

      public void setDirectives(Directives directives)
    • getReferenceCreator

      public ReferenceCreator getReferenceCreator()
    • getTypeAutoNameStrategy

      public TypeAutoNameStrategy getTypeAutoNameStrategy()
    • getReturnType

      protected static org.jboss.jandex.Type getReturnType(org.jboss.jandex.MethodInfo methodInfo)
      The return type.This is usually the method return type, but can also be adapted to something else
      Parameters:
      methodInfo - method
      Returns:
      the return type
    • getReturnType

      protected static org.jboss.jandex.Type getReturnType(org.jboss.jandex.FieldInfo fieldInfo)
      The return type. This is usually the method return type, but can also be adapted to something else
    • getDirectiveLocation

      public abstract String getDirectiveLocation()
    • populateField

      protected void populateField(Direction direction, Field field, org.jboss.jandex.Type type, Annotations annotations)
    • populateField

      protected void populateField(Direction direction, Field field, org.jboss.jandex.Type fieldType, org.jboss.jandex.Type methodType, Annotations annotations)