public static class AbstractValidator.JPQLQueryBNFValidator extends AnonymousExpressionVisitor
Expression
by checking its BNF against some BNFs.Modifier and Type | Field and Description |
---|---|
protected boolean |
bypassCompound |
protected boolean |
valid
Determines whether the visited
Expression 's BNF is valid based on the BNF that was
used for validation. |
Constructor and Description |
---|
AbstractValidator.JPQLQueryBNFValidator(JPQLQueryBNF queryBNF)
Creates a new
JPQLQueryBNFValidator . |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Disposes of the internal data.
|
boolean |
isValid()
Determines whether the visited
Expression is valid or not based on the JPQLQueryBNF that was specified. |
void |
setBypassCompound(boolean bypassCompound)
Sets
|
void |
validate(JPQLQueryBNF queryBNF)
Validates the given
JPQLQueryBNF by making sure it is the one expected or one of
the children from the "root" BNF passed to this validator's constructor. |
void |
visit(BadExpression expression)
Visits the
BadExpression expression. |
void |
visit(CollectionExpression expression)
Visits the
CollectionExpression expression. |
protected void |
visit(Expression expression)
Blindly visit the given
Expression . |
void |
visit(NullExpression expression)
Visits the
NullExpression expression. |
void |
visit(SubExpression expression)
Visits the
SubExpression expression. |
void |
visit(UnknownExpression expression)
Visits the
UnknownExpression expression. |
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
protected boolean bypassCompound
protected boolean valid
Expression
's BNF is valid based on the BNF that was
used for validation.public AbstractValidator.JPQLQueryBNFValidator(JPQLQueryBNF queryBNF)
JPQLQueryBNFValidator
.queryBNF
- The JPQLQueryBNF
used to determine if the expression's BNF is validpublic void dispose()
public boolean isValid()
Expression
is valid or not based on the JPQLQueryBNF
that was specified.true
if the Expression
is valid; false
otherwisepublic void setBypassCompound(boolean bypassCompound)
bypassCompound
- public void validate(JPQLQueryBNF queryBNF)
JPQLQueryBNF
by making sure it is the one expected or one of
the children from the "root" BNF passed to this validator's constructor.queryBNF
- The JPQLQueryBNF
to validatepublic void visit(BadExpression expression)
BadExpression
expression.visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(CollectionExpression expression)
CollectionExpression
expression.visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitprotected void visit(Expression expression)
Expression
.visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(NullExpression expression)
NullExpression
expression.visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(SubExpression expression)
SubExpression
expression.visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(UnknownExpression expression)
UnknownExpression
expression.visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The UnknownExpression
to visit