public class NodeVisitorWithTypeTracking extends NodeVisitorStub
QueryVisitor
with type
information about the visited field.Constructor and 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) |
Modifier and Type | Method and Description |
---|---|
TraversalControl |
visitField(Field field,
TraverserContext<Node> context) |
TraversalControl |
visitFragmentDefinition(FragmentDefinition node,
TraverserContext<Node> context) |
TraversalControl |
visitFragmentSpread(FragmentSpread fragmentSpread,
TraverserContext<Node> context) |
TraversalControl |
visitInlineFragment(InlineFragment inlineFragment,
TraverserContext<Node> context) |
visitArgument, visitArrayValue, visitBooleanValue, visitDefinition, visitDirective, visitDirectiveDefinition, visitDirectiveLocation, visitDocument, visitEnumTypeDefinition, visitEnumValue, visitEnumValueDefinition, visitFieldDefinition, visitFloatValue, visitInputObjectTypeDefinition, visitInputValueDefinition, visitInterfaceTypeDefinition, visitIntValue, visitListType, visitNode, visitNonNullType, visitNullValue, visitObjectField, visitObjectTypeDefinition, visitObjectValue, visitOperationDefinition, visitOperationTypeDefinition, visitScalarTypeDefinition, visitSchemaDefinition, visitSelection, visitSelectionSet, visitStringValue, visitType, visitTypeDefinition, visitTypeName, visitUnionTypeDefinition, visitValue, visitVariableDefinition, visitVariableReference
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)
public TraversalControl visitInlineFragment(InlineFragment inlineFragment, TraverserContext<Node> context)
visitInlineFragment
in interface NodeVisitor
visitInlineFragment
in class NodeVisitorStub
public TraversalControl visitFragmentDefinition(FragmentDefinition node, TraverserContext<Node> context)
visitFragmentDefinition
in interface NodeVisitor
visitFragmentDefinition
in class NodeVisitorStub
public TraversalControl visitFragmentSpread(FragmentSpread fragmentSpread, TraverserContext<Node> context)
visitFragmentSpread
in interface NodeVisitor
visitFragmentSpread
in class NodeVisitorStub
public TraversalControl visitField(Field field, TraverserContext<Node> context)
visitField
in interface NodeVisitor
visitField
in class NodeVisitorStub