public interface CqnLiteral<T> extends CqnValue
T
. Use value()
to get the value.Modifier and Type | Method and Description |
---|---|
default CqnBooleanLiteral |
asBoolean()
Casts this literal to
CqnBooleanLiteral . |
default CqnLiteral<?> |
asLiteral()
Casts this value to
CqnLiteral . |
default CqnNumericLiteral<?> |
asNumber()
Casts this literal to
CqnNumericLiteral . |
default CqnStringLiteral |
asString()
Casts this literal to
CqnStringLiteral . |
default CqnStructuredLiteral |
asStructured()
Casts this literal to
CqnStructuredLiteral . |
default CqnTemporalLiteral<?> |
asTemporal()
Casts this literal to
CqnTemporalLiteral . |
default boolean |
isBoolean()
Returns
true if this is a CqnBooleanLiteral . |
default boolean |
isConstant()
Specifies if this
CqnLiteral should be handled as a constant value
during query execution. |
default boolean |
isLiteral()
Returns
true if this is a CqnLiteral . |
default boolean |
isNumeric()
Returns
true if this is a CqnNumericLiteral . |
default boolean |
isString()
Returns
true if this is a CqnStringLiteral . |
default boolean |
isStructured()
Returns
true if this is a CqnStructuredLiteral . |
default boolean |
isTemporal()
Returns
true if this is a CqnTemporalLiteral . |
T |
value()
Returns the literal value.
|
as, asExpression, asFunction, asList, asNullValue, asParameter, asPlain, asRef, isExpression, isFunction, isList, isNullValue, isParameter, isPlain, isRef, ofRef, type
toJson
T value()
default boolean isConstant()
CqnLiteral
should be handled as a constant value
during query execution.default CqnLiteral<?> asLiteral()
CqnValue
CqnLiteral
.default boolean isLiteral()
CqnValue
true
if this is a CqnLiteral
.default boolean isBoolean()
true
if this is a CqnBooleanLiteral
.true
if this is a boolean literal, otherwise false
default boolean isNumeric()
true
if this is a CqnNumericLiteral
.true
if this is a numeric literal, otherwise false
default boolean isString()
true
if this is a CqnStringLiteral
.true
if this is a string literal, otherwise false
default boolean isTemporal()
true
if this is a CqnTemporalLiteral
.true
if this is a temporal literal, otherwise false
default boolean isStructured()
true
if this is a CqnStructuredLiteral
.true
if this is a structured literal, otherwise false
default CqnBooleanLiteral asBoolean()
CqnBooleanLiteral
.ClassCastException
- if this literal is not booleandefault CqnStringLiteral asString()
CqnStringLiteral
.ClassCastException
- if this literal is not a string literaldefault CqnNumericLiteral<?> asNumber()
CqnNumericLiteral
.ClassCastException
- if this literal is not numericdefault CqnTemporalLiteral<?> asTemporal()
CqnTemporalLiteral
.ClassCastException
- if this literal is not temporaldefault CqnStructuredLiteral asStructured()
CqnStructuredLiteral
.ClassCastException
- if this literal is not structuredCopyright © 2023 SAP. All rights reserved.