All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.eclipse.xtext.nodemodel.util.NodeIterable Maven / Gradle / Ivy

There is a newer version: 2.4.3
Show newest version
package org.eclipse.xtext.nodemodel.util;

import org.eclipse.xtext.nodemodel.BidiIterable;
import org.eclipse.xtext.nodemodel.BidiIterator;
import org.eclipse.xtext.nodemodel.INode;

/**
 * @author Sebastian Zarnekow - Initial contribution and API
 */
public class NodeIterable implements BidiIterable {
	
	private final INode startWith;

	public NodeIterable(INode startWith) {
		this.startWith = startWith;
	}

	public BidiIterator iterator() {
		return new NodeIterator(startWith);
	}
	
	public BidiIterable reverse() {
		return new ReversedBidiIterable(this);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy