org.eclipse.xtext.nodemodel.util.NodeIterable Maven / Gradle / Ivy
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