Class AbstractContentAssistVisitor.WhenClauseConditionalClauseCollectionHelper
java.lang.Object
org.eclipse.persistence.jpa.jpql.tools.AbstractContentAssistVisitor.AbstractConditionalClauseCollectionHelper<WhenClause>
org.eclipse.persistence.jpa.jpql.tools.AbstractContentAssistVisitor.WhenClauseConditionalClauseCollectionHelper
- All Implemented Interfaces:
AbstractContentAssistVisitor.CollectionExpressionHelper<WhenClause>
- Enclosing class:
AbstractContentAssistVisitor
protected static final class AbstractContentAssistVisitor.WhenClauseConditionalClauseCollectionHelper
extends AbstractContentAssistVisitor.AbstractConditionalClauseCollectionHelper<WhenClause>
This helpers handles adding proposals for
WhenClause
.-
Field Summary
Modifier and TypeFieldDescriptionprotected final AbstractContentAssistVisitor
Enclosing visitor instance. -
Constructor Summary
ModifierConstructorDescriptionprotected
-
Method Summary
Modifier and TypeMethodDescriptionbuildCollectionExpression
(WhenClause expression) Either returns the givenExpression
's child, which is already aCollectionExpression
or requests this helper to return a "virtual"CollectionExpression
that is wrapping the single element.boolean
hasDelimiterAfterIdentifier
(WhenClause expression) Determines whether a delimiter like a whitespace or an open parenthesis was parsed after the identifier.Methods inherited from class org.eclipse.persistence.jpa.jpql.tools.AbstractContentAssistVisitor.AbstractConditionalClauseCollectionHelper
addAtTheEndOfChild, addIdentifier, addTheBeginningOfChild, canContinue, findChild, maxCollectionSize, preExpressionLength, queryBNF
-
Field Details
-
visitor
Enclosing visitor instance.
-
-
Constructor Details
-
WhenClauseConditionalClauseCollectionHelper
-
-
Method Details
-
buildCollectionExpression
Description copied from interface:AbstractContentAssistVisitor.CollectionExpressionHelper
Either returns the givenExpression
's child, which is already aCollectionExpression
or requests this helper to return a "virtual"CollectionExpression
that is wrapping the single element.- Parameters:
expression
- The parent of the children to retrieve- Returns:
- The given expression's child or a "virtual" one
-
hasDelimiterAfterIdentifier
Description copied from interface:AbstractContentAssistVisitor.CollectionExpressionHelper
Determines whether a delimiter like a whitespace or an open parenthesis was parsed after the identifier.- Parameters:
expression
- TheExpression
being visited- Returns:
true
if something is present;false
otherwise
-