Class EclipseLinkContentAssistVisitor.FromClauseCollectionHelper
java.lang.Object
org.eclipse.persistence.jpa.jpql.tools.AbstractContentAssistVisitor.FromClauseCollectionHelper
org.eclipse.persistence.jpa.jpql.tools.EclipseLinkContentAssistVisitor.FromClauseCollectionHelper
- All Implemented Interfaces:
AbstractContentAssistVisitor.CollectionExpressionHelper<AbstractFromClause>
- Enclosing class:
EclipseLinkContentAssistVisitor
protected class EclipseLinkContentAssistVisitor.FromClauseCollectionHelper
extends AbstractContentAssistVisitor.FromClauseCollectionHelper
-
Field Summary
Modifier and TypeFieldDescriptionprotected final AbstractContentAssistVisitor
Enclosing visitor instance. -
Constructor Summary
ModifierConstructorDescriptionprotected
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAtTheEndOfChild
(AbstractFromClause 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
(AbstractFromClause expression, CollectionExpression collectionExpression, int index, boolean hasComma) Adds the proposals because the cursor is at the beginning of the childExpression
at the given position.Methods inherited from class org.eclipse.persistence.jpa.jpql.tools.AbstractContentAssistVisitor.FromClauseCollectionHelper
addIdentifier, buildCollectionExpression, canContinue, hasDelimiterAfterIdentifier, maxCollectionSize, preExpressionLength, queryBNF
-
Field Details
-
visitor
Enclosing visitor instance.
-
-
Constructor Details
-
FromClauseCollectionHelper
-
-
Method Details
-
addAtTheEndOfChild
public void addAtTheEndOfChild(AbstractFromClause expression, CollectionExpression collectionExpression, int index, boolean hasComma, boolean virtualSpace) Description copied from interface:AbstractContentAssistVisitor.CollectionExpressionHelper
Adds the proposals because the cursor is at the end of the child at the given position.- Specified by:
addAtTheEndOfChild
in interfaceAbstractContentAssistVisitor.CollectionExpressionHelper<AbstractFromClause>
- Overrides:
addAtTheEndOfChild
in classAbstractContentAssistVisitor.FromClauseCollectionHelper
- Parameters:
expression
- TheExpression
being visitedcollectionExpression
- TheCollectionExpression
is either the child of the givenExpression
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 isfalse
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 child
-
addTheBeginningOfChild
public void addTheBeginningOfChild(AbstractFromClause expression, CollectionExpression collectionExpression, int index, boolean hasComma) Description copied from interface:AbstractContentAssistVisitor.CollectionExpressionHelper
Adds the proposals because the cursor is at the beginning of the childExpression
at the given position.- Specified by:
addTheBeginningOfChild
in interfaceAbstractContentAssistVisitor.CollectionExpressionHelper<AbstractFromClause>
- Overrides:
addTheBeginningOfChild
in classAbstractContentAssistVisitor.FromClauseCollectionHelper
- Parameters:
expression
- TheExpression
being visitedcollectionExpression
- TheCollectionExpression
is either the child of the givenExpression
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 isfalse
by default
-