@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, wait
changeNode, deleteNode, insertAfter, insertBefore, visitBackRef, visitGraphQLCompositeType, visitGraphQLDirectiveContainer, visitGraphQLFieldsContainer, visitGraphQLInputFieldsContainer, visitGraphQLInputType, visitGraphQLModifiedType, visitGraphQLNullableType, visitGraphQLOutputType, visitGraphQLUnmodifiedType
public TraversalControl visitGraphQLAppliedDirectiveArgument(GraphQLAppliedDirectiveArgument node, TraverserContext<GraphQLSchemaElement> context)
visitGraphQLAppliedDirectiveArgument
in interface GraphQLTypeVisitor
public TraversalControl visitGraphQLAppliedDirective(GraphQLAppliedDirective node, TraverserContext<GraphQLSchemaElement> context)
GraphQLTypeVisitor
TraverserContext.getParentNode()
will be the schema element that this is applied to.
The graphql-java code base is trying to slowly move away from using GraphQLDirective
s when they really should be GraphQLAppliedDirective
svisitGraphQLAppliedDirective
in interface GraphQLTypeVisitor
node
- the applied directivecontext
- the traversal contextpublic TraversalControl visitGraphQLArgument(GraphQLArgument node, TraverserContext<GraphQLSchemaElement> context)
visitGraphQLArgument
in interface GraphQLTypeVisitor
public TraversalControl visitGraphQLInterfaceType(GraphQLInterfaceType node, TraverserContext<GraphQLSchemaElement> context)
visitGraphQLInterfaceType
in interface GraphQLTypeVisitor
public TraversalControl visitGraphQLEnumType(GraphQLEnumType node, TraverserContext<GraphQLSchemaElement> context)
visitGraphQLEnumType
in interface GraphQLTypeVisitor
public TraversalControl visitGraphQLEnumValueDefinition(GraphQLEnumValueDefinition node, TraverserContext<GraphQLSchemaElement> context)
visitGraphQLEnumValueDefinition
in interface GraphQLTypeVisitor
public TraversalControl visitGraphQLFieldDefinition(GraphQLFieldDefinition node, TraverserContext<GraphQLSchemaElement> context)
visitGraphQLFieldDefinition
in interface GraphQLTypeVisitor
public TraversalControl visitGraphQLDirective(GraphQLDirective node, TraverserContext<GraphQLSchemaElement> context)
GraphQLTypeVisitor
TraverserContext.getParentNode()
will be the schema element that this is applied to.
The graphql-java code base is trying to slowly move away from using GraphQLDirective
s when they really should be GraphQLAppliedDirective
s
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 GraphQLTypeVisitor
node
- the directivecontext
- the traversal contextpublic TraversalControl visitGraphQLInputObjectField(GraphQLInputObjectField node, TraverserContext<GraphQLSchemaElement> context)
visitGraphQLInputObjectField
in interface GraphQLTypeVisitor
public TraversalControl visitGraphQLInputObjectType(GraphQLInputObjectType node, TraverserContext<GraphQLSchemaElement> context)
visitGraphQLInputObjectType
in interface GraphQLTypeVisitor
public TraversalControl visitGraphQLList(GraphQLList node, TraverserContext<GraphQLSchemaElement> context)
visitGraphQLList
in interface GraphQLTypeVisitor
public TraversalControl visitGraphQLNonNull(GraphQLNonNull node, TraverserContext<GraphQLSchemaElement> context)
visitGraphQLNonNull
in interface GraphQLTypeVisitor
public TraversalControl visitGraphQLObjectType(GraphQLObjectType node, TraverserContext<GraphQLSchemaElement> context)
visitGraphQLObjectType
in interface GraphQLTypeVisitor
public TraversalControl visitGraphQLScalarType(GraphQLScalarType node, TraverserContext<GraphQLSchemaElement> context)
visitGraphQLScalarType
in interface GraphQLTypeVisitor
public TraversalControl visitGraphQLTypeReference(GraphQLTypeReference node, TraverserContext<GraphQLSchemaElement> context)
visitGraphQLTypeReference
in interface GraphQLTypeVisitor
public TraversalControl visitGraphQLUnionType(GraphQLUnionType node, TraverserContext<GraphQLSchemaElement> context)
visitGraphQLUnionType
in interface GraphQLTypeVisitor
protected TraversalControl visitGraphQLType(GraphQLSchemaElement node, TraverserContext<GraphQLSchemaElement> context)