Package com.sap.cds.ql.cqn
Interface CqnTemporalLiteral<E extends Temporal>
- All Superinterfaces:
CqnLiteral<E>,CqnToken,CqnValue,JSONizable
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidaccept(CqnVisitor visitor) Traverses the expression tree represented by this token with a givenvisitor.default booleanReturnstrueif this is aCqnTemporalLiteral.Methods inherited from interface com.sap.cds.ql.cqn.CqnLiteral
asBoolean, asLiteral, asNumber, asString, asStructured, asTemporal, asVector, isBoolean, isConstant, isLiteral, isNumeric, isString, isStructured, isVector, ofLiteral, valueMethods 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, typeMethods inherited from interface com.sap.cds.JSONizable
toJson
-
Method Details
-
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
-
isTemporal
default boolean isTemporal()Description copied from interface:CqnLiteralReturnstrueif this is aCqnTemporalLiteral.- Specified by:
isTemporalin interfaceCqnLiteral<E extends Temporal>- Returns:
trueif this is a temporal literal, otherwisefalse
-