case TYPE_UNION_EXPR:
if (true)
throw new RuntimeException("Not yet implemented!");
break;
case TYPE_VARIABLE_REFERENCE_EXPR:
VariableReferenceExpr variableReferenceExpr1 = (VariableReferenceExpr)o1;
VariableReferenceExpr variableReferenceExpr2 = (VariableReferenceExpr)o2;
cmp = compareStrings(variableReferenceExpr1.getPrefix(), variableReferenceExpr2.getPrefix());
if (cmp == 0)
{
cmp = variableReferenceExpr1.getVariableName().compareTo(variableReferenceExpr2.getVariableName());
}
break;
default:
throw new IllegalArgumentException("Unhandled type: " + type1);
}