protected static final class AbstractContentAssistVisitor.VisitParentVisitor extends AnonymousExpressionVisitor
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.
Modifier and Type | Field and Description |
---|---|
protected AbstractContentAssistVisitor |
visitor
Enclosing visitor instance.
|
Modifier | Constructor and Description |
---|---|
protected |
VisitParentVisitor(AbstractContentAssistVisitor visitor) |
Modifier and Type | Method and Description |
---|---|
protected void |
visit(Expression expression)
Blindly visit the given
Expression . |
void |
visit(InExpression expression)
Visits the
InExpression expression. |
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
protected final AbstractContentAssistVisitor visitor
protected VisitParentVisitor(AbstractContentAssistVisitor visitor)
protected void visit(Expression expression)
Expression
.visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(InExpression expression)
InExpression
expression.visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visit