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

com.sap.cds.ql.cqn.CqnFunc 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.ql.cqn;

import java.util.List;

public interface CqnFunc extends CqnValue {

	/**
	 * Returns the name of the function to be called.
	 *
	 * @return the function name
	 */
	String func();

	/**
	 * Returns the arguments of this function call.
	 *
	 * @return the list of arguments
	 */
	List args();

	@Override
	default boolean isFunction() {
		return true;
	}

	@Override
	default CqnFunc asFunction() {
		return this;
	}

	@Override
	default void accept(CqnVisitor visitor) {
		args().forEach(a -> a.accept(visitor));

		visitor.visit(this);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy