public class NodeListImpl extends Object implements NodeList
Some of the fields may have package visibility, so other classes belonging to the DOM implementation can easily access them while maintaining the DOM tree structure.
Modifier and Type | Method and Description |
---|---|
int |
getLength()
The number of nodes in the list.
|
Node |
item(int index)
Returns the
index th item in the collection. |
public int getLength()
NodeList
length-1
inclusive.