Class ReturnTypeChecker
- java.lang.Object
-
- org.bonitasoft.engine.expression.impl.ReturnTypeChecker
-
public class ReturnTypeChecker extends java.lang.Object- Author:
- Emmanuel Duchastenier
-
-
Constructor Summary
Constructors Constructor Description ReturnTypeChecker()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckReturnType(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.static booleanisConvertible(java.lang.String targetType, java.lang.String sourceType)
-
-
-
Method Detail
-
checkReturnType
public void checkReturnType(SExpression expression, java.lang.Object result, java.util.Map<java.lang.String,java.lang.Object> context) throws SExpressionEvaluationException
Check if the declared return type is compatible with the real Expression evaluation return type. If the result of the Expression evaluation is null, then this method returnstrue.- Parameters:
expression- the evaluated expressionresult- the expression result to check- Throws:
SExpressionEvaluationException- if the condition is not fulfilled, does nothing otherwise
-
isConvertible
public static boolean isConvertible(java.lang.String targetType, java.lang.String sourceType)
-
-