Class ExpressionVisitorWrapper
- java.lang.Object
-
- org.eclipse.persistence.jpa.jpql.parser.AnonymousExpressionVisitor
-
- org.eclipse.persistence.jpa.jpql.parser.ExpressionVisitorWrapper
-
- All Implemented Interfaces:
ExpressionVisitor
public abstract class ExpressionVisitorWrapper extends AnonymousExpressionVisitor
ThisExpressionVisitor
wraps anotherExpressionVisitor
and delegates all its calls to it (the delegate).- Version:
- 2.4
- Author:
- Pascal Filion
- Since:
- 2.3
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ExpressionVisitorWrapper(ExpressionVisitor delegate)
Creates a newExpressionVisitorWrapper
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ExpressionVisitor
getDelegate()
Returns the delegateExpressionVisitor
that is receiving all the calls from this one.protected void
visit(Expression expression)
Blindly visit the givenExpression
.-
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
-
-
-
-
Constructor Detail
-
ExpressionVisitorWrapper
protected ExpressionVisitorWrapper(ExpressionVisitor delegate)
Creates a newExpressionVisitorWrapper
.- Parameters:
delegate
- TheExpressionVisitor
that will have the calls delegated from this one- Throws:
java.lang.NullPointerException
- The delegateExpressionVisitor
cannot be null
-
-
Method Detail
-
getDelegate
protected ExpressionVisitor getDelegate()
Returns the delegateExpressionVisitor
that is receiving all the calls from this one.- Returns:
- The delegate
ExpressionVisitor
-
visit
protected void visit(Expression expression)
Blindly visit the givenExpression
.- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
-