Class TypeCreator
- java.lang.Object
-
- io.smallrye.graphql.schema.creator.type.TypeCreator
-
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 Summary
Constructors Constructor Description TypeCreator(ReferenceCreator referenceCreator, FieldCreator fieldCreator, OperationCreator operationCreator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddFields(Type type, org.jboss.jandex.ClassInfo classInfo, Reference reference)protected voidaddOperations(Type type, org.jboss.jandex.ClassInfo classInfo)Typecreate(org.jboss.jandex.ClassInfo classInfo, Reference reference)protected ReferenceTypereferenceType()voidsetDirectives(Directives directives)protected Map<String,Operation>toOperations(Map<org.jboss.jandex.DotName,List<org.jboss.jandex.MethodParameterInfo>> sourceFields, Type type, org.jboss.jandex.ClassInfo classInfo)
-
-
-
Constructor Detail
-
TypeCreator
public TypeCreator(ReferenceCreator referenceCreator, FieldCreator fieldCreator, OperationCreator operationCreator)
-
-
Method Detail
-
addFields
protected void addFields(Type type, org.jboss.jandex.ClassInfo classInfo, Reference reference)
-
referenceType
protected ReferenceType referenceType()
-
setDirectives
public void setDirectives(Directives directives)
-
addOperations
protected void addOperations(Type type, org.jboss.jandex.ClassInfo classInfo)
-
-