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)
|
Method Summary |
void |
addChild(java.lang.Object child)
|
protected void |
appendNode(java.lang.Object newValue,
GPathResult result)
|
java.util.Map |
attributes()
|
void |
build(GroovyObject builder,
java.util.Map namespaceMap,
java.util.Map namespaceTagHints)
|
private void |
buildChildren(GroovyObject builder,
java.util.Map namespaceMap,
java.util.Map namespaceTagHints)
|
java.util.Iterator |
childNodes()
|
java.util.List |
children()
|
private static java.lang.String |
findNamespaceTag(java.util.Map tagMap,
java.lang.Object namespaceURI)
|
private static java.lang.String |
getTagFor(java.lang.Object namespaceURI,
java.util.Map current,
java.util.Map pending,
java.util.Map local,
java.util.Map tagHints,
java.util.List newTags,
GroovyObject builder)
|
java.lang.String |
name()
|
java.lang.String |
namespaceURI()
|
protected void |
replaceBody(java.lang.Object newValue)
|
void |
replaceNode(Closure replacementClosure,
GPathResult result)
|
java.lang.String |
text()
|
java.io.Writer |
writeTo(java.io.Writer out)
writes this object to the given stream |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
name
private final java.lang.String name
attributes
private final java.util.Map attributes
attributeNamespaces
private final java.util.Map attributeNamespaces
namespaceURI
private final java.lang.String namespaceURI
children
private final java.util.List children
replacementNodeStack
private final java.util.Stack replacementNodeStack
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)
getTagFor
private static java.lang.String getTagFor(java.lang.Object namespaceURI,
java.util.Map current,
java.util.Map pending,
java.util.Map local,
java.util.Map tagHints,
java.util.List newTags,
GroovyObject builder)
findNamespaceTag
private static java.lang.String findNamespaceTag(java.util.Map tagMap,
java.lang.Object namespaceURI)
buildChildren
private void buildChildren(GroovyObject builder,
java.util.Map namespaceMap,
java.util.Map namespaceTagHints)
Copyright © ${year} The Codehaus. All Rights Reserved.