T
- the JVM type of value held by the literalpublic interface Literal<T> extends Expression
Modifier and Type | Interface and Description |
---|---|
static class |
Literal.LiteralImpl<T>
Creates a literal with the given type value.
|
EMPTY_EXPRESSION, EMPTY_NAMED_REFERENCE
Modifier and Type | Method and Description |
---|---|
default Expression[] |
children() |
Type |
dataType() |
static Literal.LiteralImpl<java.lang.Integer> |
integer(java.lang.Integer value)
Creates an integer literal with the given value.
|
static <T> Literal.LiteralImpl<T> |
of(T value,
Type dataType)
Creates a literal with the given value and data type.
|
static Literal.LiteralImpl<java.lang.String> |
string(java.lang.String value)
Creates a string literal with the given value.
|
T |
value() |
references
T value()
Type dataType()
default Expression[] children()
children
in interface Expression
static <T> Literal.LiteralImpl<T> of(T value, Type dataType)
T
- the JVM type of value held by the literalvalue
- the literal valuedataType
- the data type of the literalLiteral
instancestatic Literal.LiteralImpl<java.lang.Integer> integer(java.lang.Integer value)
value
- the integer literal valueLiteral
instancestatic Literal.LiteralImpl<java.lang.String> string(java.lang.String value)
value
- the string literal valueLiteral
instance