@PublicApi public interface QueryVisitor
QueryTraverser
to visit the nodes of a Query.
How this happens in detail (pre vs post-order for example) is defined by QueryTraverser
.
Modifier and Type | Method and 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) |
void visitField(QueryVisitorFieldEnvironment queryVisitorFieldEnvironment)
default TraversalControl visitFieldWithControl(QueryVisitorFieldEnvironment queryVisitorFieldEnvironment)
queryVisitorFieldEnvironment
- the environment in playvoid visitInlineFragment(QueryVisitorInlineFragmentEnvironment queryVisitorInlineFragmentEnvironment)
void visitFragmentSpread(QueryVisitorFragmentSpreadEnvironment queryVisitorFragmentSpreadEnvironment)
default void visitFragmentDefinition(QueryVisitorFragmentDefinitionEnvironment queryVisitorFragmentDefinitionEnvironment)
default TraversalControl visitArgument(QueryVisitorFieldArgumentEnvironment environment)
default TraversalControl visitArgumentValue(QueryVisitorFieldArgumentValueEnvironment environment)