APIdia Launch Partner
Top Description Inners Fields Constructors Methods
com.sun.org.apache.xpath.internal.jaxp

public Class XPathNodesImpl

extends Object
implements XPathNodes
Class Inheritance
All Implemented Interfaces
javax.xml.xpath.XPathNodes, java.lang.Iterable
Imports
java.util.Iterator, javax.xml.xpath.XPathException, .XPathNodes, .XPathEvaluationResult.XPathResultType, org.w3c.dom.Node, .NodeList

This class implements XPathNodes that represents a set of nodes selected by evaluating an expression.

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv class

Field Summary

Modifier and TypeField and Description
pack-priv Class<Node>
pack-priv NodeList

Constructor Summary

AccessConstructor and Description
public
XPathNodesImpl(NodeList nodeList, Class<Node> elementType)

Method Summary

Modifier and TypeMethod and Description
public Node
get(int index)

Implements javax.xml.xpath.XPathNodes.get.

Returns a Node at the specified position

public Iterator<Node>
iterator()

Implements javax.xml.xpath.XPathNodes.iterator.

Returns an iterator of the Nodes.

public int
size()

Implements javax.xml.xpath.XPathNodes.size.

Returns the number of items in the result

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

elementTypeback to summary
pack-priv Class<Node> elementType
nodeListback to summary
pack-priv NodeList nodeList

Constructor Detail

XPathNodesImplback to summary
public XPathNodesImpl(NodeList nodeList, Class<Node> elementType)

Method Detail

getback to summary
public Node get(int index) throws XPathException

Implements javax.xml.xpath.XPathNodes.get.

Doc from javax.xml.xpath.XPathNodes.get.

Returns a Node at the specified position

Annotations
@Override
Exceptions
XPathException:
If the index is out of range (index < 0 || index >= size())
iteratorback to summary
public Iterator<Node> iterator()

Implements javax.xml.xpath.XPathNodes.iterator.

Doc from javax.xml.xpath.XPathNodes.iterator.

Returns an iterator of the Nodes.

Annotations
@Override
sizeback to summary
public int size()

Implements javax.xml.xpath.XPathNodes.size.

Doc from javax.xml.xpath.XPathNodes.size.

Returns the number of items in the result

Annotations
@Override
com.sun.org.apache.xpath.internal.jaxp back to summary

pack-priv Class XPathNodesImpl.NodeSetIterator<E>

extends Object
implements Iterator<E>
Class Inheritance
  • java.lang.Object
  • com.sun.org.apache.xpath.internal.jaxp.XPathNodesImpl.NodeSetIterator
All Implemented Interfaces
java.util.Iterator

Field Summary

Modifier and TypeField and Description
pack-priv int
pack-priv Class<E>

Constructor Summary

AccessConstructor and Description
pack-priv
NodeSetIterator(Class<E> elementType)

Method Summary

Modifier and TypeMethod and Description
public boolean
hasNext()

Implements java.util.Iterator.hasNext.

Returns true if the iteration has more elements.

public E
next()

Implements java.util.Iterator.next.

Returns the next element in the iteration.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

currentIndexback to summary
pack-priv int currentIndex
elementTypeback to summary
pack-priv Class<E> elementType

Constructor Detail

NodeSetIteratorback to summary
pack-priv NodeSetIterator(Class<E> elementType)

Method Detail

hasNextback to summary
public boolean hasNext()

Implements java.util.Iterator.hasNext.

Doc from java.util.Iterator.hasNext.

Returns true if the iteration has more elements. (In other words, returns true if next would return an element rather than throwing an exception.)

nextback to summary
public E next()

Implements java.util.Iterator.next.

Doc from java.util.Iterator.next.

Returns the next element in the iteration.