if (type1 == type2)
{
switch (type1)
{
case TYPE_ADDITIVE_EXPR:
AdditiveExpr additiveExpr1 = (AdditiveExpr)o1;
AdditiveExpr additiveExpr2 = (AdditiveExpr)o2;
cmp = additiveExpr1.getOperator().compareTo(additiveExpr2.getOperator());
if (cmp == 0)
{
cmp = compare(additiveExpr1.getLHS(), additiveExpr2.getLHS());
if (cmp == 0)
{
cmp = compare(additiveExpr1.getRHS(), additiveExpr2.getRHS());
}
}
break;
case TYPE_ALL_NODE_STEP:
AllNodeStep allNodeStep1 = (AllNodeStep)o1;