public class NodeChild extends GPathResult
name, namespaceMap, namespacePrefix, namespaceTagHints, parent
Constructor and Description |
---|
NodeChild(Node node,
GPathResult parent,
java.util.Map namespaceTagHints) |
NodeChild(Node node,
GPathResult parent,
java.lang.String namespacePrefix,
java.util.Map namespaceTagHints) |
Modifier and Type | Method and Description |
---|---|
protected void |
appendNode(java.lang.Object newValue) |
java.util.Map |
attributes() |
void |
build(GroovyObject builder) |
java.util.Iterator |
childNodes() |
GPathResult |
find(Closure closure) |
GPathResult |
findAll(Closure closure) |
java.lang.Object |
getAt(int index) |
java.util.Iterator |
iterator() |
java.util.Iterator |
nodeIterator() |
GPathResult |
parents() |
protected void |
replaceBody(java.lang.Object newValue) |
protected void |
replaceNode(Closure newValue) |
int |
size() |
java.lang.String |
text() |
java.io.Writer |
writeTo(java.io.Writer out)
writes this object to the given stream
|
breadthFirst, children, declareNamespace, depthFirst, equals, getAt, getBody, getProperty, isEmpty, leftShift, list, lookupNamespace, name, parent, plus, putAt, setMetaClass, setProperty, toBigDecimal, toBigInteger, toBoolean, toDouble, toFloat, toInteger, toLong, toString, toURI, toURL
getMetaClass, invokeMethod
public NodeChild(Node node, GPathResult parent, java.lang.String namespacePrefix, java.util.Map namespaceTagHints)
public NodeChild(Node node, GPathResult parent, java.util.Map namespaceTagHints)
public int size()
size
in class GPathResult
public java.lang.String text()
text
in class GPathResult
public GPathResult parents()
parents
in class GPathResult
public java.util.Iterator iterator()
iterator
in class GPathResult
public java.util.Iterator nodeIterator()
nodeIterator
in class GPathResult
public java.lang.Object getAt(int index)
getAt
in class GPathResult
public java.util.Map attributes()
public java.util.Iterator childNodes()
childNodes
in class GPathResult
public GPathResult find(Closure closure)
find
in class GPathResult
public GPathResult findAll(Closure closure)
findAll
in class GPathResult
public void build(GroovyObject builder)
public java.io.Writer writeTo(java.io.Writer out) throws java.io.IOException
Writable
java.io.IOException
protected void replaceNode(Closure newValue)
replaceNode
in class GPathResult
protected void replaceBody(java.lang.Object newValue)
replaceBody
in class GPathResult
protected void appendNode(java.lang.Object newValue)
appendNode
in class GPathResult