Package org.forgerock.openig.el
Class LeftValueExpression<T>
- java.lang.Object
-
- org.forgerock.openig.el.Expression<T>
-
- org.forgerock.openig.el.LeftValueExpression<T>
-
- Type Parameters:
T
- expected result type
public final class LeftValueExpression<T> extends Expression<T>
ALeftValueExpression
is a specializedExpression
to which we can assign a value.
-
-
Field Summary
-
Fields inherited from class org.forgerock.openig.el.Expression
valueExpression
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
valueOf
public static <T> LeftValueExpression<T> valueOf(String expression, Class<T> expectedType) throws ExpressionException
Factory method to create a LeftValueExpression.- Type Parameters:
T
- expected result type- Parameters:
expression
- The expression to parse.expectedType
- The expected result type of the expression.- Returns:
- An expression based on the given string.
- Throws:
ExpressionException
- if the expression was not syntactically correct or not a left-value expression.
-
set
public void set(Bindings bindings, Object value)
Sets the result of an expression to a specified value. The expression is treated as an lvalue, the expression resolves to an object whose value will be set. If the expression does not resolve to an object or cannot otherwise be written to (e.g. read-only), then this method will have no effect.- Parameters:
bindings
- the bindings to evaluate the expression within.value
- the value to set in the result of the expression evaluation.
-
-