public interface CqnLiteral<T> extends CqnValue
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 CqnTemporalLiteral<?> |
asTemporal()
Casts this literal to
CqnTemporalLiteral . |
default boolean |
isBoolean()
Returns
true if this is a CqnBooleanLiteral . |
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 |
isTemporal()
Returns
true if this is a CqnTemporalLiteral . |
T |
value()
Returns the literal value.
|
as, asExpression, asFunction, asNullValue, asParameter, asPlain, asRef, isExpression, isFunction, isNullValue, isParameter, isPlain, isRef, type
toJson
T value()
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 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 temporalCopyright © 2020 SAP. All rights reserved.