org.eclipse.xtext.nodemodel.util.ReversedBidiTreeIterable Maven / Gradle / Ivy
/*******************************************************************************
* Copyright (c) 2010 itemis AG (http://www.itemis.eu) and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*******************************************************************************/
package org.eclipse.xtext.nodemodel.util;
import org.eclipse.xtext.nodemodel.BidiTreeIterable;
import org.eclipse.xtext.nodemodel.BidiTreeIterator;
public class ReversedBidiTreeIterable extends ReversedBidiIterable implements BidiTreeIterable {
public ReversedBidiTreeIterable(BidiTreeIterable delegate) {
super(delegate);
}
@Override
public BidiTreeIterator iterator() {
BidiTreeIterator delegate = getDelegate().iterator();
return new ReversedBidiTreeIterator(delegate);
}
@Override
public BidiTreeIterable reverse() {
return getDelegate();
}
@Override
protected BidiTreeIterable getDelegate() {
return (BidiTreeIterable) super.getDelegate();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy