protected class AbstractContentAssistVisitor.SelectClauseCollectionHelper extends AbstractContentAssistVisitor.AbstractSelectClauseCollectionHelper<SelectClause>
Modifier | Constructor and Description |
---|---|
protected |
AbstractContentAssistVisitor.SelectClauseCollectionHelper() |
Modifier and Type | Method and Description |
---|---|
void |
addAtTheEndOfChild(SelectClause expression,
CollectionExpression collectionExpression,
int index,
boolean hasComma,
boolean virtualSpace)
Adds the proposals because the cursor is at the end of the child at the given position.
|
void |
addTheBeginningOfChild(SelectClause expression,
CollectionExpression collectionExpression,
int index,
boolean hasComma)
Adds the proposals because the cursor is at the beginning of the child
Expression
at the given position. |
int |
preExpressionLength(SelectClause expression)
Returns the length of anything that can be defined before the first child.
|
addIdentifier, buildCollectionExpression, canContinue, hasDelimiterAfterIdentifier, maxCollectionSize, queryBNF
protected AbstractContentAssistVisitor.SelectClauseCollectionHelper()
public void addAtTheEndOfChild(SelectClause expression, CollectionExpression collectionExpression, int index, boolean hasComma, boolean virtualSpace)
addAtTheEndOfChild
in interface AbstractContentAssistVisitor.CollectionExpressionHelper<SelectClause>
addAtTheEndOfChild
in class AbstractContentAssistVisitor.AbstractSelectClauseCollectionHelper<SelectClause>
expression
- The Expression
being visitedcollectionExpression
- The CollectionExpression
is either the child of the
given Expression
or a temporary generated one that usually contains a single itemindex
- The position of that child in the collection of childrenhasComma
- Indicates whether a comma is present before the child at the given position;
if the index is 0, then this is false
by defaultvirtualSpace
- Indicates if this method is called because the cursor is at the end of
the child at the specified index but by considering there is a virtual space at the end of
that childpublic void addTheBeginningOfChild(SelectClause expression, CollectionExpression collectionExpression, int index, boolean hasComma)
Expression
at the given position.addTheBeginningOfChild
in interface AbstractContentAssistVisitor.CollectionExpressionHelper<SelectClause>
addTheBeginningOfChild
in class AbstractContentAssistVisitor.AbstractSelectClauseCollectionHelper<SelectClause>
expression
- The Expression
being visitedcollectionExpression
- The CollectionExpression
is either the child of the
given Expression
or a temporary generated one that usually contains a single item.
This can be null if the position is at the beginningindex
- The position of the child that was scannedhasComma
- Indicates whether a comma is present before the child at the given position;
if the index is 0, then this is false
by defaultpublic int preExpressionLength(SelectClause expression)
DISTINCT
" in "AVG(DISTINCT e.name)
".preExpressionLength
in interface AbstractContentAssistVisitor.CollectionExpressionHelper<SelectClause>
preExpressionLength
in class AbstractContentAssistVisitor.AbstractSelectClauseCollectionHelper<SelectClause>
expression
- The Expression
being visited