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