Class AbstractContentAssistVisitor.DeclarationVisitor
- java.lang.Object
-
- org.eclipse.persistence.jpa.jpql.parser.AnonymousExpressionVisitor
-
- org.eclipse.persistence.jpa.jpql.tools.AbstractContentAssistVisitor.DeclarationVisitor
-
- All Implemented Interfaces:
ExpressionVisitor
- Enclosing class:
- AbstractContentAssistVisitor
protected static final class AbstractContentAssistVisitor.DeclarationVisitor extends AnonymousExpressionVisitor
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
declaration
Indicates if the visitedCollectionValuedPathExpression
is found within a declaration expression.
-
Constructor Summary
Constructors Modifier Constructor Description protected
DeclarationVisitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
Disposes of the internal data.boolean
isDeclaration()
Determines whether the visited path expression is found within a declaration expression.void
visit(CollectionValuedPathExpression expression)
Visits theCollectionValuedPathExpression
expression.void
visit(RangeVariableDeclaration expression)
Visits theRangeVariableDeclaration
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
-
declaration
protected boolean declaration
Indicates if the visitedCollectionValuedPathExpression
is found within a declaration expression.
-
-
Method Detail
-
dispose
public void dispose()
Disposes of the internal data.
-
isDeclaration
public boolean isDeclaration()
Determines whether the visited path expression is found within a declaration expression.- Returns:
true
if the visitedCollectionValuedPathExpression
is owned by aRangeVariableDeclaration
, which indicates it is used to define the "root" object;false
if it is not
-
visit
public void visit(CollectionValuedPathExpression expression)
Visits theCollectionValuedPathExpression
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
public void visit(RangeVariableDeclaration expression)
Visits theRangeVariableDeclaration
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
-