
com.sap.cds.reflect.CdsService Maven / Gradle / Ivy
/************************************************************************
* © 2019-2024 SAP SE or an SAP affiliate company. All rights reserved. *
************************************************************************/
package com.sap.cds.reflect;
import java.util.stream.Stream;
public interface CdsService extends CdsDefinition {
/**
* Returns a sequential {@code Stream} over all {@link CdsEvent} definitions in
* this service.
*
* @return a sequential {@code Stream} over the {@link CdsEvent} definitions
*/
Stream events();
/**
* Returns a sequential {@code Stream} over all {@link CdsEntity} definitions in
* this service.
*
* @return a sequential {@code Stream} over the {@link CdsEntity} definitions
*/
Stream entities();
/**
* Returns a sequential {@code Stream} over all {@link CdsFunction} definitions
* in this service.
*
* @return a sequential {@code Stream} over the {@link CdsFunction} definitions
*/
Stream functions();
/**
* Returns a sequential {@code Stream} over all {@link CdsAction} definitions in
* this service.
*
* @return a sequential {@code Stream} over the {@link CdsAction} definitions
*/
Stream actions();
@Override
default CdsKind getKind() {
return CdsKind.SERVICE;
}
@Override
default void accept(CdsVisitor visitor) {
visitor.visit(this);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy