Top Description Fields Constructors Methods
groovy.util.slurpersupport

public Class NoChildren

extends GPathResult
Class Inheritance
Annotations
@Deprecated
Imports
groovy.lang.Closure, .GroovyObject, .GroovyRuntimeException, java.io.IOException, .Writer, java.util.Iterator, .Map

Deprecated

Lazy evaluated representation of a GPath expression returning no children. As this class represents a GPath expression with no results, all methods are either NOPs or return an empty result.

Field Summary

Inherited from groovy.util.slurpersupport.GPathResult:
namenamespaceMapnamespacePrefixnamespaceTagHintsparent

Constructor Summary

AccessConstructor and Description
public
NoChildren(final GPathResult
the GPathResult prior to the application of the expression creating this GPathResult
parent
,
final String
if the GPathResult corresponds to something with a name, e.g. a node
name
,
final Map<String, String>
the known tag to namespace mappings
namespaceTagHints
)

Deprecated as a consequence of GPathResult being deprecated.

Method Summary

Modifier and TypeMethod and Description
protected void
public boolean

Returns:

false
asBoolean
()

Returns false.

public void
build(final GroovyObject builder)

Implements groovy.lang.Buildable.build.

NOP
public Iterator<E>

Returns:

an empty Iterator
childNodes
()

Implements abstract groovy.util.slurpersupport.GPathResult.childNodes.

Returns an empty Iterator.
public GPathResult

Returns:

this
find
(final Closure<V>
a closure to filters the children of this GPathResult
closure
)

Implements abstract groovy.util.slurpersupport.GPathResult.find.

Deprecated as a consequence of GPathResult being deprecated.
Returns this.
public GPathResult

Returns:

this
findAll
(final Closure<V>
a closure to filters the children of this GPathResult
closure
)

Implements abstract groovy.util.slurpersupport.GPathResult.findAll.

Deprecated as a consequence of GPathResult being deprecated.
Returns this.
public Iterator<E>

Returns:

an empty Iterator
iterator
()

Implements abstract groovy.util.slurpersupport.GPathResult.iterator.

Implements java.lang.Iterable.iterator.

Returns an empty Iterator.
public Iterator<E>

Returns:

an empty iterator
nodeIterator
()

Implements abstract groovy.util.slurpersupport.GPathResult.nodeIterator.

Returns an empty iterator.
public GPathResult
parents()

Implements abstract groovy.util.slurpersupport.GPathResult.parents.

Deprecated as a consequence of GPathResult being deprecated.
Throws a GroovyRuntimeException, because it is not implemented yet.
protected void
protected void
replaceNode(final Closure<V> newValue)

Implements abstract groovy.util.slurpersupport.GPathResult.replaceNode.

NOP
public int

Returns:

0
size
()

Implements abstract groovy.util.slurpersupport.GPathResult.size.

Returns 0.
public String

Returns:

an empty String
text
()

Implements abstract groovy.util.slurpersupport.GPathResult.text.

Returns an empty String.
public Writer

Returns:

the Writer which was passed in
writeTo
(final Writer
the Writer to which this Writable should output its data.
out
)

Implements groovy.lang.Writable.writeTo.

Does not write any output, just returns the writer.
Inherited from groovy.util.slurpersupport.GPathResult:
breadthFirstchildrencreateIteratordeclareNamespacedepthFirstequalsgetAtgetAtgetBodygetPropertyhashCodeisEmptyleftShiftlistlookupNamespacenameparentpluspopputAtsetMetaClasssetPropertytoBigDecimaltoBigIntegertoBooleantoDoubletoFloattoIntegertoLongtoStringtoURItoURL

Constructor Detail

NoChildrenback to summary
public NoChildren(final GPathResult parent, final String name, final Map<String, String> namespaceTagHints)

Deprecated

as a consequence of GPathResult being deprecated. See corresponding docs for further information.

Parameters
parent:GPathResult

the GPathResult prior to the application of the expression creating this GPathResult

name:String

if the GPathResult corresponds to something with a name, e.g. a node

namespaceTagHints:Map<String, String>

the known tag to namespace mappings

Method Detail

appendNodeback to summary
protected void appendNode(final Object newValue)

Implements abstract groovy.util.slurpersupport.GPathResult.appendNode.

NOP

asBooleanback to summary
public boolean asBoolean()

Returns false.

Returns:boolean

false

buildback to summary
public void build(final GroovyObject builder)

Implements groovy.lang.Buildable.build.

NOP

childNodesback to summary
public Iterator<E> childNodes()

Implements abstract groovy.util.slurpersupport.GPathResult.childNodes.

Returns an empty Iterator.

Returns:Iterator<E>

an empty Iterator

findback to summary
public GPathResult find(final Closure<V> closure)

Implements abstract groovy.util.slurpersupport.GPathResult.find.

Deprecated

as a consequence of GPathResult being deprecated. See corresponding docs for further information.

Returns this.

Parameters
closure:Closure<V>

Doc from groovy.util.slurpersupport.GPathResult.find.

a closure to filters the children of this GPathResult

Returns:GPathResult

this

findAllback to summary
public GPathResult findAll(final Closure<V> closure)

Implements abstract groovy.util.slurpersupport.GPathResult.findAll.

Deprecated

as a consequence of GPathResult being deprecated. See corresponding docs for further information.

Returns this.

Parameters
closure:Closure<V>

Doc from groovy.util.slurpersupport.GPathResult.findAll.

a closure to filters the children of this GPathResult

Returns:GPathResult

this

iteratorback to summary
public Iterator<E> iterator()

Implements abstract groovy.util.slurpersupport.GPathResult.iterator.

Implements java.lang.Iterable.iterator.

Returns an empty Iterator.

Returns:Iterator<E>

an empty Iterator

nodeIteratorback to summary
public Iterator<E> nodeIterator()

Implements abstract groovy.util.slurpersupport.GPathResult.nodeIterator.

Returns an empty iterator.

Returns:Iterator<E>

an empty iterator

parentsback to summary
public GPathResult parents()

Implements abstract groovy.util.slurpersupport.GPathResult.parents.

Deprecated

as a consequence of GPathResult being deprecated. See corresponding docs for further information.

Throws a GroovyRuntimeException, because it is not implemented yet.

Returns:GPathResult

Doc from groovy.util.slurpersupport.GPathResult.parents.

the parents of this GPathResult

replaceBodyback to summary
protected void replaceBody(final Object newValue)

Implements abstract groovy.util.slurpersupport.GPathResult.replaceBody.

NOP

replaceNodeback to summary
protected void replaceNode(final Closure<V> newValue)

Implements abstract groovy.util.slurpersupport.GPathResult.replaceNode.

NOP

sizeback to summary
public int size()

Implements abstract groovy.util.slurpersupport.GPathResult.size.

Returns 0.

Returns:int

0

textback to summary
public String text()

Implements abstract groovy.util.slurpersupport.GPathResult.text.

Returns an empty String.

Returns:String

an empty String

writeToback to summary
public Writer writeTo(final Writer out) throws IOException

Implements groovy.lang.Writable.writeTo.

Does not write any output, just returns the writer.

Parameters
out:Writer

Doc from groovy.lang.Writable.writeTo.

the Writer to which this Writable should output its data.

Returns:Writer

the Writer which was passed in

Exceptions
IOException:

Doc from groovy.lang.Writable.writeTo.

if an error occurred while outputting data to the writer