/** * {@inheritDoc} */ @Override public void visit(InExpression expression) { // Only AND, OR, NOT or clause identifiers can follow this expression // when the type is LOGICAL or CLAUSE appendable = (appendableType == AppendableType.COMPLETE || appendableType == AppendableType.LOGICAL) && expression.hasRightParenthesis(); }
/** * {@inheritDoc} */ public void visit(InExpression expression) { if (badExpression) { if (!expression.hasExpression() && positionWithinInvalidExpression <= 2 /* IN */) { queryPosition.setExpression(expression); queryPosition.addPosition(expression, positionWithinInvalidExpression); } } else { if (expression.hasInItems() && !expression.hasRightParenthesis()) { expression.getInItems(); } if (queryPosition.getExpression() == null) { queryPosition.setExpression(expression); } queryPosition.addPosition(expression, expression.getLength() - correction); } }
!expression.hasRightParenthesis()) {