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

com.sap.cds.impl.qat.QatTraverser Maven / Gradle / Ivy

There is a newer version: 3.6.1
Show newest version
/*******************************************************************
 * © 2019 SAP SE or an SAP affiliate company. All rights reserved. *
 *******************************************************************/
package com.sap.cds.impl.qat;

public class QatTraverser {

	private final QatVisitor visitor;

	private QatTraverser(QatVisitor visitor) {
		this.visitor = visitor;
	}

	public static QatTraverser take(QatVisitor visitor) {
		return new QatTraverser(visitor);
	}

	public void traverse(QatNode qat) {
		qat.accept(visitor);
		qat.children().forEach(this::traverse);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy