EclipseLink 2.4.2, build 'v20130514-5956486' API Reference

org.eclipse.persistence.jpa.jpql
Class AbstractValidator.JPQLQueryBNFValidator

java.lang.Object
  extended by org.eclipse.persistence.jpa.jpql.parser.AnonymousExpressionVisitor
      extended by org.eclipse.persistence.jpa.jpql.AbstractValidator.JPQLQueryBNFValidator
All Implemented Interfaces:
ExpressionVisitor
Enclosing class:
AbstractValidator

public static class AbstractValidator.JPQLQueryBNFValidator
extends AnonymousExpressionVisitor

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

bypassCompound

protected boolean bypassCompound

valid

protected boolean valid
Determines whether the visited Expression's BNF is valid based on the BNF that was used for validation.

Constructor Detail

AbstractValidator.JPQLQueryBNFValidator

public AbstractValidator.JPQLQueryBNFValidator(JPQLQueryBNF queryBNF)
Creates a new JPQLQueryBNFValidator.

Parameters:
queryBNF - The JPQLQueryBNF used to determine if the expression's BNF is valid
Method Detail

dispose

public void dispose()
Disposes of the internal data.


isValid

public boolean isValid()
Determines whether the visited Expression is valid or not based on the JPQLQueryBNF that was specified.

Returns:
true if the Expression is valid; false otherwise

setBypassCompound

public void setBypassCompound(boolean bypassCompound)
Sets

Parameters:
bypassCompound -

validate

public 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.

Parameters:
queryBNF - The JPQLQueryBNF to validate

visit

public void visit(BadExpression expression)
Visits the BadExpression expression.

Specified by:
visit in interface ExpressionVisitor
Overrides:
visit in class AnonymousExpressionVisitor
Parameters:
expression - The Expression to visit

visit

public void visit(CollectionExpression expression)
Visits the CollectionExpression expression.

Specified by:
visit in interface ExpressionVisitor
Overrides:
visit in class AnonymousExpressionVisitor
Parameters:
expression - The Expression to visit

visit

protected void visit(Expression expression)
Blindly visit the given Expression.

Overrides:
visit in class AnonymousExpressionVisitor
Parameters:
expression - The Expression to visit

visit

public void visit(NullExpression expression)
Visits the NullExpression expression.

Specified by:
visit in interface ExpressionVisitor
Overrides:
visit in class AnonymousExpressionVisitor
Parameters:
expression - The Expression to visit

visit

public void visit(SubExpression expression)
Visits the SubExpression expression.

Specified by:
visit in interface ExpressionVisitor
Overrides:
visit in class AnonymousExpressionVisitor
Parameters:
expression - The Expression to visit

visit

public void visit(UnknownExpression expression)
Visits the UnknownExpression expression.

Specified by:
visit in interface ExpressionVisitor
Overrides:
visit in class AnonymousExpressionVisitor
Parameters:
expression - The UnknownExpression to visit

EclipseLink 2.4.2, build 'v20130514-5956486' API Reference