Class ModelCreator
- java.lang.Object
-
- io.smallrye.graphql.schema.creator.ModelCreator
-
- Direct Known Subclasses:
ArgumentCreator,DirectiveTypeCreator,FieldCreator,OperationCreator
public abstract class ModelCreator extends Object
Abstract creator- Author:
- Phillip Kruger (phillip.kruger@redhat.com)
-
-
Field Summary
Fields Modifier and Type Field Description protected Directivesdirectivesprotected ReferenceCreatorreferenceCreator
-
Constructor Summary
Constructors Constructor Description ModelCreator(ReferenceCreator referenceCreator)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ReferenceCreatorgetReferenceCreator()protected static org.jboss.jandex.TypegetReturnType(org.jboss.jandex.FieldInfo fieldInfo)The return type.protected static org.jboss.jandex.TypegetReturnType(org.jboss.jandex.MethodInfo methodInfo)The the return type.This is usually the method return type, but can also be adapted to something elseTypeAutoNameStrategygetTypeAutoNameStrategy()protected voidpopulateField(Direction direction, Field field, org.jboss.jandex.Type type, Annotations annotations)protected voidpopulateField(Direction direction, Field field, org.jboss.jandex.Type fieldType, org.jboss.jandex.Type methodType, Annotations annotations)voidsetDirectives(Directives directives)
-
-
-
Field Detail
-
directives
protected Directives directives
-
referenceCreator
protected final ReferenceCreator referenceCreator
-
-
Constructor Detail
-
ModelCreator
public ModelCreator(ReferenceCreator referenceCreator)
-
-
Method Detail
-
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 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
-
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)
-
-