Package graphql.util
Class TreeTransformerUtil
java.lang.Object
graphql.util.TreeTransformerUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> TraversalControl
changeNode
(TraverserContext<T> context, T changedNode) Can be called multiple times to change the current node of the context.static <T> TraversalControl
deleteNode
(TraverserContext<T> context) static <T> TraversalControl
insertAfter
(TraverserContext<T> context, T toInsertAfter) static <T> TraversalControl
insertBefore
(TraverserContext<T> context, T toInsertBefore)
-
Constructor Details
-
TreeTransformerUtil
public TreeTransformerUtil()
-
-
Method Details
-
changeNode
Can be called multiple times to change the current node of the context. The latest call wins- Type Parameters:
T
- for two- Parameters:
context
- the context in playchangedNode
- the changed node- Returns:
- traversal control
-
deleteNode
-
insertAfter
-
insertBefore
-