Class JPQLQueryContext.QueryExpressionVisitor
java.lang.Object
org.eclipse.persistence.jpa.jpql.parser.AnonymousExpressionVisitor
org.eclipse.persistence.jpa.jpql.parser.AbstractTraverseParentVisitor
org.eclipse.persistence.jpa.jpql.tools.JPQLQueryContext.QueryExpressionVisitor
- All Implemented Interfaces:
ExpressionVisitor
- Enclosing class:
JPQLQueryContext
protected static class JPQLQueryContext.QueryExpressionVisitor
extends AbstractTraverseParentVisitor
This visitor is responsible to retrieve the
Expression
that is the beginning of a
query. For a subquery, it will retrieve SimpleSelectStatement
and for a top-level
query, it will retrieve JPQLExpression
. The search goes through the parent hierarchy.-
Field Summary
Modifier and TypeFieldDescriptionprotected Expression
TheExpression
that is the beginning of a query. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
visit
(JPQLExpression expression) Visits theJPQLExpression
expression.void
visit
(SimpleSelectStatement expression) Visits theSimpleSelectStatement
expression.Methods inherited from class org.eclipse.persistence.jpa.jpql.parser.AbstractTraverseParentVisitor
visit
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, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit
-
Field Details
-
expression
TheExpression
that is the beginning of a query.
-
-
Constructor Details
-
QueryExpressionVisitor
protected QueryExpressionVisitor()
-
-
Method Details
-
visit
Description copied from interface:ExpressionVisitor
Visits theJPQLExpression
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAbstractTraverseParentVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theSimpleSelectStatement
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-