Package com.sap.cds.ql.cqn
Interface CqnStructuredLiteral
-
- All Superinterfaces:
CqnLiteral<Map<String,Object>>
,CqnToken
,CqnValue
,JSONizable
public interface CqnStructuredLiteral extends CqnLiteral<Map<String,Object>>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
accept(CqnVisitor visitor)
Traverses the expression tree represented by this token with a givenvisitor
.default boolean
isStructured()
Returnstrue
if this is aCqnStructuredLiteral
.Map<String,Object>
value()
Returns the literal value.-
Methods inherited from interface com.sap.cds.ql.cqn.CqnLiteral
asBoolean, asLiteral, asNumber, asString, asStructured, asTemporal, isBoolean, isConstant, isLiteral, isNumeric, isString, isTemporal
-
Methods inherited from interface com.sap.cds.ql.cqn.CqnValue
as, asExpression, asFunction, asList, asNullValue, asParameter, asPlain, asRef, isExpression, isFunction, isList, isNullValue, isParameter, isPlain, isRef, ofRef, type
-
Methods inherited from interface com.sap.cds.JSONizable
toJson
-
-
-
-
Method Detail
-
value
Map<String,Object> value()
Description copied from interface:CqnLiteral
Returns the literal value.- Specified by:
value
in interfaceCqnLiteral<Map<String,Object>>
- Returns:
- the literal value
-
accept
default void accept(CqnVisitor visitor)
Description copied from interface:CqnToken
Traverses 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'saccept
methods. Afterwards this token is passed to the visitor'svisit
method specific for this token's type.- Specified by:
accept
in interfaceCqnToken
- Parameters:
visitor
- theCqnVisitor
-
isStructured
default boolean isStructured()
Description copied from interface:CqnLiteral
Returnstrue
if this is aCqnStructuredLiteral
.- Specified by:
isStructured
in interfaceCqnLiteral<Map<String,Object>>
- Returns:
true
if this is a structured literal, otherwisefalse
-
-