Package graphql.analysis
Interface QueryVisitor
-
- All Known Implementing Classes:
QueryVisitorStub
@PublicApi public interface QueryVisitor
Used byQueryTraverser
to visit the nodes of a Query.How this happens in detail (pre vs post-order for example) is defined by
QueryTraverser
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default TraversalControl
visitArgument(QueryVisitorFieldArgumentEnvironment environment)
default TraversalControl
visitArgumentValue(QueryVisitorFieldArgumentValueEnvironment environment)
void
visitField(QueryVisitorFieldEnvironment queryVisitorFieldEnvironment)
default TraversalControl
visitFieldWithControl(QueryVisitorFieldEnvironment queryVisitorFieldEnvironment)
visitField variant which lets you control the traversal.default void
visitFragmentDefinition(QueryVisitorFragmentDefinitionEnvironment queryVisitorFragmentDefinitionEnvironment)
void
visitFragmentSpread(QueryVisitorFragmentSpreadEnvironment queryVisitorFragmentSpreadEnvironment)
void
visitInlineFragment(QueryVisitorInlineFragmentEnvironment queryVisitorInlineFragmentEnvironment)
-
-
-
Method Detail
-
visitField
void visitField(QueryVisitorFieldEnvironment queryVisitorFieldEnvironment)
-
visitFieldWithControl
default TraversalControl visitFieldWithControl(QueryVisitorFieldEnvironment queryVisitorFieldEnvironment)
visitField variant which lets you control the traversal. default implementation calls visitField for backwards compatibility reason- Parameters:
queryVisitorFieldEnvironment
- the environment in play- Returns:
- traversal control
-
visitInlineFragment
void visitInlineFragment(QueryVisitorInlineFragmentEnvironment queryVisitorInlineFragmentEnvironment)
-
visitFragmentSpread
void visitFragmentSpread(QueryVisitorFragmentSpreadEnvironment queryVisitorFragmentSpreadEnvironment)
-
visitFragmentDefinition
default void visitFragmentDefinition(QueryVisitorFragmentDefinitionEnvironment queryVisitorFragmentDefinitionEnvironment)
-
visitArgument
default TraversalControl visitArgument(QueryVisitorFieldArgumentEnvironment environment)
-
visitArgumentValue
default TraversalControl visitArgumentValue(QueryVisitorFieldArgumentValueEnvironment environment)
-
-