Class AbstractContentAssistVisitor.AbstractConditionalClauseCollectionHelper<T extends Expression>

    • Constructor Detail

    • Method Detail

      • addAtTheEndOfChild

        public void addAtTheEndOfChild​(Expression 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:
        addAtTheEndOfChild in interface AbstractContentAssistVisitor.CollectionExpressionHelper<T extends Expression>
        Parameters:
        expression - The Expression being visited
        collectionExpression - The CollectionExpression is either the child of the given Expression or a temporary generated one that usually contains a single item
        index - The position of that child in the collection of children
        hasComma - Indicates whether a comma is present before the child at the given position; if the index is 0, then this is false by default
        virtualSpace - 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​(Expression 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.
        Specified by:
        addTheBeginningOfChild in interface AbstractContentAssistVisitor.CollectionExpressionHelper<T extends Expression>
        Parameters:
        expression - The Expression being visited
        collectionExpression - 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 beginning
        index - The position of the child that was scanned
        hasComma - Indicates whether a comma is present before the child at the given position; if the index is 0, then this is false by default
      • findChild

        protected java.lang.Object[] findChild​(CollectionExpression collectionExpression,
                                               int index)
        Handles a special case for a compound identifier like 'IS EMPTY' or 'IS NOT EMPTY'.
        Parameters:
        collectionExpression - The CollectionExpression is used to find the Expression to use when filtering out compound identifier
        index - The position to start the search, which goes from that index to the beginning
        Returns:
        An array of three elements. The first one is the child Expression that can be used when filtering out compound identifier. The second boolean element indicates if IS was detected after the child. The third boolean element indicates if NOT was detected after the child, which would also be after IS if it was detected. null is returned if nothing could be found