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
FieldsModifier and TypeFieldDescriptionprotected final AbstractContentAssistVisitorEnclosing visitor instance. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAtTheEndOfChild(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.voidaddTheBeginningOfChild(AbstractFromClause expression, CollectionExpression collectionExpression, int index, boolean hasComma) Adds the proposals because the cursor is at the beginning of the childExpressionat 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.CollectionExpressionHelperAdds the proposals because the cursor is at the end of the child at the given position.- Specified by:
addAtTheEndOfChildin interfaceAbstractContentAssistVisitor.CollectionExpressionHelper<AbstractFromClause>- Overrides:
addAtTheEndOfChildin classAbstractContentAssistVisitor.FromClauseCollectionHelper- 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(AbstractFromClause expression, CollectionExpression collectionExpression, int index, boolean hasComma) Description copied from interface:AbstractContentAssistVisitor.CollectionExpressionHelperAdds the proposals because the cursor is at the beginning of the childExpressionat the given position.- Specified by:
addTheBeginningOfChildin interfaceAbstractContentAssistVisitor.CollectionExpressionHelper<AbstractFromClause>- Overrides:
addTheBeginningOfChildin classAbstractContentAssistVisitor.FromClauseCollectionHelper- 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
-