protected class AbstractContentAssistVisitor.WhereClauseUpdateStatementHelper extends java.lang.Object implements AbstractContentAssistVisitor.StatementHelper<UpdateStatement>
Modifier | Constructor and Description |
---|---|
protected |
AbstractContentAssistVisitor.WhereClauseUpdateStatementHelper() |
Modifier and Type | Method and Description |
---|---|
void |
addClauseProposals()
Adds the JPQL identifier of the clause being scanned by this helper.
|
void |
addInternalClauseProposals(UpdateStatement expression)
Adds the JPQL identifier of the internal clause being scanned by this helper.
|
Expression |
getClause(UpdateStatement expression)
Returns the clause being scanned by this helper.
|
AbstractContentAssistVisitor.StatementHelper<? extends UpdateStatement> |
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(UpdateStatement expression)
Determines whether the clause exists in the parsed tree.
|
boolean |
hasSpaceAfterClause(UpdateStatement expression)
Determines whether there is a space (owned by the SELECT statement) after the clause
being scanned by this helper.
|
boolean |
isClauseComplete(UpdateStatement 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.
|
protected AbstractContentAssistVisitor.WhereClauseUpdateStatementHelper()
public 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.
addClauseProposals
in interface AbstractContentAssistVisitor.StatementHelper<UpdateStatement>
public void addInternalClauseProposals(UpdateStatement 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.
addInternalClauseProposals
in interface AbstractContentAssistVisitor.StatementHelper<UpdateStatement>
expression
- The AbstractSelectStatement
being visitedpublic Expression getClause(UpdateStatement expression)
#hasClause(AbstractSelectStatement)
is called before this one.getClause
in interface AbstractContentAssistVisitor.StatementHelper<UpdateStatement>
expression
- The AbstractSelectStatement
being visitedpublic AbstractContentAssistVisitor.StatementHelper<? extends UpdateStatement> 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.getNextHelper
in interface AbstractContentAssistVisitor.StatementHelper<UpdateStatement>
AbstractContentAssistVisitor.StatementHelper
for the next clausepublic boolean hasClause(UpdateStatement expression)
hasClause
in interface AbstractContentAssistVisitor.StatementHelper<UpdateStatement>
expression
- The AbstractSelectStatement
being visitedtrue
if the clause has been parsed; false
otherwisepublic boolean hasSpaceAfterClause(UpdateStatement expression)
hasSpaceAfterClause
in interface AbstractContentAssistVisitor.StatementHelper<UpdateStatement>
expression
- The AbstractSelectStatement
being visitedtrue
if a space follows the clause; false
otherwisepublic boolean isClauseComplete(UpdateStatement expression)
isClauseComplete
in interface AbstractContentAssistVisitor.StatementHelper<UpdateStatement>
expression
- The AbstractSelectStatement
being visitedtrue
if the clause is complete; false
otherwisepublic boolean isRequired()
isRequired
in interface AbstractContentAssistVisitor.StatementHelper<UpdateStatement>
true
if the clause has to be defined; false
if the clause
is optional