Package com.sap.cds.ql.cqn
Interface CqnElementRef
- All Superinterfaces:
CqnReference,CqnSelectListItem,CqnSelectListValue,CqnToken,CqnValue,JSONizable,Selectable
- All Known Subinterfaces:
ElementRef<T>
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.sap.cds.ql.cqn.CqnReference
CqnReference.Segment -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault voidaccept(CqnVisitor visitor) Dispatches the handling of thisCqnElementRefto a given visitor.default CqnElementRefasRef()Casts this value toCqnElementRef.default CqnSelectListValueasValue()default booleanisRef()Returnstrueif this is aCqnElementRef.default booleanisValue()default Stream<CqnElementRef>ofRef()default CqnValuevalue()Methods inherited from interface com.sap.cds.ql.cqn.CqnReference
alias, firstSegment, lastSegment, path, rootSegment, segments, size, stream, targetSegmentMethods inherited from interface com.sap.cds.ql.cqn.CqnSelectListItem
asExpand, asSelectList, isExpand, isSelectList, isStar, token, unfoldMethods inherited from interface com.sap.cds.ql.cqn.CqnSelectListValue
alias, displayName, ofValueMethods inherited from interface com.sap.cds.ql.cqn.CqnValue
as, asExpression, asFunction, asList, asLiteral, asNullValue, asParameter, asPlain, isExpression, isFunction, isList, isLiteral, isNullValue, isParameter, isPlain, ofLiteral, typeMethods inherited from interface com.sap.cds.JSONizable
toJson
-
Field Details
-
$KEY
- See Also:
-
-
Method Details
-
isRef
default boolean isRef()Description copied from interface:CqnValueReturnstrueif this is aCqnElementRef.- Specified by:
isRefin interfaceCqnSelectListItem- Specified by:
isRefin interfaceCqnSelectListValue- Specified by:
isRefin interfaceCqnValue- Returns:
trueif this is an element ref, otherwisefalse
-
asRef
Description copied from interface:CqnValueCasts this value toCqnElementRef.- Specified by:
asRefin interfaceCqnSelectListItem- Specified by:
asRefin interfaceCqnSelectListValue- Specified by:
asRefin interfaceCqnValue- Returns:
- this value as an element ref
-
ofRef
- Specified by:
ofRefin interfaceCqnSelectListItem- Specified by:
ofRefin interfaceCqnSelectListValue- Specified by:
ofRefin interfaceCqnValue
-
isValue
default boolean isValue()- Specified by:
isValuein interfaceCqnSelectListItem- Specified by:
isValuein interfaceCqnSelectListValue
-
value
- Specified by:
valuein interfaceCqnSelectListValue
-
accept
Dispatches the handling of thisCqnElementRefto a given visitor. Neither the segments of this reference nor the segments' filters are traversed.- Specified by:
acceptin interfaceCqnSelectListValue- Specified by:
acceptin interfaceCqnToken- Parameters:
visitor- theCqnVisitor
-
asValue
- Specified by:
asValuein interfaceCqnSelectListItem- Specified by:
asValuein interfaceCqnSelectListValue
-