Package groovy.util.slurpersupport
Class NoChildren
- java.lang.Object
- 
- groovy.lang.GroovyObjectSupport
- 
- groovy.util.slurpersupport.GPathResult
- 
- groovy.util.slurpersupport.NoChildren
 
 
 
- 
- All Implemented Interfaces:
- Buildable,- GroovyObject,- Writable,- Iterable
 
 @Deprecated public class NoChildren extends GPathResult 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- 
Fields inherited from class groovy.util.slurpersupport.GPathResultname, namespaceMap, namespacePrefix, namespaceTagHints, parent
 
- 
 - 
Constructor SummaryConstructors Constructor Description NoChildren(GPathResult parent, String name, Map<String,String> namespaceTagHints)Deprecated.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected voidappendNode(Object newValue)Deprecated.NOPbooleanasBoolean()Deprecated.Returnsfalse.voidbuild(GroovyObject builder)Deprecated.NOPIteratorchildNodes()Deprecated.Returns an emptyIterator.GPathResultfind(Closure closure)Deprecated.Returnsthis.GPathResultfindAll(Closure closure)Deprecated.Returnsthis.Iteratoriterator()Deprecated.Returns an emptyIterator.IteratornodeIterator()Deprecated.Returns an empty iterator.GPathResultparents()Deprecated.Throws aGroovyRuntimeException, because it is not implemented yet.protected voidreplaceBody(Object newValue)Deprecated.NOPprotected voidreplaceNode(Closure newValue)Deprecated.NOPintsize()Deprecated.Returns0.Stringtext()Deprecated.Returns an emptyString.WriterwriteTo(Writer out)Deprecated.Does not write any output, just returns the writer.- 
Methods inherited from class groovy.util.slurpersupport.GPathResultbreadthFirst, children, createIterator, 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, toURL
 - 
Methods inherited from class groovy.lang.GroovyObjectSupportgetMetaClass
 - 
Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface groovy.lang.GroovyObjectinvokeMethod
 - 
Methods inherited from interface java.lang.IterableforEach, spliterator
 
- 
 
- 
- 
- 
Constructor Detail- 
NoChildrenpublic NoChildren(GPathResult parent, String name, Map<String,String> namespaceTagHints) Deprecated.- Parameters:
- parent- the GPathResult prior to the application of the expression creating this GPathResult
- name- if the GPathResult corresponds to something with a name, e.g. a node
- namespaceTagHints- the known tag to namespace mappings
 
 
- 
 - 
Method Detail- 
sizepublic int size() Deprecated.Returns0.- Specified by:
- sizein class- GPathResult
- Returns:
- 0
 
 - 
textpublic String text() Deprecated.Returns an emptyString.- Specified by:
- textin class- GPathResult
- Returns:
- an empty String
 
 - 
parentspublic GPathResult parents() Deprecated.Throws aGroovyRuntimeException, because it is not implemented yet.- Specified by:
- parentsin class- GPathResult
- Returns:
- the parents of this GPathResult
 
 - 
childNodespublic Iterator childNodes() Deprecated.Returns an emptyIterator.- Specified by:
- childNodesin class- GPathResult
- Returns:
- an empty Iterator
 
 - 
iteratorpublic Iterator iterator() Deprecated.Returns an emptyIterator.- Specified by:
- iteratorin interface- Iterable
- Specified by:
- iteratorin class- GPathResult
- Returns:
- an empty Iterator
 
 - 
findpublic GPathResult find(Closure closure) Deprecated.Returnsthis.- Specified by:
- findin class- GPathResult
- Parameters:
- closure- a closure to filters the children of this GPathResult
- Returns:
- this
 
 - 
findAllpublic GPathResult findAll(Closure closure) Deprecated.Returnsthis.- Specified by:
- findAllin class- GPathResult
- Parameters:
- closure- a closure to filters the children of this GPathResult
- Returns:
- this
 
 - 
nodeIteratorpublic Iterator nodeIterator() Deprecated.Returns an empty iterator.- Specified by:
- nodeIteratorin class- GPathResult
- Returns:
- an empty iterator
 
 - 
writeTopublic Writer writeTo(Writer out) throws IOException Deprecated.Does not write any output, just returns the writer.- Parameters:
- out- the Writer to which this Writable should output its data.
- Returns:
- the Writerwhich was passed in
- Throws:
- IOException- if an error occurred while outputting data to the writer
 
 - 
buildpublic void build(GroovyObject builder) Deprecated.NOP
 - 
replaceNodeprotected void replaceNode(Closure newValue) Deprecated.NOP- Specified by:
- replaceNodein class- GPathResult
 
 - 
replaceBodyprotected void replaceBody(Object newValue) Deprecated.NOP- Specified by:
- replaceBodyin class- GPathResult
 
 - 
appendNodeprotected void appendNode(Object newValue) Deprecated.NOP- Specified by:
- appendNodein class- GPathResult
 
 - 
asBooleanpublic boolean asBoolean() Deprecated.Returnsfalse.- Returns:
- false
 
 
- 
 
-