Package graphql.util
Interface TraverserVisitor<T>
- All Known Implementing Classes:
TraverserVisitorStub
public interface TraverserVisitor<T>
-
Method Summary
Modifier and TypeMethodDescriptiondefault TraversalControl
backRef
(TraverserContext<T> context) This method is called when a node was already visited before.enter
(TraverserContext<T> context) leave
(TraverserContext<T> context)
-
Method Details
-
enter
- Parameters:
context
- the context in place- Returns:
- Any allowed control value
-
leave
- Parameters:
context
- the context in place- Returns:
- Only Continue or Quit allowed
-
backRef
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.- Parameters:
context
- the context in place- Returns:
- Only Continue or Quit allowed
-