T
- Expression typeE
- Constant value typepublic interface ConstantConverterExpression<T,E> extends ConverterExpression<E>
ExpressionValueConverter
.Expression.ExpressionResolverFunction<E extends Expression,R extends Expression>, Expression.InvalidExpressionException
Modifier and Type | Method and Description |
---|---|
static <T> ConstantConverterExpression<T,T> |
create(T value)
Create a
ConstantConverterExpression which represents a constant value, deriving the expression type from
the value class. |
static <T> ConstantConverterExpression<T,T> |
create(T value,
Class<? extends T> type)
Create a
ConstantConverterExpression which represents a constant value. |
static <T> ConstantConverterExpression<T,T> |
create(TypedExpression<T> expression,
T value)
Create a
ConstantConverterExpression which represents a constant value, using given
expression to inherit an ExpressionValueConverter , if available. |
Object |
getModelValue()
Get the model data type value, using the
ExpressionValueConverter to convert constant expression value,
if available. |
T |
getValue()
Get the constant expression value
|
getExpressionValueConverter, getModelType, getModelValue
getTemporalType, getType, isCollectionExpression, isConverterExpression
validate
T getValue()
Object getModelValue()
ExpressionValueConverter
to convert constant expression value,
if available. If an ExpressionValueConverter
is not available, the original expression value is returned.ExpressionValueConverter
is available, otherwise
getValue()
is returned.static <T> ConstantConverterExpression<T,T> create(T value)
ConstantConverterExpression
which represents a constant value, deriving the expression type from
the value class.T
- Expression and value typevalue
- Constant value (not null)ConstantConverterExpression
instancestatic <T> ConstantConverterExpression<T,T> create(T value, Class<? extends T> type)
ConstantConverterExpression
which represents a constant value.T
- Expression and value typevalue
- Constant valuetype
- Constant value type (not null)ConstantConverterExpression
instancestatic <T> ConstantConverterExpression<T,T> create(TypedExpression<T> expression, T value)
ConstantConverterExpression
which represents a constant value, using given
expression
to inherit an ExpressionValueConverter
, if available.T
- Expression and value typeexpression
- Expression form which to inherit an ExpressionValueConverter
, if available (not null)value
- Constant valueConstantConverterExpression
instanceCopyright © 2019 The Holon Platform. All rights reserved.