use of org.eclipse.persistence.jpa.jpql.parser.ArithmeticExpression in project eclipselink by eclipse-ee4j.
the class AbstractGrammarValidator method visit.
@Override
public void visit(ArithmeticFactor expression) {
// Missing expression after +/-
if (!expression.hasExpression()) {
int startPosition = position(expression) + 1;
addProblem(expression, startPosition, ArithmeticFactor_MissingExpression);
} else {
Expression arithmeticExpression = expression.getExpression();
if (!isValid(arithmeticExpression, ArithmeticPrimaryBNF.ID)) {
int startIndex = position(expression) + 1;
int endIndex = startIndex;
addProblem(expression, startIndex, endIndex, ArithmeticFactor_InvalidExpression);
} else {
arithmeticExpression.accept(this);
}
}
}
Aggregations