protected void validatePathExpression(AbstractPathExpression expression) { // Missing identification variable if (!expression.hasIdentificationVariable() && !expression.hasVirtualIdentificationVariable()) { addProblem(expression, AbstractPathExpression_MissingIdentificationVariable); } // Validate the identification variable else { expression.getIdentificationVariable().accept(this); } // Cannot end with a dot if (expression.endsWithDot()) { addProblem(expression, AbstractPathExpression_CannotEndWithComma); } }
protected void validatePathExpression(AbstractPathExpression expression) { // Missing identification variable if (!expression.hasIdentificationVariable() && !expression.hasVirtualIdentificationVariable()) { addProblem(expression, AbstractPathExpression_MissingIdentificationVariable); } // Validate the identification variable else { expression.getIdentificationVariable().accept(this); } // Cannot end with a dot if (expression.endsWithDot()) { addProblem(expression, AbstractPathExpression_CannotEndWithComma); } }
else if ((index + 1 < count) || expression.endsWithDot()) { Resolver childResolver = resolver.getChild(path); if (childResolver == null) {