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 theExpression
that is the beginning of a query. For a subquery, it will retrieveSimpleSelectStatement
and for a top-level query, it will retrieveJPQLExpression
. The search goes through the parent hierarchy.
-
-
Field Summary
Fields Modifier and Type Field Description protected Expression
expression
TheExpression
that is the beginning of a query.
-
Constructor Summary
Constructors Modifier Constructor Description protected
QueryExpressionVisitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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
-
-
-
-
Field Detail
-
expression
protected Expression expression
TheExpression
that is the beginning of a query.
-
-
Method Detail
-
visit
public void visit(JPQLExpression expression)
Visits theJPQLExpression
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAbstractTraverseParentVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
public void visit(SimpleSelectStatement expression)
Visits theSimpleSelectStatement
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
-