Class NodeList
java.lang.Object
java.util.AbstractCollection
java.util.AbstractList
java.util.ArrayList
groovy.util.NodeList
- All Implemented Interfaces:
Serializable, Cloneable, Iterable, Collection, List, RandomAccess, SequencedCollection
A List implementation which is returned by queries on a
Node
which provides some XPath like helper methods for GPath.- Author:
- James Strachan, Paul King
- See Also:
-
Field Summary
Fields inherited from class AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionProvides lookup of elements by QName.Provides lookup of elements by non-namespaced name.voidprotected static voidsetMetaClass(Class nodelistClass, MetaClass metaClass) text()Returns the text value of all of the elements in the collection.Methods inherited from class ArrayList
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, ensureCapacity, equals, forEach, get, getFirst, getLast, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeFirst, removeIf, removeLast, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeMethods inherited from class AbstractCollection
containsAll, toStringMethods inherited from interface Collection
parallelStream, stream, toArrayMethods inherited from interface List
containsAll, reversed
-
Constructor Details
-
NodeList
public NodeList() -
NodeList
-
NodeList
public NodeList(int size)
-
-
Method Details
-
setMetaClass
-
getAt
-
getAt
-
text
Returns the text value of all of the elements in the collection.- Returns:
- the text value of all the elements in the collection or null
-
replaceNode
-
plus
-