Package com.sap.cds.reflect
Interface CdsType
- All Superinterfaces:
CdsAnnotatable,CdsDefinition,CdsNamed
- All Known Subinterfaces:
CdsArrayedType,CdsAssociationType,CdsDecimal,CdsEntity,CdsEnumType<T>,CdsEvent,CdsSimpleType,CdsStringType,CdsStructuredType
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanReturnstrueif this is an arrayed type.default booleanReturnstrueif this is an association type.default booleanisEnum()Returnstrueif this is an enum type.default booleanisSimple()Returnstrueif this is a simple type.default booleanisSimpleType(CdsBaseType baseType) Returnstrueif this is a simple type with a given base type.default booleanReturnstrueif this is a structured type.default booleanReturnstrueif this is a symbolic type with special meaning e.g. reference to something else or a $self.Methods inherited from interface com.sap.cds.reflect.CdsAnnotatable
annotations, findAnnotation, getAnnotationValue, getDocMethods inherited from interface com.sap.cds.reflect.CdsDefinition
accept, as, getKey, getKind, getName, getQualifiedName, getQualifier
-
Method Details
-
isSimple
default boolean isSimple()Returnstrueif this is a simple type.- Returns:
trueif this is a simple type, otherwisefalse
-
isStructured
default boolean isStructured()Returnstrueif this is a structured type.- Returns:
trueif this is a structured type, otherwisefalse
-
isAssociation
default boolean isAssociation()Returnstrueif this is an association type.- Returns:
trueif this is an association type, otherwisefalse
-
isEnum
default boolean isEnum()Returnstrueif this is an enum type.- Returns:
trueif this is an enum type, otherwisefalse
-
isArrayed
default boolean isArrayed()Returnstrueif this is an arrayed type.- Returns:
trueif this is an arrayed type, otherwisefalse
-
isSimpleType
Returnstrueif this is a simple type with a given base type.- Parameters:
baseType- the base type- Returns:
trueif this is a simple type with a given base type, otherwisefalse
-
isSymbolicType
default boolean isSymbolicType()Returnstrueif this is a symbolic type with special meaning e.g. reference to something else or a $self.- Returns:
trueif this is a symbolic type, otherwisefalse
-