@PublicApi public class SchemaTraverser extends java.lang.Object
| Constructor and Description |
|---|
SchemaTraverser() |
SchemaTraverser(java.util.function.Function<? super GraphQLSchemaElement,? extends java.util.List<GraphQLSchemaElement>> getChildren) |
| Modifier and Type | Method and Description |
|---|---|
TraverserResult |
depthFirst(GraphQLTypeVisitor graphQLTypeVisitor,
java.util.Collection<? extends GraphQLSchemaElement> roots) |
TraverserResult |
depthFirst(GraphQLTypeVisitor graphQLTypeVisitor,
GraphQLSchemaElement root) |
TraverserResult |
depthFirst(Traverser<GraphQLSchemaElement> traverser,
graphql.schema.SchemaTraverser.TraverserDelegateVisitor traverserDelegateVisitor,
java.util.Collection<? extends GraphQLSchemaElement> roots) |
TraverserResult |
depthFirstFullSchema(GraphQLTypeVisitor typeVisitor,
GraphQLSchema schema)
This will visit all of the schema elements in the specified schema and invokes the visitor.
|
TraverserResult |
depthFirstFullSchema(java.util.List<GraphQLTypeVisitor> typeVisitors,
GraphQLSchema schema,
java.util.Map<java.lang.Class<?>,java.lang.Object> rootVars)
This will visit all of the schema elements in the specified schema, invoking each visitor in turn.
|
public SchemaTraverser(java.util.function.Function<? super GraphQLSchemaElement,? extends java.util.List<GraphQLSchemaElement>> getChildren)
public SchemaTraverser()
public TraverserResult depthFirstFullSchema(GraphQLTypeVisitor typeVisitor, GraphQLSchema schema)
typeVisitor - a list of visitors to useschema - the schema to visitpublic TraverserResult depthFirstFullSchema(java.util.List<GraphQLTypeVisitor> typeVisitors, GraphQLSchema schema, java.util.Map<java.lang.Class<?>,java.lang.Object> rootVars)
typeVisitors - a list of visitors to useschema - the schema to visitrootVars - this sets up variables to be made available to the TraverserContext. This can be empty but not nullpublic TraverserResult depthFirst(GraphQLTypeVisitor graphQLTypeVisitor, GraphQLSchemaElement root)
public TraverserResult depthFirst(GraphQLTypeVisitor graphQLTypeVisitor, java.util.Collection<? extends GraphQLSchemaElement> roots)
public TraverserResult depthFirst(Traverser<GraphQLSchemaElement> traverser, graphql.schema.SchemaTraverser.TraverserDelegateVisitor traverserDelegateVisitor, java.util.Collection<? extends GraphQLSchemaElement> roots)