public GeneralComparison( XQueryContext context, Expression left, Expression right, int relation, int truncation) { super(context); this.relation = relation;  if (left instanceof PathExpr && ((PathExpr) left).getLength() == 1) add(((PathExpr) left).getExpression(0)); else add(left); if (right instanceof PathExpr && ((PathExpr) right).getLength() == 1) add(((PathExpr) right).getExpression(0)); else add(right);
public GeneralComparison(XQueryContext context, int relation) { this(context, relation, Constants.TRUNC_NONE);
	public GeneralComparison(		XQueryContext context,		Expression left,		Expression right,		int relation,		int truncation) {		super(context);		this.relation = relation;		// simplify arguments		if (left instanceof PathExpr && ((PathExpr) left).getLength() == 1)			add(((PathExpr) left).getExpression(0));		else			add(left);		if (right instanceof PathExpr && ((PathExpr) right).getLength() == 1)			add(((PathExpr) right).getExpression(0));		else			add(right);	}