/** * Copy an expression. This makes a deep copy. * * @return the copy of the original expression * @param rebindings */ /*@NotNull*/ @Override public Expression copy(RebindingMap rebindings) { HomogeneityChecker hc = new HomogeneityChecker(getBaseExpression().copy(rebindings)); ExpressionTool.copyLocationInfo(this, hc); return hc; }
/** * Copy an expression. This makes a deep copy. * * @return the copy of the original expression * @param rebindings */ /*@NotNull*/ @Override public Expression copy(RebindingMap rebindings) { HomogeneityChecker hc = new HomogeneityChecker(getBaseExpression().copy(rebindings)); ExpressionTool.copyLocationInfo(this, hc); return hc; }
exp = new HomogeneityChecker(new SlashExpression(exp, next)); } else /* (op == Token.SLASH_SLASH)*/ { setLocation(one, offset); exp = ExpressionTool.makePathExpression(one, next); exp = new HomogeneityChecker(exp);
exp = new HomogeneityChecker(new SlashExpression(exp, next)); } else if (op == Token.SLASH_SLASH) { setLocation(step); exp = ExpressionTool.makePathExpression(exp, step); exp = new HomogeneityChecker(exp); } else /*if (op == Token.BANG)*/ { if (!allowXPath30Syntax) {
setLocation(one, offset); exp = ExpressionTool.makePathExpression(one, next); exp = new HomogeneityChecker(exp);
setLocation(step); exp = ExpressionTool.makePathExpression(exp, step); exp = new HomogeneityChecker(exp); } else /*if (op == Token.BANG)*/ { if (!allowXPath30Syntax) {
if (t.overlaps(UType.ANY_NODE)) { if (t.overlaps(UType.ANY_ATOMIC.union(UType.FUNCTION))) { result = new HomogeneityChecker(result); } else if (e2.hasSpecialProperty(StaticProperty.ORDERED_NODESET)) {