Package graphql.schema
Class GraphQLTypeVisitorStub
java.lang.Object
graphql.schema.GraphQLTypeVisitorStub
- All Implemented Interfaces:
GraphQLTypeVisitor
- Direct Known Subclasses:
AppliedDirectiveArgumentsAreValid,AppliedDirectivesAreValid,CodeRegistryVisitor,DefaultValuesAreValid,DeprecatedInputObjectAndArgumentsAreValid,GraphQLTypeCollectingVisitor,GraphQLTypeResolvingVisitor,InputAndOutputTypesUsedAppropriately,NoUnbrokenInputCycles,OneOfInputObjectRules,TypeAndFieldRule,TypesImplementInterfaces
Base implementation of
GraphQLTypeVisitor for convenience.
Overwrite only required methods and/or visitGraphQLType(GraphQLSchemaElement, TraverserContext) as default fallback.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvisitGraphQLAppliedDirective(GraphQLAppliedDirective node, TraverserContext<GraphQLSchemaElement> context) This method will be called when a directive is applied to a schema element.visitGraphQLAppliedDirectiveArgument(GraphQLAppliedDirectiveArgument node, TraverserContext<GraphQLSchemaElement> context) visitGraphQLArgument(GraphQLArgument node, TraverserContext<GraphQLSchemaElement> context) visitGraphQLDirective(GraphQLDirective node, TraverserContext<GraphQLSchemaElement> context) This method will be called twice.visitGraphQLEnumType(GraphQLEnumType node, TraverserContext<GraphQLSchemaElement> context) visitGraphQLEnumValueDefinition(GraphQLEnumValueDefinition node, TraverserContext<GraphQLSchemaElement> context) visitGraphQLFieldDefinition(GraphQLFieldDefinition node, TraverserContext<GraphQLSchemaElement> context) visitGraphQLInputObjectField(GraphQLInputObjectField node, TraverserContext<GraphQLSchemaElement> context) visitGraphQLInputObjectType(GraphQLInputObjectType node, TraverserContext<GraphQLSchemaElement> context) visitGraphQLInterfaceType(GraphQLInterfaceType node, TraverserContext<GraphQLSchemaElement> context) visitGraphQLList(GraphQLList node, TraverserContext<GraphQLSchemaElement> context) visitGraphQLNonNull(GraphQLNonNull node, TraverserContext<GraphQLSchemaElement> context) visitGraphQLObjectType(GraphQLObjectType node, TraverserContext<GraphQLSchemaElement> context) visitGraphQLScalarType(GraphQLScalarType node, TraverserContext<GraphQLSchemaElement> context) protected TraversalControlvisitGraphQLType(GraphQLSchemaElement node, TraverserContext<GraphQLSchemaElement> context) visitGraphQLTypeReference(GraphQLTypeReference node, TraverserContext<GraphQLSchemaElement> context) visitGraphQLUnionType(GraphQLUnionType node, TraverserContext<GraphQLSchemaElement> context) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface graphql.schema.GraphQLTypeVisitor
changeNode, deleteNode, insertAfter, insertBefore, visitBackRef, visitGraphQLCompositeType, visitGraphQLDirectiveContainer, visitGraphQLFieldsContainer, visitGraphQLInputFieldsContainer, visitGraphQLInputType, visitGraphQLModifiedType, visitGraphQLNullableType, visitGraphQLOutputType, visitGraphQLUnmodifiedType
-
Constructor Details
-
GraphQLTypeVisitorStub
public GraphQLTypeVisitorStub()
-
-
Method Details
-
visitGraphQLAppliedDirectiveArgument
public TraversalControl visitGraphQLAppliedDirectiveArgument(GraphQLAppliedDirectiveArgument node, TraverserContext<GraphQLSchemaElement> context) - Specified by:
visitGraphQLAppliedDirectiveArgumentin interfaceGraphQLTypeVisitor
-
visitGraphQLAppliedDirective
public TraversalControl visitGraphQLAppliedDirective(GraphQLAppliedDirective node, TraverserContext<GraphQLSchemaElement> context) Description copied from interface:GraphQLTypeVisitorThis method will be called when a directive is applied to a schema element. TheTraverserContext.getParentNode()will be the schema element that this is applied to. The graphql-java code base is trying to slowly move away from usingGraphQLDirectives when they really should beGraphQLAppliedDirectives- Specified by:
visitGraphQLAppliedDirectivein interfaceGraphQLTypeVisitor- Parameters:
node- the applied directivecontext- the traversal context- Returns:
- how to control the visitation processing
-
visitGraphQLArgument
public TraversalControl visitGraphQLArgument(GraphQLArgument node, TraverserContext<GraphQLSchemaElement> context) - Specified by:
visitGraphQLArgumentin interfaceGraphQLTypeVisitor
-
visitGraphQLInterfaceType
public TraversalControl visitGraphQLInterfaceType(GraphQLInterfaceType node, TraverserContext<GraphQLSchemaElement> context) - Specified by:
visitGraphQLInterfaceTypein interfaceGraphQLTypeVisitor
-
visitGraphQLEnumType
public TraversalControl visitGraphQLEnumType(GraphQLEnumType node, TraverserContext<GraphQLSchemaElement> context) - Specified by:
visitGraphQLEnumTypein interfaceGraphQLTypeVisitor
-
visitGraphQLEnumValueDefinition
public TraversalControl visitGraphQLEnumValueDefinition(GraphQLEnumValueDefinition node, TraverserContext<GraphQLSchemaElement> context) - Specified by:
visitGraphQLEnumValueDefinitionin interfaceGraphQLTypeVisitor
-
visitGraphQLFieldDefinition
public TraversalControl visitGraphQLFieldDefinition(GraphQLFieldDefinition node, TraverserContext<GraphQLSchemaElement> context) - Specified by:
visitGraphQLFieldDefinitionin interfaceGraphQLTypeVisitor
-
visitGraphQLDirective
public TraversalControl visitGraphQLDirective(GraphQLDirective node, TraverserContext<GraphQLSchemaElement> context) Description copied from interface:GraphQLTypeVisitorThis method will be called twice. Once for a directive definition in a schema and then do each time a directive is applied to a schema element When it's applied to a schema element thenTraverserContext.getParentNode()will be the schema element that this is applied to. The graphql-java code base is trying to slowly move away from usingGraphQLDirectives when they really should beGraphQLAppliedDirectives 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.- Specified by:
visitGraphQLDirectivein interfaceGraphQLTypeVisitor- Parameters:
node- the directivecontext- the traversal context- Returns:
- how to control the visitation processing
-
visitGraphQLInputObjectField
public TraversalControl visitGraphQLInputObjectField(GraphQLInputObjectField node, TraverserContext<GraphQLSchemaElement> context) - Specified by:
visitGraphQLInputObjectFieldin interfaceGraphQLTypeVisitor
-
visitGraphQLInputObjectType
public TraversalControl visitGraphQLInputObjectType(GraphQLInputObjectType node, TraverserContext<GraphQLSchemaElement> context) - Specified by:
visitGraphQLInputObjectTypein interfaceGraphQLTypeVisitor
-
visitGraphQLList
public TraversalControl visitGraphQLList(GraphQLList node, TraverserContext<GraphQLSchemaElement> context) - Specified by:
visitGraphQLListin interfaceGraphQLTypeVisitor
-
visitGraphQLNonNull
public TraversalControl visitGraphQLNonNull(GraphQLNonNull node, TraverserContext<GraphQLSchemaElement> context) - Specified by:
visitGraphQLNonNullin interfaceGraphQLTypeVisitor
-
visitGraphQLObjectType
public TraversalControl visitGraphQLObjectType(GraphQLObjectType node, TraverserContext<GraphQLSchemaElement> context) - Specified by:
visitGraphQLObjectTypein interfaceGraphQLTypeVisitor
-
visitGraphQLScalarType
public TraversalControl visitGraphQLScalarType(GraphQLScalarType node, TraverserContext<GraphQLSchemaElement> context) - Specified by:
visitGraphQLScalarTypein interfaceGraphQLTypeVisitor
-
visitGraphQLTypeReference
public TraversalControl visitGraphQLTypeReference(GraphQLTypeReference node, TraverserContext<GraphQLSchemaElement> context) - Specified by:
visitGraphQLTypeReferencein interfaceGraphQLTypeVisitor
-
visitGraphQLUnionType
public TraversalControl visitGraphQLUnionType(GraphQLUnionType node, TraverserContext<GraphQLSchemaElement> context) - Specified by:
visitGraphQLUnionTypein interfaceGraphQLTypeVisitor
-
visitGraphQLType
protected TraversalControl visitGraphQLType(GraphQLSchemaElement node, TraverserContext<GraphQLSchemaElement> context)
-