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 forWhenClause
.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
WhenClauseConditionalClauseCollectionHelper(AbstractContentAssistVisitor visitor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CollectionExpression
buildCollectionExpression(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
-
-
-
-
Constructor Detail
-
WhenClauseConditionalClauseCollectionHelper
protected WhenClauseConditionalClauseCollectionHelper(AbstractContentAssistVisitor visitor)
-
-
Method Detail
-
buildCollectionExpression
public CollectionExpression buildCollectionExpression(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.- Parameters:
expression
- The parent of the children to retrieve- Returns:
- The given expression's child or a "virtual" one
-
hasDelimiterAfterIdentifier
public boolean hasDelimiterAfterIdentifier(WhenClause expression)
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
-
-