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
-
Field Summary
Fields inherited from class AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a new NodeList containing the same elements as the original (but cloned in the case of Nodes).Provides 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, 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
-
clone
-
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
-