Class AbstractContentAssistVisitor.VisitParentVisitor

java.lang.Object
org.eclipse.persistence.jpa.jpql.parser.AnonymousExpressionVisitor
org.eclipse.persistence.jpa.jpql.tools.AbstractContentAssistVisitor.VisitParentVisitor
All Implemented Interfaces:
ExpressionVisitor
Enclosing class:
AbstractContentAssistVisitor

protected static final class AbstractContentAssistVisitor.VisitParentVisitor extends AnonymousExpressionVisitor
This visitor is meant to adjust the corrections stack when traversing an Expression in order to increase the list of valid proposals.

For instance, if the query is "SELECT e FROM Employee e WHERE IN" and the cursor is at the end of the query, then IN would be parsed with InExpression. However, due to how AbstractContentAssistVisitor works, the identifier INDEX is not added as a valid proposal. This visitor adds that functionality.