[Java] Class NodeBuilder
- groovy.util.NodeBuilder
A helper class for creating nested trees of Node objects for handling arbitrary data
- Authors:
- James Strachan
Methods Summary
Type Params | Return Type | Name and 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) |
Inherited Methods Summary
Methods inherited from class | Name |
---|---|
class BuilderSupport | createNode, createNode, createNode, createNode, doInvokeMethod, getCurrent, getName, invokeMethod, invokeMethod, nodeCompleted, postNodeCompletion, setClosureDelegate, setCurrent, setParent |
class GroovyObjectSupport | getMetaClass, getProperty, invokeMethod, setMetaClass, setProperty |
class Object | wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Method Detail
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()
public static NodeBuilder newInstance()
protected void setParent(Object parent, Object child)
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/2.4.21/html/gapi/groovy/util/NodeBuilder.html