Package groovy.util

Class NodeBuilder

  • All Implemented Interfaces:
    GroovyObject

    public class NodeBuilder
    extends BuilderSupport
    A helper class for creating nested trees of Node objects for handling arbitrary data
    • Constructor Detail

      • NodeBuilder

        public NodeBuilder()
    • Method Detail

      • newInstance

        public static NodeBuilder newInstance()
      • setParent

        protected void setParent​(java.lang.Object parent,
                                 java.lang.Object child)
        Specified by:
        setParent in class BuilderSupport
      • createNode

        protected java.lang.Object createNode​(java.lang.Object name)
        Specified by:
        createNode in class BuilderSupport
      • createNode

        protected java.lang.Object createNode​(java.lang.Object name,
                                              java.lang.Object value)
        Specified by:
        createNode in class BuilderSupport
      • createNode

        protected java.lang.Object createNode​(java.lang.Object name,
                                              java.util.Map attributes)
        Specified by:
        createNode in class BuilderSupport
      • createNode

        protected java.lang.Object createNode​(java.lang.Object name,
                                              java.util.Map attributes,
                                              java.lang.Object value)
        Specified by:
        createNode in class BuilderSupport
      • getCurrentNode

        protected Node getCurrentNode()