Package com.sap.cds.reflect
Interface CdsService
-
- All Superinterfaces:
CdsAnnotatable
,CdsDefinition
,CdsNamed
public interface CdsService extends CdsDefinition
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
accept(CdsVisitor visitor)
Accepts aCdsVisitor
visiting the elements of this definition (depth-first)Stream<CdsAction>
actions()
Returns a sequentialStream
over allCdsAction
definitions in this service.Stream<CdsEntity>
entities()
Returns a sequentialStream
over allCdsEntity
definitions in this service.Stream<CdsEvent>
events()
Returns a sequentialStream
over allCdsEvent
definitions in this service.Stream<CdsFunction>
functions()
Returns a sequentialStream
over allCdsFunction
definitions in this service.default CdsKind
getKind()
Returns the kind of this definition.boolean
isAbstract()
Returnstrue
if this service is abstract.-
Methods inherited from interface com.sap.cds.reflect.CdsAnnotatable
annotations, findAnnotation, getAnnotationValue
-
Methods inherited from interface com.sap.cds.reflect.CdsDefinition
as, getKey, getName, getQualifiedName, getQualifier
-
-
-
-
Method Detail
-
isAbstract
boolean isAbstract()
Returnstrue
if this service is abstract.- Returns:
true
if this service is abstract, otherwisefalse
-
events
Stream<CdsEvent> events()
Returns a sequentialStream
over allCdsEvent
definitions in this service.- Returns:
- a sequential
Stream
over theCdsEvent
definitions
-
entities
Stream<CdsEntity> entities()
Returns a sequentialStream
over allCdsEntity
definitions in this service.- Returns:
- a sequential
Stream
over theCdsEntity
definitions
-
functions
Stream<CdsFunction> functions()
Returns a sequentialStream
over allCdsFunction
definitions in this service.- Returns:
- a sequential
Stream
over theCdsFunction
definitions
-
actions
Stream<CdsAction> actions()
Returns a sequentialStream
over allCdsAction
definitions in this service.- Returns:
- a sequential
Stream
over theCdsAction
definitions
-
getKind
default CdsKind getKind()
Description copied from interface:CdsDefinition
Returns the kind of this definition.- Specified by:
getKind
in interfaceCdsDefinition
- Returns:
- the kind of this definition
-
accept
default void accept(CdsVisitor visitor)
Description copied from interface:CdsDefinition
Accepts aCdsVisitor
visiting the elements of this definition (depth-first)- Specified by:
accept
in interfaceCdsDefinition
- Parameters:
visitor
- theCdsVisitor
-
-