Package graphql.util

Class ReplaceNode


  • public class ReplaceNode
    extends java.lang.Object
    Special class to be set as var in TraverserContext.setVar(Class, Object) to indicate that the current node should be replaced. This is used when the new Node actually has different children and you wanna iterator over the new State.
    • Constructor Summary

      Constructors 
      Constructor Description
      ReplaceNode​(java.lang.Object newNode)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getNewNode()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ReplaceNode

        public ReplaceNode​(java.lang.Object newNode)
    • Method Detail

      • getNewNode

        public java.lang.Object getNewNode()