Package graphql.analysis
Class NodeVisitorWithTypeTracking
- java.lang.Object
-
- graphql.language.NodeVisitorStub
-
- graphql.analysis.NodeVisitorWithTypeTracking
-
- All Implemented Interfaces:
NodeVisitor
public class NodeVisitorWithTypeTracking extends NodeVisitorStub
Internally used node visitor which delegates to aQueryVisitor
with type information about the visited field.
-
-
Constructor Summary
Constructors Constructor Description NodeVisitorWithTypeTracking(QueryVisitor preOrderCallback, QueryVisitor postOrderCallback, java.util.Map<java.lang.String,java.lang.Object> variables, GraphQLSchema schema, java.util.Map<java.lang.String,FragmentDefinition> fragmentsByName, QueryTraversalOptions options)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TraversalControl
visitArgument(Argument argument, TraverserContext<Node> context)
TraversalControl
visitDirective(Directive node, TraverserContext<Node> context)
TraversalControl
visitField(Field field, TraverserContext<Node> context)
TraversalControl
visitFragmentDefinition(FragmentDefinition fragmentDefinition, TraverserContext<Node> context)
TraversalControl
visitFragmentSpread(FragmentSpread fragmentSpread, TraverserContext<Node> context)
TraversalControl
visitInlineFragment(InlineFragment inlineFragment, TraverserContext<Node> context)
TraversalControl
visitObjectField(ObjectField node, TraverserContext<Node> context)
protected TraversalControl
visitValue(Value<?> value, TraverserContext<Node> context)
-
Methods inherited from class graphql.language.NodeVisitorStub
visitArrayValue, visitBooleanValue, visitDefinition, visitDirectiveDefinition, visitDirectiveLocation, visitDocument, visitEnumTypeDefinition, visitEnumValue, visitEnumValueDefinition, visitFieldDefinition, visitFloatValue, visitInputObjectTypeDefinition, visitInputValueDefinition, visitInterfaceTypeDefinition, visitIntValue, visitListType, visitNode, visitNonNullType, visitNullValue, visitObjectTypeDefinition, visitObjectValue, visitOperationDefinition, visitOperationTypeDefinition, visitScalarTypeDefinition, visitSchemaDefinition, visitSelection, visitSelectionSet, visitStringValue, visitType, visitTypeDefinition, visitTypeName, visitUnionTypeDefinition, visitVariableDefinition, visitVariableReference
-
-
-
-
Constructor Detail
-
NodeVisitorWithTypeTracking
public NodeVisitorWithTypeTracking(QueryVisitor preOrderCallback, QueryVisitor postOrderCallback, java.util.Map<java.lang.String,java.lang.Object> variables, GraphQLSchema schema, java.util.Map<java.lang.String,FragmentDefinition> fragmentsByName, QueryTraversalOptions options)
-
-
Method Detail
-
visitDirective
public TraversalControl visitDirective(Directive node, TraverserContext<Node> context)
- Specified by:
visitDirective
in interfaceNodeVisitor
- Overrides:
visitDirective
in classNodeVisitorStub
-
visitInlineFragment
public TraversalControl visitInlineFragment(InlineFragment inlineFragment, TraverserContext<Node> context)
- Specified by:
visitInlineFragment
in interfaceNodeVisitor
- Overrides:
visitInlineFragment
in classNodeVisitorStub
-
visitFragmentDefinition
public TraversalControl visitFragmentDefinition(FragmentDefinition fragmentDefinition, TraverserContext<Node> context)
- Specified by:
visitFragmentDefinition
in interfaceNodeVisitor
- Overrides:
visitFragmentDefinition
in classNodeVisitorStub
-
visitFragmentSpread
public TraversalControl visitFragmentSpread(FragmentSpread fragmentSpread, TraverserContext<Node> context)
- Specified by:
visitFragmentSpread
in interfaceNodeVisitor
- Overrides:
visitFragmentSpread
in classNodeVisitorStub
-
visitField
public TraversalControl visitField(Field field, TraverserContext<Node> context)
- Specified by:
visitField
in interfaceNodeVisitor
- Overrides:
visitField
in classNodeVisitorStub
-
visitArgument
public TraversalControl visitArgument(Argument argument, TraverserContext<Node> context)
- Specified by:
visitArgument
in interfaceNodeVisitor
- Overrides:
visitArgument
in classNodeVisitorStub
-
visitObjectField
public TraversalControl visitObjectField(ObjectField node, TraverserContext<Node> context)
- Specified by:
visitObjectField
in interfaceNodeVisitor
- Overrides:
visitObjectField
in classNodeVisitorStub
-
visitValue
protected TraversalControl visitValue(Value<?> value, TraverserContext<Node> context)
- Overrides:
visitValue
in classNodeVisitorStub
-
-