public class ReturnTypeChecker
extends java.lang.Object
| Constructor and Description |
|---|
ReturnTypeChecker() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkReturnType(SExpression expression,
java.lang.Object result,
java.util.Map<java.lang.String,java.lang.Object> context)
Check if the declared return type is compatible with the real Expression evaluation return type.
|
public void checkReturnType(SExpression expression, java.lang.Object result, java.util.Map<java.lang.String,java.lang.Object> context) throws SExpressionEvaluationException
true.expression - the evaluated expressionresult - the expression result to checkSExpressionEvaluationException - if the condition is not fulfilled, does nothing otherwise