groovy.util
public class NodeList extends ArrayList
Node
which provides some XPath like helper methods for GPath.modCount
Constructor and Description |
---|
NodeList() |
NodeList(Collection collection) |
NodeList(int size) |
Modifier and Type | Method and Description |
---|---|
NodeList |
getAt(QName name)
Provides lookup of elements by QName.
|
NodeList |
getAt(String name)
Provides lookup of elements by non-namespaced name.
|
void |
plus(Closure c) |
Node |
replaceNode(Closure c) |
protected static void |
setMetaClass(Class nodelistClass,
MetaClass metaClass) |
String |
text()
Returns the text value of all of the elements in the collection.
|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeRange, retainAll, set, size, subList, toArray, toArray, trimToSize
equals, hashCode
containsAll, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
containsAll, equals, hashCode
public NodeList()
public NodeList(Collection collection)
public NodeList(int size)
public NodeList getAt(String name)
name
- the name or shortcut key for nodes of interestpublic NodeList getAt(QName name)
name
- the name or shortcut key for nodes of interestpublic String text()
public void plus(Closure c)