Class AbstractContentAssistVisitor.SelectClauseCollectionHelper
- java.lang.Object
-
- org.eclipse.persistence.jpa.jpql.tools.AbstractContentAssistVisitor.AbstractSelectClauseCollectionHelper<SelectClause>
-
- org.eclipse.persistence.jpa.jpql.tools.AbstractContentAssistVisitor.SelectClauseCollectionHelper
-
- All Implemented Interfaces:
AbstractContentAssistVisitor.CollectionExpressionHelper<SelectClause>
- Enclosing class:
- AbstractContentAssistVisitor
protected static final class AbstractContentAssistVisitor.SelectClauseCollectionHelper extends AbstractContentAssistVisitor.AbstractSelectClauseCollectionHelper<SelectClause>
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSelectClauseCollectionHelper(AbstractContentAssistVisitor visitor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAtTheEndOfChild(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.voidaddTheBeginningOfChild(SelectClause expression, CollectionExpression collectionExpression, int index, boolean hasComma)Adds the proposals because the cursor is at the beginning of the childExpressionat the given position.intpreExpressionLength(SelectClause expression)Returns the length of anything that can be defined before the first child.-
Methods inherited from class org.eclipse.persistence.jpa.jpql.tools.AbstractContentAssistVisitor.AbstractSelectClauseCollectionHelper
addIdentifier, buildCollectionExpression, canContinue, hasDelimiterAfterIdentifier, maxCollectionSize, queryBNF
-
-
-
-
Constructor Detail
-
SelectClauseCollectionHelper
protected SelectClauseCollectionHelper(AbstractContentAssistVisitor visitor)
-
-
Method Detail
-
addAtTheEndOfChild
public 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.- Specified by:
addAtTheEndOfChildin interfaceAbstractContentAssistVisitor.CollectionExpressionHelper<SelectClause>- Overrides:
addAtTheEndOfChildin classAbstractContentAssistVisitor.AbstractSelectClauseCollectionHelper<SelectClause>- Parameters:
expression- TheExpressionbeing visitedcollectionExpression- TheCollectionExpressionis either the child of the givenExpressionor 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 isfalseby 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 child
-
addTheBeginningOfChild
public void addTheBeginningOfChild(SelectClause expression, CollectionExpression collectionExpression, int index, boolean hasComma)
Adds the proposals because the cursor is at the beginning of the childExpressionat the given position.- Specified by:
addTheBeginningOfChildin interfaceAbstractContentAssistVisitor.CollectionExpressionHelper<SelectClause>- Overrides:
addTheBeginningOfChildin classAbstractContentAssistVisitor.AbstractSelectClauseCollectionHelper<SelectClause>- Parameters:
expression- TheExpressionbeing visitedcollectionExpression- TheCollectionExpressionis either the child of the givenExpressionor 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 isfalseby default
-
preExpressionLength
public int preExpressionLength(SelectClause expression)
Returns the length of anything that can be defined before the first child. An example can be "DISTINCT" in "AVG(DISTINCT e.name)".- Specified by:
preExpressionLengthin interfaceAbstractContentAssistVisitor.CollectionExpressionHelper<SelectClause>- Overrides:
preExpressionLengthin classAbstractContentAssistVisitor.AbstractSelectClauseCollectionHelper<SelectClause>- Parameters:
expression- TheExpressionbeing visited- Returns:
- The length of anything that was parsed before the first child or 0 if nothing was parsed
-
-