Class AbstractContentAssistVisitor.ConditionalClauseCollectionHelper
- java.lang.Object
-
- org.eclipse.persistence.jpa.jpql.tools.AbstractContentAssistVisitor.AbstractConditionalClauseCollectionHelper<AbstractConditionalClause>
-
- org.eclipse.persistence.jpa.jpql.tools.AbstractContentAssistVisitor.ConditionalClauseCollectionHelper
-
- All Implemented Interfaces:
AbstractContentAssistVisitor.CollectionExpressionHelper<AbstractConditionalClause>
- Enclosing class:
- AbstractContentAssistVisitor
protected static final class AbstractContentAssistVisitor.ConditionalClauseCollectionHelper extends AbstractContentAssistVisitor.AbstractConditionalClauseCollectionHelper<AbstractConditionalClause>
This helpers handles adding proposals forAbstractConditionalClause
.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ConditionalClauseCollectionHelper(AbstractContentAssistVisitor visitor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CollectionExpression
buildCollectionExpression(AbstractConditionalClause 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(AbstractConditionalClause 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
-
ConditionalClauseCollectionHelper
protected ConditionalClauseCollectionHelper(AbstractContentAssistVisitor visitor)
-
-
Method Detail
-
buildCollectionExpression
public CollectionExpression buildCollectionExpression(AbstractConditionalClause 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(AbstractConditionalClause 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
-
-