groovy.util.slurpersupport
Class Node
java.lang.Object
groovy.util.slurpersupport.Node
- All Implemented Interfaces:
- Writable
public class Node
- extends java.lang.Object
- implements Writable
- Author:
- John Wilson
Constructor Summary |
Node(Node parent,
java.lang.String name,
java.util.Map attributes,
java.util.Map attributeNamespaces,
java.lang.String namespaceURI)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Node
public Node(Node parent,
java.lang.String name,
java.util.Map attributes,
java.util.Map attributeNamespaces,
java.lang.String namespaceURI)
name
public java.lang.String name()
namespaceURI
public java.lang.String namespaceURI()
attributes
public java.util.Map attributes()
children
public java.util.List children()
addChild
public void addChild(java.lang.Object child)
replaceNode
public void replaceNode(Closure replacementClosure,
GPathResult result)
replaceBody
protected void replaceBody(java.lang.Object newValue)
appendNode
protected void appendNode(java.lang.Object newValue,
GPathResult result)
text
public java.lang.String text()
childNodes
public java.util.Iterator childNodes()
writeTo
public java.io.Writer writeTo(java.io.Writer out)
throws java.io.IOException
- Description copied from interface:
Writable
- writes this object to the given stream
- Specified by:
writeTo
in interface Writable
- Throws:
java.io.IOException
build
public void build(GroovyObject builder,
java.util.Map namespaceMap,
java.util.Map namespaceTagHints)