*/
Map<Expression, Expression> buildElementMap(Collection<Criteria> crits) {
Map<Expression, Expression> srcToTgt = null;
for (Criteria theCrit : crits) {
if (theCrit instanceof IsNullCriteria) {
IsNullCriteria isNull = (IsNullCriteria)theCrit;
if (!isNull.isNegated() && isNull.getExpression() instanceof ElementSymbol) {
if (srcToTgt == null) {
srcToTgt = new HashMap<Expression, Expression>();
}
srcToTgt.put(isNull.getExpression(), new Constant(null, isNull.getExpression().getType()));
}
continue;
}
if(!(theCrit instanceof CompareCriteria)) {
continue;