/* */ package org.jaxen.util;
/* */
/* */ import java.util.
ArrayList;
/* */ import java.util.
Iterator;
/* */ import java.util.
List;
/* */ import java.util.
NoSuchElementException;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public class
LinkedIterator
/* */ implements
Iterator
/* */ {
/* 67 */ private
List iterators = new
ArrayList();
/* 68 */ private int
cur = 0;
/* */
/* */
/* */
/* */ public void
addIterator(
Iterator i) {
/* 73 */ this.
iterators.
add(
i);
/* */ }
/* */
/* */
/* */ public boolean
hasNext() {
/* 78 */ boolean
has = false;
/* */
/* 80 */ if (this.
cur < this.
iterators.
size()) {
/* */
/* 82 */
has = ((
Iterator)this.
iterators.
get(this.
cur)).
hasNext();
/* */
/* 84 */ if (!
has && this.
cur < this.
iterators.
size())
/* */ {
/* */
/* */
/* 88 */ this.
cur++;
/* 89 */
has =
hasNext();
/* */ }
/* */
/* */ } else {
/* */
/* 94 */
has = false;
/* */ }
/* */
/* 97 */ return
has;
/* */ }
/* */
/* */
/* */ public
Object next() {
/* 102 */ if (!
hasNext())
/* */ {
/* 104 */ throw new
NoSuchElementException();
/* */ }
/* */
/* 107 */ return ((
Iterator)this.
iterators.
get(this.
cur)).
next();
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public void
remove() {
/* 117 */ throw new
UnsupportedOperationException();
/* */ }
/* */ }
/* Location: /Users/tommy/.m2/repository/jaxen/jaxen/1.1.1/jaxen-1.1.1.jar!/org/jaxen/util/LinkedIterator.class
* Java compiler version: 2 (46.0)
* JD-Core Version: 1.1.3
*/