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
FieldsModifier and TypeFieldDescriptionprotected final AbstractContentAssistVisitorEnclosing visitor instance. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected -
Method Summary
Modifier and TypeMethodDescriptionbuildCollectionExpression(AbstractConditionalClause expression) Either returns the givenExpression's child, which is already aCollectionExpressionor requests this helper to return a "virtual"CollectionExpressionthat is wrapping the single element.booleanhasDelimiterAfterIdentifier(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.CollectionExpressionHelperEither returns the givenExpression's child, which is already aCollectionExpressionor requests this helper to return a "virtual"CollectionExpressionthat 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.CollectionExpressionHelperDetermines whether a delimiter like a whitespace or an open parenthesis was parsed after the identifier.- Parameters:
expression- TheExpressionbeing visited- Returns:
trueif something is present;falseotherwise
-