boolean exactMatch,
String stringRepresentation,
List errorCollector)
throws ExpressionException
{
Expression expr = (Expression)parse(env,
stringRepresentation,
errorCollector);
if (expr != null) {
typeCheck(env, rootType, fieldName, expr, expectedType, containerType,
exactMatch, errorCollector);
Node exprRootNode = expr.getRootNode();
if (exprRootNode != null &&
(exprRootNode.getTypeInfo() == null ||
exprRootNode.getTypeInfo() instanceof NullTypeInfo)) {
TypeRetriever retriever = env.getTypeRetriever();
TypeInfo typeInfo = (!StringUtil.nullOrEmptyOrBlankString(expectedType) ?