protected static interface AbstractContentAssistVisitor.StatementHelper<T extends Expression>
Modifier and Type | Method and Description |
---|---|
void |
addClauseProposals()
Adds the JPQL identifier of the clause being scanned by this helper.
|
void |
addInternalClauseProposals(T expression)
Adds the JPQL identifier of the internal clause being scanned by this helper.
|
Expression |
getClause(T expression)
Returns the clause being scanned by this helper.
|
AbstractContentAssistVisitor.StatementHelper<? extends T> |
getNextHelper()
Returns the
AbstractContentAssistVisitor.StatementHelper that will scan the following clause, which is
based on the grammar and not on the actual existence of the clause in the parsed tree. |
boolean |
hasClause(T expression)
Determines whether the clause exists in the parsed tree.
|
boolean |
hasSpaceAfterClause(T expression)
Determines whether there is a space (owned by the SELECT statement) after the clause
being scanned by this helper.
|
boolean |
isClauseComplete(T expression)
Determines whether the clause being scanned is complete or not.
|
boolean |
isRequired()
Determines whether the clause is required in order to make the JPQL query grammatically valid.
|
void addClauseProposals()
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.
void addInternalClauseProposals(T expression)
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.
expression
- The AbstractSelectStatement
being visitedExpression getClause(T expression)
hasClause(Expression)
is called before this one.expression
- The AbstractSelectStatement
being visitedAbstractContentAssistVisitor.StatementHelper<? extends T> getNextHelper()
AbstractContentAssistVisitor.StatementHelper
that will scan the following clause, which is
based on the grammar and not on the actual existence of the clause in the parsed tree.AbstractContentAssistVisitor.StatementHelper
for the next clauseboolean hasClause(T expression)
expression
- The AbstractSelectStatement
being visitedtrue
if the clause has been parsed; false
otherwiseboolean hasSpaceAfterClause(T expression)
expression
- The AbstractSelectStatement
being visitedtrue
if a space follows the clause; false
otherwiseboolean isClauseComplete(T expression)
expression
- The AbstractSelectStatement
being visitedtrue
if the clause is complete; false
otherwiseboolean isRequired()
true
if the clause has to be defined; false
if the clause
is optional