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
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
accept
(CqnVisitor visitor) Dispatches the handling of thisCqnElementRef
to a given visitor.default CqnElementRef
asRef()
Casts this value toCqnElementRef
.default CqnSelectListValue
asValue()
default boolean
isRef()
Returnstrue
if this is aCqnElementRef
.default boolean
isValue()
default Stream<CqnElementRef>
ofRef()
default CqnValue
value()
Methods inherited from interface com.sap.cds.ql.cqn.CqnReference
alias, firstSegment, lastSegment, path, rootSegment, segments, size, stream, targetSegment
Methods inherited from interface com.sap.cds.ql.cqn.CqnSelectListItem
asExpand, asSelectList, isExpand, isSelectList, isStar, token, unfold
Methods inherited from interface com.sap.cds.ql.cqn.CqnSelectListValue
alias, displayName, ofValue
Methods 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, type
Methods inherited from interface com.sap.cds.JSONizable
toJson
-
Field Details
-
$KEY
- See Also:
-
-
Method Details
-
isRef
default boolean isRef()Description copied from interface:CqnValue
Returnstrue
if this is aCqnElementRef
.- Specified by:
isRef
in interfaceCqnSelectListItem
- Specified by:
isRef
in interfaceCqnSelectListValue
- Specified by:
isRef
in interfaceCqnValue
- Returns:
true
if this is an element ref, otherwisefalse
-
asRef
Description copied from interface:CqnValue
Casts this value toCqnElementRef
.- Specified by:
asRef
in interfaceCqnSelectListItem
- Specified by:
asRef
in interfaceCqnSelectListValue
- Specified by:
asRef
in interfaceCqnValue
- Returns:
- this value as an element ref
-
ofRef
- Specified by:
ofRef
in interfaceCqnSelectListItem
- Specified by:
ofRef
in interfaceCqnSelectListValue
- Specified by:
ofRef
in interfaceCqnValue
-
isValue
default boolean isValue()- Specified by:
isValue
in interfaceCqnSelectListItem
- Specified by:
isValue
in interfaceCqnSelectListValue
-
value
- Specified by:
value
in interfaceCqnSelectListValue
-
accept
Dispatches the handling of thisCqnElementRef
to a given visitor. Neither the segments of this reference nor the segments' filters are traversed.- Specified by:
accept
in interfaceCqnSelectListValue
- Specified by:
accept
in interfaceCqnToken
- Parameters:
visitor
- theCqnVisitor
-
asValue
- Specified by:
asValue
in interfaceCqnSelectListItem
- Specified by:
asValue
in interfaceCqnSelectListValue
-