Class AbstractContentAssistVisitor.EncapsulatedExpressionVisitor
- java.lang.Object
-
- org.eclipse.persistence.jpa.jpql.parser.AnonymousExpressionVisitor
-
- org.eclipse.persistence.jpa.jpql.tools.AbstractContentAssistVisitor.EncapsulatedExpressionVisitor
-
- All Implemented Interfaces:
ExpressionVisitor
- Enclosing class:
- AbstractContentAssistVisitor
protected static final class AbstractContentAssistVisitor.EncapsulatedExpressionVisitor extends AnonymousExpressionVisitor
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
encapsulated
Determines whether the visitedExpression
is being encapsulated or not.protected boolean
visited
Internal flag that prevent infinite recursion.
-
Constructor Summary
Constructors Modifier Constructor Description protected
EncapsulatedExpressionVisitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
Disposes of the internal data.boolean
isEncapsulated()
Determines whether the visitedExpression
is being encapsulated or not.protected void
visit(Expression expression)
Blindly visit the givenExpression
.void
visit(SubExpression expression)
Visits theSubExpression
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, visit, visit, visit, visit
-
-
-
-
Field Detail
-
encapsulated
protected boolean encapsulated
Determines whether the visitedExpression
is being encapsulated or not.
-
visited
protected boolean visited
Internal flag that prevent infinite recursion.
-
-
Method Detail
-
dispose
public void dispose()
Disposes of the internal data.
-
isEncapsulated
public boolean isEncapsulated()
Determines whether the visitedExpression
is being encapsulated or not.- Returns:
true
if the visitedExpression
is within parenthesis;false
otherwise
-
visit
protected void visit(Expression expression)
Blindly visit the givenExpression
.- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
public void visit(SubExpression expression)
Visits theSubExpression
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
-