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 for
AbstractConditionalClause
.-
Field Summary
Modifier and TypeFieldDescriptionprotected final AbstractContentAssistVisitor
Enclosing visitor instance. -
Constructor Summary
ModifierConstructorDescriptionprotected
-
Method Summary
Modifier and TypeMethodDescriptionbuildCollectionExpression
(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
-
Field Details
-
visitor
Enclosing visitor instance.
-
-
Constructor Details
-
ConditionalClauseCollectionHelper
-
-
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
-