Package groovy.util
Class NodeBuilder
- java.lang.Object
-
- groovy.lang.GroovyObjectSupport
-
- groovy.util.BuilderSupport
-
- groovy.util.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 Summary
Constructors Constructor Description NodeBuilder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Object
createNode(Object name)
protected Object
createNode(Object name, Object value)
protected Object
createNode(Object name, Map attributes)
protected Object
createNode(Object name, Map attributes, Object value)
protected Node
getCurrentNode()
static NodeBuilder
newInstance()
protected void
setParent(Object parent, Object child)
-
Methods inherited from class groovy.util.BuilderSupport
doInvokeMethod, getCurrent, getName, invokeMethod, invokeMethod, nodeCompleted, postNodeCompletion, setClosureDelegate, setCurrent
-
Methods inherited from class groovy.lang.GroovyObjectSupport
getMetaClass, getProperty, setMetaClass, setProperty
-
-
-
-
Method Detail
-
newInstance
public static NodeBuilder newInstance()
-
setParent
protected void setParent(Object parent, Object child)
- Specified by:
setParent
in classBuilderSupport
-
createNode
protected Object createNode(Object name)
- Specified by:
createNode
in classBuilderSupport
-
createNode
protected Object createNode(Object name, Object value)
- Specified by:
createNode
in classBuilderSupport
-
createNode
protected Object createNode(Object name, Map attributes)
- Specified by:
createNode
in classBuilderSupport
-
createNode
protected Object createNode(Object name, Map attributes, Object value)
- Specified by:
createNode
in classBuilderSupport
-
getCurrentNode
protected Node getCurrentNode()
-
-