Interface AbstractContentAssistVisitor.StatementHelper<T extends Expression>

    • Method Detail

      • addClauseProposals

        void addClauseProposals()
        Adds the JPQL identifier of the clause being scanned by this helper.

        Note: The identifier should not be added directly to the list, it needs to be filtered out based on the location of the cursor, it can be within a word.

      • addInternalClauseProposals

        void addInternalClauseProposals​(T expression)
        Adds the JPQL identifier of the internal clause being scanned by this helper. For instance, the FROM clause could add its own sub-clauses.

        Note: The identifier should not be added directly to the list, it needs to be filtered out based on the location of the cursor, it can be within a word.

        Parameters:
        expression - The AbstractSelectStatement being visited
      • getClause

        Expression getClause​(T expression)
        Returns the clause being scanned by this helper. It is safe to type cast the clause because hasClause(Expression) is called before this one.
        Parameters:
        expression - The AbstractSelectStatement being visited
        Returns:
        The clause being scanned
      • hasClause

        boolean hasClause​(T expression)
        Determines whether the clause exists in the parsed tree.
        Parameters:
        expression - The AbstractSelectStatement being visited
        Returns:
        true if the clause has been parsed; false otherwise
      • hasSpaceAfterClause

        boolean hasSpaceAfterClause​(T expression)
        Determines whether there is a space (owned by the SELECT statement) after the clause being scanned by this helper.
        Parameters:
        expression - The AbstractSelectStatement being visited
        Returns:
        true if a space follows the clause; false otherwise
      • isClauseComplete

        boolean isClauseComplete​(T expression)
        Determines whether the clause being scanned is complete or not.
        Parameters:
        expression - The AbstractSelectStatement being visited
        Returns:
        true if the clause is complete; false otherwise
      • isRequired

        boolean isRequired()
        Determines whether the clause is required in order to make the JPQL query grammatically valid.
        Returns:
        true if the clause has to be defined; false if the clause is optional