Package org.eclipse.persistence.jpa.jpql
Class AbstractGrammarValidator.AbstractCollectionValidator
java.lang.Object
org.eclipse.persistence.jpa.jpql.parser.AbstractExpressionVisitor
org.eclipse.persistence.jpa.jpql.AbstractGrammarValidator.AbstractCollectionValidator
- All Implemented Interfaces:
ExpressionVisitor
- Direct Known Subclasses:
AbstractGrammarValidator.CollectionSeparatedByCommaValidator
,AbstractGrammarValidator.CollectionSeparatedBySpaceValidator
- Enclosing class:
AbstractGrammarValidator
protected abstract static class AbstractGrammarValidator.AbstractCollectionValidator
extends AbstractExpressionVisitor
This validate is responsible to validate the collection of
Expressions
:
- Making sure they are all separated by a comma or by a space (depending on which one is required);
- Making sure it does not end with a comma;
- There is no empty expression between two commas.
-
Constructor Summary
ModifierConstructorDescriptionprotected
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
validateEndsWithComma
(CollectionExpression expression) protected void
validateSeparation
(CollectionExpression expression) void
visit
(CollectionExpression expression) Visits theCollectionExpression
expression.Methods inherited from class org.eclipse.persistence.jpa.jpql.parser.AbstractExpressionVisitor
visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit
-
Constructor Details
-
AbstractCollectionValidator
-
-
Method Details
-
validateEndsWithComma
-
validateSeparation
-
visit
Description copied from interface:ExpressionVisitor
Visits theCollectionExpression
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAbstractExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-