Package graphql.schema.visitor
Class GraphQLSchemaVisitorAdapter
- java.lang.Object
-
- graphql.schema.GraphQLTypeVisitorStub
-
- graphql.schema.visitor.GraphQLSchemaVisitorAdapter
-
- All Implemented Interfaces:
GraphQLTypeVisitor
class GraphQLSchemaVisitorAdapter extends GraphQLTypeVisitorStub
-
-
Nested Class Summary
-
Field Summary
Fields Modifier and Type Field Description private GraphQLSchemaVisitorschemaVisitor
-
Constructor Summary
Constructors Constructor Description GraphQLSchemaVisitorAdapter(GraphQLSchemaVisitor schemaVisitor)
-
Method Summary
-
Methods inherited from class graphql.schema.GraphQLTypeVisitorStub
visitGraphQLList, visitGraphQLNonNull, visitGraphQLType, visitGraphQLTypeReference
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface graphql.schema.GraphQLTypeVisitor
changeNode, deleteNode, insertAfter, insertBefore, visitBackRef, visitGraphQLCompositeType, visitGraphQLDirectiveContainer, visitGraphQLFieldsContainer, visitGraphQLInputFieldsContainer, visitGraphQLInputType, visitGraphQLModifiedType, visitGraphQLNullableType, visitGraphQLOutputType, visitGraphQLUnmodifiedType
-
-
-
-
Field Detail
-
schemaVisitor
private final GraphQLSchemaVisitor schemaVisitor
-
-
Constructor Detail
-
GraphQLSchemaVisitorAdapter
GraphQLSchemaVisitorAdapter(GraphQLSchemaVisitor schemaVisitor)
-
-
Method Detail
-
visitE
private TraversalControl visitE(TraverserContext<GraphQLSchemaElement> context, java.util.function.Supplier<GraphQLSchemaTraversalControl> visitCall)
-
visitGraphQLAppliedDirectiveArgument
public TraversalControl visitGraphQLAppliedDirectiveArgument(GraphQLAppliedDirectiveArgument node, TraverserContext<GraphQLSchemaElement> context)
- Specified by:
visitGraphQLAppliedDirectiveArgumentin interfaceGraphQLTypeVisitor- Overrides:
visitGraphQLAppliedDirectiveArgumentin classGraphQLTypeVisitorStub
-
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- Overrides:
visitGraphQLAppliedDirectivein classGraphQLTypeVisitorStub- 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- Overrides:
visitGraphQLArgumentin classGraphQLTypeVisitorStub
-
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- Overrides:
visitGraphQLDirectivein classGraphQLTypeVisitorStub- Parameters:
node- the directivecontext- the traversal context- Returns:
- how to control the visitation processing
-
visitGraphQLEnumType
public TraversalControl visitGraphQLEnumType(GraphQLEnumType node, TraverserContext<GraphQLSchemaElement> context)
- Specified by:
visitGraphQLEnumTypein interfaceGraphQLTypeVisitor- Overrides:
visitGraphQLEnumTypein classGraphQLTypeVisitorStub
-
visitGraphQLEnumValueDefinition
public TraversalControl visitGraphQLEnumValueDefinition(GraphQLEnumValueDefinition node, TraverserContext<GraphQLSchemaElement> context)
- Specified by:
visitGraphQLEnumValueDefinitionin interfaceGraphQLTypeVisitor- Overrides:
visitGraphQLEnumValueDefinitionin classGraphQLTypeVisitorStub
-
visitGraphQLFieldDefinition
public TraversalControl visitGraphQLFieldDefinition(GraphQLFieldDefinition node, TraverserContext<GraphQLSchemaElement> context)
- Specified by:
visitGraphQLFieldDefinitionin interfaceGraphQLTypeVisitor- Overrides:
visitGraphQLFieldDefinitionin classGraphQLTypeVisitorStub
-
visitGraphQLInputObjectField
public TraversalControl visitGraphQLInputObjectField(GraphQLInputObjectField node, TraverserContext<GraphQLSchemaElement> context)
- Specified by:
visitGraphQLInputObjectFieldin interfaceGraphQLTypeVisitor- Overrides:
visitGraphQLInputObjectFieldin classGraphQLTypeVisitorStub
-
visitGraphQLInputObjectType
public TraversalControl visitGraphQLInputObjectType(GraphQLInputObjectType node, TraverserContext<GraphQLSchemaElement> context)
- Specified by:
visitGraphQLInputObjectTypein interfaceGraphQLTypeVisitor- Overrides:
visitGraphQLInputObjectTypein classGraphQLTypeVisitorStub
-
visitGraphQLInterfaceType
public TraversalControl visitGraphQLInterfaceType(GraphQLInterfaceType node, TraverserContext<GraphQLSchemaElement> context)
- Specified by:
visitGraphQLInterfaceTypein interfaceGraphQLTypeVisitor- Overrides:
visitGraphQLInterfaceTypein classGraphQLTypeVisitorStub
-
visitGraphQLObjectType
public TraversalControl visitGraphQLObjectType(GraphQLObjectType node, TraverserContext<GraphQLSchemaElement> context)
- Specified by:
visitGraphQLObjectTypein interfaceGraphQLTypeVisitor- Overrides:
visitGraphQLObjectTypein classGraphQLTypeVisitorStub
-
visitGraphQLScalarType
public TraversalControl visitGraphQLScalarType(GraphQLScalarType node, TraverserContext<GraphQLSchemaElement> context)
- Specified by:
visitGraphQLScalarTypein interfaceGraphQLTypeVisitor- Overrides:
visitGraphQLScalarTypein classGraphQLTypeVisitorStub
-
visitGraphQLUnionType
public TraversalControl visitGraphQLUnionType(GraphQLUnionType node, TraverserContext<GraphQLSchemaElement> context)
- Specified by:
visitGraphQLUnionTypein interfaceGraphQLTypeVisitor- Overrides:
visitGraphQLUnionTypein classGraphQLTypeVisitorStub
-
-