package adql.query; /* * This file is part of ADQLLibrary. * * ADQLLibrary is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * ADQLLibrary is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with ADQLLibrary. If not, see . * * Copyright 2012 - UDS/Centre de Données astronomiques de Strasbourg (CDS) */ import java.util.Iterator; /** *

Lets iterating on all ADQL objects inside any ADQL object.

* *

* Any class implementing {@link ADQLObject} has the function {@link ADQLObject#adqlIterator()}. * This function must return an instance of this class so that being able to iterate on all ADQL object inside itself. *

* * @author Grégory Mantelet (CDS) * @version 06/2011 * * @see ADQLObject#adqlIterator() */ public interface ADQLIterator extends Iterator { /** * Replaces the current ADQL object by the given ADQL object. This method can be called only one time per call to next. * * @param replacer The ADQL object which has to replace the current object. * * @throws UnsupportedOperationException If the replace operation is not supported by this ADQLIterator. * @throws IllegalStateException If the next method has not yet been called, or the replace method has already been called after the last call to the next method. */ public void replace(ADQLObject replacer) throws UnsupportedOperationException, IllegalStateException; }