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 ofExpressions
:- 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
Constructors Modifier Constructor Description protected
AbstractCollectionValidator(AbstractGrammarValidator validator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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
-
-
-
-
Constructor Detail
-
AbstractCollectionValidator
protected AbstractCollectionValidator(AbstractGrammarValidator validator)
-
-
Method Detail
-
validateEndsWithComma
protected void validateEndsWithComma(CollectionExpression expression)
-
validateSeparation
protected void validateSeparation(CollectionExpression expression)
-
visit
public void visit(CollectionExpression expression)
Visits theCollectionExpression
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAbstractExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
-