KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > core > expressions > IIterable


1 /*******************************************************************************
2  * Copyright (c) 2007 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.core.expressions;
12
13 import java.util.Iterator JavaDoc;
14
15 import org.eclipse.core.runtime.IAdaptable;
16 import org.eclipse.core.runtime.IAdapterManager;
17
18 /**
19  * Objects that are adaptable to <code>IIterable</code> can be used
20  * as the default variable in an iterate expression.
21  *
22  * @see IAdaptable
23  * @see IAdapterManager
24  *
25  * @since 3.3
26  */

27 public interface IIterable {
28
29     /**
30      * Returns an iterator to iterate over the elements.
31      *
32      * @return an iterator
33      */

34     public Iterator JavaDoc iterator();
35 }
Popular Tags