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, isEmpty, leftShift, list, lookupNamespace, name, parent, plus, putAt, setMetaClass, setProperty, toBigDecimal, toBigInteger, toBoolean, toDouble, toFloat, toInteger, toLong, toString, toURI, toURL
getMetaClass, invokeMethod
public 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 GPathResult
0
public java.lang.String text()
String
.text
in class GPathResult
String
public GPathResult parents()
GroovyRuntimeException
, because it is not implemented yet.parents
in class GPathResult
public java.util.Iterator childNodes()
Iterator
.childNodes
in class GPathResult
Iterator
public java.util.Iterator iterator()
Iterator
.iterator
in class GPathResult
Iterator
public GPathResult find(Closure closure)
this
.find
in class GPathResult
closure
- a closure to filters the children of this GPathResultthis
public GPathResult findAll(Closure closure)
this
.findAll
in class GPathResult
closure
- a closure to filters the children of this GPathResultthis
public java.util.Iterator nodeIterator()
nodeIterator
in class GPathResult
public 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 GPathResult
protected void replaceBody(java.lang.Object newValue)
replaceBody
in class GPathResult
protected void appendNode(java.lang.Object newValue)
appendNode
in class GPathResult
public boolean asBoolean()
false
.false