Package graphql.schema.diffing
Class SchemaGraphFactory
- java.lang.Object
-
- graphql.schema.diffing.SchemaGraphFactory
-
public class SchemaGraphFactory extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private intcounterprivate java.lang.StringdebugPrefix
-
Constructor Summary
Constructors Constructor Description SchemaGraphFactory()SchemaGraphFactory(java.lang.String debugPrefix)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidaddSchemaVertex(SchemaGraph schemaGraph, GraphQLSchema graphQLSchema)private voidcreateAppliedDirectives(Vertex from, java.util.List<GraphQLDirective> appliedDirectives, SchemaGraph schemaGraph)SchemaGraphcreateGraph(GraphQLSchema schema)private java.lang.Stringdesc(java.lang.String desc)private voidhandleArgument(Vertex argumentVertex, GraphQLArgument graphQLArgument, SchemaGraph schemaGraph)private voidhandleDirective(Vertex directive, SchemaGraph schemaGraph, GraphQLSchema graphQLSchema)private voidhandleField(Vertex fieldVertex, GraphQLFieldDefinition fieldDefinition, SchemaGraph schemaGraph, GraphQLSchema graphQLSchema)private voidhandleInputField(Vertex inputFieldVertex, GraphQLInputObjectField inputField, SchemaGraph schemaGraph, GraphQLSchema graphQLSchema)private voidhandleInputObject(Vertex inputObject, SchemaGraph schemaGraph, GraphQLSchema graphQLSchema)private voidhandleInterfaceVertex(Vertex interfaceVertex, SchemaGraph schemaGraph, GraphQLSchema graphQLSchema)private voidhandleObjectVertex(Vertex objectVertex, SchemaGraph schemaGraph, GraphQLSchema graphQLSchema)private voidhandleUnion(Vertex unionVertex, SchemaGraph schemaGraph, GraphQLSchema graphQLSchema)private VertexnewArgument(GraphQLArgument graphQLArgument, SchemaGraph schemaGraph, boolean isIntrospectionNode)private voidnewDirective(GraphQLDirective directive, SchemaGraph schemaGraph)private voidnewEnum(GraphQLEnumType enumType, SchemaGraph schemaGraph, boolean isIntrospectionNode)private VertexnewField(GraphQLFieldDefinition graphQLFieldDefinition, SchemaGraph schemaGraph, boolean isIntrospectionNode)private VertexnewInputField(GraphQLInputObjectField inputField, SchemaGraph schemaGraph, boolean isIntrospectionNode)private voidnewInputObject(GraphQLInputObjectType inputObject, SchemaGraph schemaGraph, boolean isIntrospectionNode)private voidnewInterface(GraphQLInterfaceType interfaceType, SchemaGraph schemaGraph, boolean isIntrospectionNode)private voidnewObject(GraphQLObjectType graphQLObjectType, SchemaGraph schemaGraph, boolean isIntrospectionNode)private voidnewScalar(GraphQLScalarType scalarType, SchemaGraph schemaGraph, boolean isIntrospectionNode)private voidnewUnion(GraphQLUnionType unionType, SchemaGraph schemaGraph, boolean isIntrospectionNode)
-
-
-
Method Detail
-
createGraph
public SchemaGraph createGraph(GraphQLSchema schema)
-
addSchemaVertex
private void addSchemaVertex(SchemaGraph schemaGraph, GraphQLSchema graphQLSchema)
-
handleInputObject
private void handleInputObject(Vertex inputObject, SchemaGraph schemaGraph, GraphQLSchema graphQLSchema)
-
handleInputField
private void handleInputField(Vertex inputFieldVertex, GraphQLInputObjectField inputField, SchemaGraph schemaGraph, GraphQLSchema graphQLSchema)
-
handleUnion
private void handleUnion(Vertex unionVertex, SchemaGraph schemaGraph, GraphQLSchema graphQLSchema)
-
handleInterfaceVertex
private void handleInterfaceVertex(Vertex interfaceVertex, SchemaGraph schemaGraph, GraphQLSchema graphQLSchema)
-
handleObjectVertex
private void handleObjectVertex(Vertex objectVertex, SchemaGraph schemaGraph, GraphQLSchema graphQLSchema)
-
handleField
private void handleField(Vertex fieldVertex, GraphQLFieldDefinition fieldDefinition, SchemaGraph schemaGraph, GraphQLSchema graphQLSchema)
-
handleDirective
private void handleDirective(Vertex directive, SchemaGraph schemaGraph, GraphQLSchema graphQLSchema)
-
handleArgument
private void handleArgument(Vertex argumentVertex, GraphQLArgument graphQLArgument, SchemaGraph schemaGraph)
-
newObject
private void newObject(GraphQLObjectType graphQLObjectType, SchemaGraph schemaGraph, boolean isIntrospectionNode)
-
newField
private Vertex newField(GraphQLFieldDefinition graphQLFieldDefinition, SchemaGraph schemaGraph, boolean isIntrospectionNode)
-
newArgument
private Vertex newArgument(GraphQLArgument graphQLArgument, SchemaGraph schemaGraph, boolean isIntrospectionNode)
-
newScalar
private void newScalar(GraphQLScalarType scalarType, SchemaGraph schemaGraph, boolean isIntrospectionNode)
-
newInterface
private void newInterface(GraphQLInterfaceType interfaceType, SchemaGraph schemaGraph, boolean isIntrospectionNode)
-
newEnum
private void newEnum(GraphQLEnumType enumType, SchemaGraph schemaGraph, boolean isIntrospectionNode)
-
newUnion
private void newUnion(GraphQLUnionType unionType, SchemaGraph schemaGraph, boolean isIntrospectionNode)
-
newInputObject
private void newInputObject(GraphQLInputObjectType inputObject, SchemaGraph schemaGraph, boolean isIntrospectionNode)
-
createAppliedDirectives
private void createAppliedDirectives(Vertex from, java.util.List<GraphQLDirective> appliedDirectives, SchemaGraph schemaGraph)
-
newDirective
private void newDirective(GraphQLDirective directive, SchemaGraph schemaGraph)
-
newInputField
private Vertex newInputField(GraphQLInputObjectField inputField, SchemaGraph schemaGraph, boolean isIntrospectionNode)
-
desc
private java.lang.String desc(java.lang.String desc)
-
-