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 int
counter
private java.lang.String
debugPrefix
-
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 void
addSchemaVertex(SchemaGraph schemaGraph, GraphQLSchema graphQLSchema)
private void
createAppliedDirectives(Vertex from, java.util.List<GraphQLDirective> appliedDirectives, SchemaGraph schemaGraph)
SchemaGraph
createGraph(GraphQLSchema schema)
private java.lang.String
desc(java.lang.String desc)
private void
handleArgument(Vertex argumentVertex, GraphQLArgument graphQLArgument, SchemaGraph schemaGraph)
private void
handleDirective(Vertex directive, SchemaGraph schemaGraph, GraphQLSchema graphQLSchema)
private void
handleField(Vertex fieldVertex, GraphQLFieldDefinition fieldDefinition, SchemaGraph schemaGraph, GraphQLSchema graphQLSchema)
private void
handleInputField(Vertex inputFieldVertex, GraphQLInputObjectField inputField, SchemaGraph schemaGraph, GraphQLSchema graphQLSchema)
private void
handleInputObject(Vertex inputObject, SchemaGraph schemaGraph, GraphQLSchema graphQLSchema)
private void
handleInterfaceVertex(Vertex interfaceVertex, SchemaGraph schemaGraph, GraphQLSchema graphQLSchema)
private void
handleObjectVertex(Vertex objectVertex, SchemaGraph schemaGraph, GraphQLSchema graphQLSchema)
private void
handleUnion(Vertex unionVertex, SchemaGraph schemaGraph, GraphQLSchema graphQLSchema)
private Vertex
newArgument(GraphQLArgument graphQLArgument, SchemaGraph schemaGraph, boolean isIntrospectionNode)
private void
newDirective(GraphQLDirective directive, SchemaGraph schemaGraph)
private void
newEnum(GraphQLEnumType enumType, SchemaGraph schemaGraph, boolean isIntrospectionNode)
private Vertex
newField(GraphQLFieldDefinition graphQLFieldDefinition, SchemaGraph schemaGraph, boolean isIntrospectionNode)
private Vertex
newInputField(GraphQLInputObjectField inputField, SchemaGraph schemaGraph, boolean isIntrospectionNode)
private void
newInputObject(GraphQLInputObjectType inputObject, SchemaGraph schemaGraph, boolean isIntrospectionNode)
private void
newInterface(GraphQLInterfaceType interfaceType, SchemaGraph schemaGraph, boolean isIntrospectionNode)
private void
newObject(GraphQLObjectType graphQLObjectType, SchemaGraph schemaGraph, boolean isIntrospectionNode)
private void
newScalar(GraphQLScalarType scalarType, SchemaGraph schemaGraph, boolean isIntrospectionNode)
private void
newUnion(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)
-
-