|
EclipseLink 2.4.2, build 'v20130514-5956486' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.persistence.jpa.jpql.parser.AnonymousExpressionVisitor org.eclipse.persistence.jpa.jpql.AbstractValidator.JPQLQueryBNFValidator
public static class AbstractValidator.JPQLQueryBNFValidator
This visitor validates any Expression
by checking its BNF against some BNFs.
Field Summary | |
---|---|
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 Summary | |
---|---|
AbstractValidator.JPQLQueryBNFValidator(JPQLQueryBNF queryBNF)
Creates a new JPQLQueryBNFValidator . |
Method Summary | |
---|---|
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. |
Methods inherited from class org.eclipse.persistence.jpa.jpql.parser.AnonymousExpressionVisitor |
---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean bypassCompound
protected boolean valid
Expression
's BNF is valid based on the BNF that was
used for validation.
Constructor Detail |
---|
public AbstractValidator.JPQLQueryBNFValidator(JPQLQueryBNF queryBNF)
JPQLQueryBNFValidator
.
queryBNF
- The JPQLQueryBNF
used to determine if the expression's BNF is validMethod Detail |
---|
public 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
|
EclipseLink 2.4.2, build 'v20130514-5956486' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |