Package graphql.schema
Class SchemaTraverser.TraverserDelegateListVisitor
- java.lang.Object
-
- graphql.schema.SchemaTraverser.TraverserDelegateListVisitor
-
- All Implemented Interfaces:
TraverserVisitor<GraphQLSchemaElement>
- Enclosing class:
- SchemaTraverser
private static class SchemaTraverser.TraverserDelegateListVisitor extends java.lang.Object implements TraverserVisitor<GraphQLSchemaElement>
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<GraphQLTypeVisitor>
typeVisitors
-
Constructor Summary
Constructors Constructor Description TraverserDelegateListVisitor(java.util.List<GraphQLTypeVisitor> typeVisitors)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TraversalControl
backRef(TraverserContext<GraphQLSchemaElement> context)
This method is called when a node was already visited before.TraversalControl
enter(TraverserContext<GraphQLSchemaElement> context)
TraversalControl
leave(TraverserContext<GraphQLSchemaElement> context)
-
-
-
Field Detail
-
typeVisitors
private final java.util.List<GraphQLTypeVisitor> typeVisitors
-
-
Constructor Detail
-
TraverserDelegateListVisitor
TraverserDelegateListVisitor(java.util.List<GraphQLTypeVisitor> typeVisitors)
-
-
Method Detail
-
enter
public TraversalControl enter(TraverserContext<GraphQLSchemaElement> context)
- Specified by:
enter
in interfaceTraverserVisitor<GraphQLSchemaElement>
- Parameters:
context
- the context in place- Returns:
- Any allowed control value
-
leave
public TraversalControl leave(TraverserContext<GraphQLSchemaElement> context)
- Specified by:
leave
in interfaceTraverserVisitor<GraphQLSchemaElement>
- Parameters:
context
- the context in place- Returns:
- Only Continue or Quit allowed
-
backRef
public TraversalControl backRef(TraverserContext<GraphQLSchemaElement> context)
Description copied from interface:TraverserVisitor
This method is called when a node was already visited before. This can happen for two reasons: 1. There is a cycle. 2. A node has more than one parent. This means the structure is not a tree but a graph.- Specified by:
backRef
in interfaceTraverserVisitor<GraphQLSchemaElement>
- Parameters:
context
- the context in place- Returns:
- Only Continue or Quit allowed
-
-