public final class Expressions extends Object
Expression
s.Modifier and Type | Method and Description |
---|---|
static <V extends Value> |
eval(Expression<?> arg,
EvaluationContext context,
Datatype<V> returnType)
Evaluate single-valued (primitive) argument expression
|
static AttributeValue |
evalPrimitive(Expression<?> arg,
EvaluationContext context)
Evaluate single-valued (primitive) argument expression
|
public static <V extends Value> V eval(Expression<?> arg, EvaluationContext context, Datatype<V> returnType) throws IndeterminateEvaluationException
arg
- argument expressioncontext
- context in which argument expression is evaluatedreturnType
- type of returned attribute valueIndeterminateEvaluationException
- if no value returned from evaluation, or returnType
is not a supertype of the result value datatypepublic static AttributeValue evalPrimitive(Expression<?> arg, EvaluationContext context) throws IndeterminateEvaluationException
arg
- argument expressioncontext
- context in which argument expression is evaluatedIndeterminateEvaluationException
- if no value returned from evaluation, or returnType
is not a supertype of the result value datatypeCopyright © 2012–2020. All rights reserved.