EclipseLink 2.4.2, build 'v20130514-5956486' API Reference

org.eclipse.persistence.jpa.jpql
Class AbstractContentAssistVisitor.VisitParentVisitor

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

protected 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.


Constructor Summary
protected AbstractContentAssistVisitor.VisitParentVisitor()
           
 
Method Summary
protected  void visit(Expression expression)
          Blindly visit the given Expression.
 void visit(InExpression expression)
          Visits the InExpression expression.
 
Methods inherited from class org.eclipse.persistence.jpa.jpql.parser.AnonymousExpressionVisitor
visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractContentAssistVisitor.VisitParentVisitor

protected AbstractContentAssistVisitor.VisitParentVisitor()
Method Detail

visit

protected void visit(Expression expression)
Blindly visit the given Expression.

Overrides:
visit in class AnonymousExpressionVisitor
Parameters:
expression - The Expression to visit

visit

public void visit(InExpression expression)
Visits the InExpression expression.

Specified by:
visit in interface ExpressionVisitor
Overrides:
visit in class AnonymousExpressionVisitor
Parameters:
expression - The Expression to visit

EclipseLink 2.4.2, build 'v20130514-5956486' API Reference