Class Expressions
- java.lang.Object
-
- org.ow2.authzforce.core.pdp.api.expression.Expressions
-
public final class Expressions extends Object
This class consists exclusively of constants and static methods to operate onExpression
s.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <V extends Value>
Veval(Expression<?> arg, EvaluationContext context, Datatype<V> returnType)
Evaluate single-valued (primitive) argument expressionstatic AttributeValue
evalPrimitive(Expression<?> arg, EvaluationContext context)
Evaluate single-valued (primitive) argument expression
-
-
-
Method Detail
-
eval
public static <V extends Value> V eval(Expression<?> arg, EvaluationContext context, Datatype<V> returnType) throws IndeterminateEvaluationException
Evaluate single-valued (primitive) argument expression- Parameters:
arg
- argument expressioncontext
- context in which argument expression is evaluatedreturnType
- type of returned attribute value- Returns:
- result of evaluation
- Throws:
IndeterminateEvaluationException
- if no value returned from evaluation, orreturnType
is not a supertype of the result value datatype
-
evalPrimitive
public static AttributeValue evalPrimitive(Expression<?> arg, EvaluationContext context) throws IndeterminateEvaluationException
Evaluate single-valued (primitive) argument expression- Parameters:
arg
- argument expressioncontext
- context in which argument expression is evaluated- Returns:
- result of evaluation
- Throws:
IndeterminateEvaluationException
- if no value returned from evaluation, orreturnType
is not a supertype of the result value datatype
-
-