public static final Expression doParseExpression(int type, String expression, Location location, TemplateParser parser)
{
if (expression != null) {
ExpressionParser expressionParser =
new ExpressionParser(parser, location, expression);
return expressionParser.parseExpression(type);
} else {
parser.error(location, "Expression attribute missing");
return Expression.NULL;
}
}