public class NoChildren extends GPathResult
name, namespaceMap, namespacePrefix, namespaceTagHints, parent| Constructor and Description |
|---|
NoChildren(GPathResult parent,
java.lang.String name,
java.util.Map<java.lang.String,java.lang.String> namespaceTagHints) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendNode(java.lang.Object newValue)
NOP
|
boolean |
asBoolean()
Returns
false. |
void |
build(GroovyObject builder)
NOP
|
java.util.Iterator |
childNodes()
Returns an empty
Iterator. |
GPathResult |
find(Closure closure)
Returns
this. |
GPathResult |
findAll(Closure closure)
Returns
this. |
java.util.Iterator |
iterator()
Returns an empty
Iterator. |
java.util.Iterator |
nodeIterator()
Returns an empty iterator.
|
GPathResult |
parents()
Throws a
GroovyRuntimeException, because it is not implemented yet. |
protected void |
replaceBody(java.lang.Object newValue)
NOP
|
protected void |
replaceNode(Closure newValue)
NOP
|
int |
size()
Returns
0. |
java.lang.String |
text()
Returns an empty
String. |
java.io.Writer |
writeTo(java.io.Writer out)
Does not write any output, just returns the writer.
|
breadthFirst, children, declareNamespace, depthFirst, equals, getAt, getAt, getBody, getProperty, hashCode, isEmpty, leftShift, list, lookupNamespace, name, parent, plus, pop, putAt, setMetaClass, setProperty, toBigDecimal, toBigInteger, toBoolean, toDouble, toFloat, toInteger, toLong, toString, toURI, toURLgetMetaClass, invokeMethodpublic NoChildren(GPathResult parent, java.lang.String name, java.util.Map<java.lang.String,java.lang.String> namespaceTagHints)
parent - the GPathResult prior to the application of the expression creating this GPathResultname - if the GPathResult corresponds to something with a name, e.g. a nodenamespaceTagHints - the known tag to namespace mappingspublic int size()
0.size in class GPathResult0public java.lang.String text()
String.text in class GPathResultStringpublic GPathResult parents()
GroovyRuntimeException, because it is not implemented yet.parents in class GPathResultpublic java.util.Iterator childNodes()
Iterator.childNodes in class GPathResultIteratorpublic java.util.Iterator iterator()
Iterator.iterator in interface java.lang.Iterableiterator in class GPathResultIteratorpublic GPathResult find(Closure closure)
this.find in class GPathResultclosure - a closure to filters the children of this GPathResultthispublic GPathResult findAll(Closure closure)
this.findAll in class GPathResultclosure - a closure to filters the children of this GPathResultthispublic java.util.Iterator nodeIterator()
nodeIterator in class GPathResultpublic java.io.Writer writeTo(java.io.Writer out)
throws java.io.IOException
out - the Writer to which this Writable should output its data.Writer which was passed injava.io.IOException - if an error occurred while outputting data to the writerpublic void build(GroovyObject builder)
protected void replaceNode(Closure newValue)
replaceNode in class GPathResultprotected void replaceBody(java.lang.Object newValue)
replaceBody in class GPathResultprotected void appendNode(java.lang.Object newValue)
appendNode in class GPathResultpublic boolean asBoolean()
false.false