Package com.sap.cds.ql.cqn
Interface CqnSelectListValue
- All Superinterfaces:
CqnSelectListItem,CqnToken,JSONizable,Selectable
- All Known Subinterfaces:
CqnElementRef,ElementRef<T>
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidaccept(CqnVisitor visitor) Traverses the expression tree represented by this token with a givenvisitor.alias()default CqnElementRefasRef()default CqnSelectListValueasValue()Returns display name of this select list value.default booleanisRef()default booleanisValue()default Stream<CqnElementRef>ofRef()default Stream<CqnSelectListValue>ofValue()value()Methods inherited from interface com.sap.cds.ql.cqn.CqnSelectListItem
asExpand, asSelectList, isExpand, isSelectList, isStar, token, unfoldMethods inherited from interface com.sap.cds.JSONizable
toJson
-
Method Details
-
value
CqnValue value() -
displayName
String displayName()Returns display name of this select list value. It is the name of the element of the underlying entity or the alias.- Returns:
- the display name as a string
-
alias
-
isValue
default boolean isValue()- Specified by:
isValuein interfaceCqnSelectListItem
-
asValue
- Specified by:
asValuein interfaceCqnSelectListItem
-
ofValue
- Specified by:
ofValuein interfaceCqnSelectListItem
-
isRef
default boolean isRef()- Specified by:
isRefin interfaceCqnSelectListItem
-
asRef
- Specified by:
asRefin interfaceCqnSelectListItem
-
ofRef
- Specified by:
ofRefin interfaceCqnSelectListItem
-
accept
Description copied from interface:CqnTokenTraverses the expression tree represented by this token with a givenvisitor. The traversal order is depth-first. If this token has child nodes they are traversed first by dispatching the visitor to the children'sacceptmethods. Afterwards this token is passed to the visitor'svisitmethod specific for this token's type.- Specified by:
acceptin interfaceCqnToken- Parameters:
visitor- theCqnVisitor
-