Class AbstractContentAssistVisitor.AbstractGroupByClauseStatementHelper<T extends AbstractSelectStatement>
java.lang.Object
org.eclipse.persistence.jpa.jpql.tools.AbstractContentAssistVisitor.AbstractGroupByClauseStatementHelper<T>
- All Implemented Interfaces:
AbstractContentAssistVisitor.StatementHelper<T>
- Direct Known Subclasses:
AbstractContentAssistVisitor.GroupByClauseStatementHelper,AbstractContentAssistVisitor.SimpleGroupByClauseStatementHelper
- Enclosing class:
AbstractContentAssistVisitor
protected abstract static class AbstractContentAssistVisitor.AbstractGroupByClauseStatementHelper<T extends AbstractSelectStatement>
extends Object
implements AbstractContentAssistVisitor.StatementHelper<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final AbstractContentAssistVisitorEnclosing visitor instance. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds the JPQL identifier of the clause being scanned by this helper.voidaddInternalClauseProposals(T expression) Adds the JPQL identifier of the internal clause being scanned by this helper.Returns the clause being scanned by this helper.booleanDetermines whether the clause exists in the parsed tree.booleanhasSpaceAfterClause(T expression) Determines whether there is a space (owned by the SELECT statement) after the clause being scanned by this helper.booleanisClauseComplete(T expression) Determines whether the clause being scanned is complete or not.booleanDetermines whether the clause is required in order to make the JPQL query grammatically valid.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.persistence.jpa.jpql.tools.AbstractContentAssistVisitor.StatementHelper
getNextHelper
-
Field Details
-
visitor
Enclosing visitor instance.
-
-
Constructor Details
-
AbstractGroupByClauseStatementHelper
-
-
Method Details
-
addClauseProposals
public void addClauseProposals()Description copied from interface:AbstractContentAssistVisitor.StatementHelperAdds 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.
- Specified by:
addClauseProposalsin interfaceAbstractContentAssistVisitor.StatementHelper<T extends AbstractSelectStatement>
-
addInternalClauseProposals
Description copied from interface:AbstractContentAssistVisitor.StatementHelperAdds the JPQL identifier of the internal clause being scanned by this helper. For instance, theFROMclause 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.
- Specified by:
addInternalClauseProposalsin interfaceAbstractContentAssistVisitor.StatementHelper<T extends AbstractSelectStatement>- Parameters:
expression- TheAbstractSelectStatementbeing visited
-
getClause
Description copied from interface:AbstractContentAssistVisitor.StatementHelperReturns the clause being scanned by this helper. It is safe to type cast the clause becauseAbstractContentAssistVisitor.StatementHelper.hasClause(Expression)is called before this one.- Specified by:
getClausein interfaceAbstractContentAssistVisitor.StatementHelper<T extends AbstractSelectStatement>- Parameters:
expression- TheAbstractSelectStatementbeing visited- Returns:
- The clause being scanned
-
hasClause
Description copied from interface:AbstractContentAssistVisitor.StatementHelperDetermines whether the clause exists in the parsed tree.- Specified by:
hasClausein interfaceAbstractContentAssistVisitor.StatementHelper<T extends AbstractSelectStatement>- Parameters:
expression- TheAbstractSelectStatementbeing visited- Returns:
trueif the clause has been parsed;falseotherwise
-
hasSpaceAfterClause
Description copied from interface:AbstractContentAssistVisitor.StatementHelperDetermines whether there is a space (owned by the SELECT statement) after the clause being scanned by this helper.- Specified by:
hasSpaceAfterClausein interfaceAbstractContentAssistVisitor.StatementHelper<T extends AbstractSelectStatement>- Parameters:
expression- TheAbstractSelectStatementbeing visited- Returns:
trueif a space follows the clause;falseotherwise
-
isClauseComplete
Description copied from interface:AbstractContentAssistVisitor.StatementHelperDetermines whether the clause being scanned is complete or not.- Specified by:
isClauseCompletein interfaceAbstractContentAssistVisitor.StatementHelper<T extends AbstractSelectStatement>- Parameters:
expression- TheAbstractSelectStatementbeing visited- Returns:
trueif the clause is complete;falseotherwise
-
isRequired
public boolean isRequired()Description copied from interface:AbstractContentAssistVisitor.StatementHelperDetermines whether the clause is required in order to make the JPQL query grammatically valid.- Specified by:
isRequiredin interfaceAbstractContentAssistVisitor.StatementHelper<T extends AbstractSelectStatement>- Returns:
trueif the clause has to be defined;falseif the clause is optional
-