Package net.sf.saxon.evpull
Class EmptyEventIterator
java.lang.Object
net.sf.saxon.evpull.EmptyEventIterator
- All Implemented Interfaces:
EventIterator
,PullEvent
This class is an EventIterator over an empty sequence. It is a singleton class.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic EmptyEventIterator
Get the singular instance of this classboolean
Determine whether the EventIterator returns a flat sequence of events, or whether it can return nested event iteratorsnext()
Get the next event in the sequence
-
Constructor Details
-
EmptyEventIterator
public EmptyEventIterator()
-
-
Method Details
-
getInstance
Get the singular instance of this class- Returns:
- the singular instance
-
next
Get the next event in the sequence- Specified by:
next
in interfaceEventIterator
- Returns:
- null (there is never a next event)
-
isFlatSequence
public boolean isFlatSequence()Determine whether the EventIterator returns a flat sequence of events, or whether it can return nested event iterators- Specified by:
isFlatSequence
in interfaceEventIterator
- Returns:
- true if the next() method is guaranteed never to return an EventIterator
-