Search in sources :

Example 1 with NotExpression

use of org.eclipse.persistence.jpa.jpql.parser.NotExpression in project eclipselink by eclipse-ee4j.

the class AbstractActualJPQLQueryFormatter method visit.

@Override
public void visit(NotExpressionStateObject stateObject) {
    if (stateObject.isDecorated()) {
        toText(stateObject);
    } else {
        NotExpression expression = stateObject.getExpression();
        // 'NOT'
        appendIdentifier((expression != null) ? expression.getActualIdentifier() : NOT, NOT);
        if (shouldOutput(expression) || expression.hasSpaceAfterNot()) {
            writer.append(SPACE);
        }
        // Expression
        if (stateObject.hasStateObject()) {
            stateObject.getStateObject().accept(this);
        }
    }
}
Also used : NotExpression(org.eclipse.persistence.jpa.jpql.parser.NotExpression)

Aggregations

NotExpression (org.eclipse.persistence.jpa.jpql.parser.NotExpression)1