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

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

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

import java.util.Optional;

import com.sap.cds.ql.cqn.CqnPredicate;
import com.sap.cds.reflect.CdsEntity;

public final class QatEntityRootNode extends QatEntityNode {

	private final String name;

	public QatEntityRootNode(CdsEntity entity, Optional filter) {
		super(null, entity, filter, true);
		this.name = entity.getQualifiedName();
	}

	public QatEntityRootNode(CdsEntity entity) {
		this(entity, Optional.empty());
	}

	@Override
	public String name() {
		return name;
	}

	@Override
	public void accept(QatVisitor visitor) {
		visitor.visit(this);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy