Package com.sap.cds.ql.cqn
Interface CqnElementRef
-
- All Superinterfaces:
CqnReference
,CqnSelectListItem
,CqnSelectListValue
,CqnToken
,CqnValue
,JSONizable
,Selectable
- All Known Subinterfaces:
ElementRef<T>
public interface CqnElementRef extends CqnReference, CqnValue, CqnSelectListValue
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.sap.cds.ql.cqn.CqnReference
CqnReference.Segment
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default 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, rootSegment, segments, 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, type
-
Methods inherited from interface com.sap.cds.JSONizable
toJson
-
-
-
-
Field Detail
-
$KEY
static final String $KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
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
default CqnElementRef 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
default Stream<CqnElementRef> 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
default CqnValue value()
- Specified by:
value
in interfaceCqnSelectListValue
-
accept
default void accept(CqnVisitor visitor)
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
default CqnSelectListValue asValue()
- Specified by:
asValue
in interfaceCqnSelectListItem
- Specified by:
asValue
in interfaceCqnSelectListValue
-
-