public final class Expressions extends Object
Modifier and Type | Method and Description |
---|---|
static List<Object> |
evaluate(List<Object> list,
Bindings bindings)
Evaluate a list that may contain some String that needs to be evaluated.
|
static Map<String,Object> |
evaluate(Map<String,Object> map,
Bindings bindings)
Evaluate a map that may contain some values that needs to be evaluated.
|
static Object |
evaluate(Object value,
Bindings bindings)
Evaluate an Object that may contain some String that needs to be evaluated.
|
static Object |
evaluate(String value,
Bindings bindings)
Evaluate a String.
|
static String |
evaluateKey(String key,
Bindings bindings)
Evaluate a String.
|
public static Map<String,Object> evaluate(Map<String,Object> map, Bindings bindings) throws ExpressionException
map
- the map to evaluatebindings
- the bindings used for the evaluationExpressionException
- if an error occurs while evaluating the expressionpublic static List<Object> evaluate(List<Object> list, Bindings bindings) throws ExpressionException
list
- the list to evaluatebindings
- the bindings used for the evaluationExpressionException
- if an error occurs while evaluating the expressionpublic static Object evaluate(String value, Bindings bindings) throws ExpressionException
value
- the String to evaluatebindings
- the bindings used for the evaluationExpressionException
- if an error occurs while evaluating the expressionpublic static String evaluateKey(String key, Bindings bindings)
key
- the String to evaluate.bindings
- the bindings used for the evaluation.public static Object evaluate(Object value, Bindings bindings) throws ExpressionException
value
- the String to evaluatebindings
- the bindings used for the evaluationExpressionException
- if an error occurs while evaluating the expressionCopyright 2011-2017 ForgeRock AS.