T
- expected result typepublic final class LeftValueExpression<T> extends Expression<T>
LeftValueExpression
is a specialized Expression
to which we can assign a value.valueExpression
Modifier and Type | Method and Description |
---|---|
void |
set(Bindings bindings,
Object value)
Sets the result of an expression to a specified value.
|
static <T> LeftValueExpression<T> |
valueOf(String expression,
Class<T> expectedType)
Factory method to create a LeftValueExpression.
|
eval, eval, toString, valueOf
public static <T> LeftValueExpression<T> valueOf(String expression, Class<T> expectedType) throws ExpressionException
T
- expected result typeexpression
- The expression to parse.expectedType
- The expected result type of the expression.ExpressionException
- if the expression was not syntactically correct or not a left-value expression.public void set(Bindings bindings, Object value)
bindings
- the bindings to evaluate the expression within.value
- the value to set in the result of the expression evaluation.Copyright 2011-2017 ForgeRock AS.