@PublicApi public class GraphQLTypeVisitorStub extends java.lang.Object implements GraphQLTypeVisitor
GraphQLTypeVisitor for convenience.
Overwrite only required methods and/or visitGraphQLType(GraphQLSchemaElement, TraverserContext) as default fallback.| Constructor and Description |
|---|
GraphQLTypeVisitorStub() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchangeNode, deleteNode, insertAfter, insertBefore, visitBackRef, visitGraphQLCompositeType, visitGraphQLDirectiveContainer, visitGraphQLFieldsContainer, visitGraphQLInputFieldsContainer, visitGraphQLInputType, visitGraphQLModifiedType, visitGraphQLNullableType, visitGraphQLOutputType, visitGraphQLUnmodifiedTypepublic TraversalControl visitGraphQLAppliedDirectiveArgument(GraphQLAppliedDirectiveArgument node, TraverserContext<GraphQLSchemaElement> context)
visitGraphQLAppliedDirectiveArgument in interface GraphQLTypeVisitorpublic TraversalControl visitGraphQLAppliedDirective(GraphQLAppliedDirective node, TraverserContext<GraphQLSchemaElement> context)
GraphQLTypeVisitorTraverserContext.getParentNode() will be the schema element that this is applied to.
The graphql-java code base is trying to slowly move away from using GraphQLDirectives when they really should be GraphQLAppliedDirectivesvisitGraphQLAppliedDirective in interface GraphQLTypeVisitornode - the applied directivecontext - the traversal contextpublic TraversalControl visitGraphQLArgument(GraphQLArgument node, TraverserContext<GraphQLSchemaElement> context)
visitGraphQLArgument in interface GraphQLTypeVisitorpublic TraversalControl visitGraphQLInterfaceType(GraphQLInterfaceType node, TraverserContext<GraphQLSchemaElement> context)
visitGraphQLInterfaceType in interface GraphQLTypeVisitorpublic TraversalControl visitGraphQLEnumType(GraphQLEnumType node, TraverserContext<GraphQLSchemaElement> context)
visitGraphQLEnumType in interface GraphQLTypeVisitorpublic TraversalControl visitGraphQLEnumValueDefinition(GraphQLEnumValueDefinition node, TraverserContext<GraphQLSchemaElement> context)
visitGraphQLEnumValueDefinition in interface GraphQLTypeVisitorpublic TraversalControl visitGraphQLFieldDefinition(GraphQLFieldDefinition node, TraverserContext<GraphQLSchemaElement> context)
visitGraphQLFieldDefinition in interface GraphQLTypeVisitorpublic TraversalControl visitGraphQLDirective(GraphQLDirective node, TraverserContext<GraphQLSchemaElement> context)
GraphQLTypeVisitorTraverserContext.getParentNode() will be the schema element that this is applied to.
The graphql-java code base is trying to slowly move away from using GraphQLDirectives when they really should be GraphQLAppliedDirectives
and this is another place that has been left in. In the future this behavior will change and this will only visit directive definitions of a schema, not where
they are applied.visitGraphQLDirective in interface GraphQLTypeVisitornode - the directivecontext - the traversal contextpublic TraversalControl visitGraphQLInputObjectField(GraphQLInputObjectField node, TraverserContext<GraphQLSchemaElement> context)
visitGraphQLInputObjectField in interface GraphQLTypeVisitorpublic TraversalControl visitGraphQLInputObjectType(GraphQLInputObjectType node, TraverserContext<GraphQLSchemaElement> context)
visitGraphQLInputObjectType in interface GraphQLTypeVisitorpublic TraversalControl visitGraphQLList(GraphQLList node, TraverserContext<GraphQLSchemaElement> context)
visitGraphQLList in interface GraphQLTypeVisitorpublic TraversalControl visitGraphQLNonNull(GraphQLNonNull node, TraverserContext<GraphQLSchemaElement> context)
visitGraphQLNonNull in interface GraphQLTypeVisitorpublic TraversalControl visitGraphQLObjectType(GraphQLObjectType node, TraverserContext<GraphQLSchemaElement> context)
visitGraphQLObjectType in interface GraphQLTypeVisitorpublic TraversalControl visitGraphQLScalarType(GraphQLScalarType node, TraverserContext<GraphQLSchemaElement> context)
visitGraphQLScalarType in interface GraphQLTypeVisitorpublic TraversalControl visitGraphQLTypeReference(GraphQLTypeReference node, TraverserContext<GraphQLSchemaElement> context)
visitGraphQLTypeReference in interface GraphQLTypeVisitorpublic TraversalControl visitGraphQLUnionType(GraphQLUnionType node, TraverserContext<GraphQLSchemaElement> context)
visitGraphQLUnionType in interface GraphQLTypeVisitorprotected TraversalControl visitGraphQLType(GraphQLSchemaElement node, TraverserContext<GraphQLSchemaElement> context)