Package groovy.xml.slurpersupport
Class FilteredNodeChildren
java.lang.Object
groovy.lang.GroovyObjectSupport
groovy.xml.slurpersupport.GPathResult
groovy.xml.slurpersupport.NodeChildren
groovy.xml.slurpersupport.FilteredNodeChildren
- All Implemented Interfaces:
- Buildable,- GroovyObject,- Writable,- Iterable
Lazy evaluated representation of child nodes filtered by a Closure.
- 
Field SummaryFields inherited from class groovy.xml.slurpersupport.GPathResultname, namespaceMap, namespacePrefix, namespaceTagHints, parent
- 
Constructor SummaryConstructorsConstructorDescriptionFilteredNodeChildren(GPathResult parent, Closure closure, Map<String, String> namespaceTagHints) 
- 
Method SummaryMethods inherited from class groovy.xml.slurpersupport.NodeChildrenappendNode, build, childNodes, find, findAll, iterator, parents, replaceBody, replaceNode, size, text, writeToMethods inherited from class groovy.xml.slurpersupport.GPathResultbreadthFirst, children, createIterator, declareNamespace, depthFirst, equals, getAt, getAt, getBody, getProperty, hashCode, isEmpty, leftShift, list, lookupNamespace, name, parent, plus, plus, putAt, setMetaClass, setProperty, toBigDecimal, toBigInteger, toBoolean, toDouble, toFloat, toInteger, toLong, toString, toURI, toURLMethods inherited from class groovy.lang.GroovyObjectSupportgetMetaClassMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface groovy.lang.GroovyObjectinvokeMethodMethods inherited from interface java.lang.IterableforEach, spliterator
- 
Constructor Details- 
FilteredNodeChildrenpublic FilteredNodeChildren(GPathResult parent, Closure closure, Map<String, String> namespaceTagHints) - Parameters:
- parent- the GPathResult prior to the application of the expression creating this GPathResult
- closure- the Closure to use to filter the nodes
- namespaceTagHints- the known tag to namespace mappings
 
 
- 
- 
Method Details- 
popDescription copied from class:GPathResultReturns the parent of this GPathResult. If this GPathResult has no parent the GPathResult itself is returned. This is no navigation in the XML tree. It is backtracking on the GPath expression chain. It is the behavior of parent() prior to 2.2.0. Backtracking on '..' actually goes down one level in the tree again. find() and findAll() are popped along with the level they have been applied to.- Overrides:
- popin class- GPathResult
- Returns:
- the parent or this
 
- 
nodeIterator- Overrides:
- nodeIteratorin class- NodeChildren
 
 
-