Package com.sap.cds.reflect
Interface CdsParameter
- All Superinterfaces:
CdsAnnotatable
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
accept
(CdsVisitor visitor) Accepts aCdsVisitor
visiting this type.Returns anOptional
wrapping the default value of thisCdsParameter
.getName()
Returns the name of thisCdsParameter
.getType()
Returns the type of thisCdsParameter
.boolean
Returns true if this parameter cannot be nullMethods inherited from interface com.sap.cds.reflect.CdsAnnotatable
annotations, findAnnotation, getAnnotationValue
-
Method Details
-
getName
String getName()Returns the name of thisCdsParameter
.- Returns:
- the name of this parameter, not
null
-
getType
CdsType getType()Returns the type of thisCdsParameter
.- Returns:
- the type of this parameter, not
null
-
getDefaultValue
Returns anOptional
wrapping the default value of thisCdsParameter
.- Returns:
- an
Optional
describing the default value of theCdsParameter
, or an emptyOptional
if there is no default value
-
accept
Accepts aCdsVisitor
visiting this type.- Parameters:
visitor
- theCdsVisitor
-
isNotNull
boolean isNotNull()Returns true if this parameter cannot be null- Returns:
- true if this parameter cannot be null, otherwise false
-