Class AbstractContentAssistVisitor.FollowingInvalidExpressionVisitor
- java.lang.Object
-
- org.eclipse.persistence.jpa.jpql.parser.AnonymousExpressionVisitor
-
- org.eclipse.persistence.jpa.jpql.parser.AbstractTraverseParentVisitor
-
- org.eclipse.persistence.jpa.jpql.tools.AbstractContentAssistVisitor.FollowingInvalidExpressionVisitor
-
- All Implemented Interfaces:
ExpressionVisitor
- Enclosing class:
- AbstractContentAssistVisitor
protected static final class AbstractContentAssistVisitor.FollowingInvalidExpressionVisitor extends AbstractTraverseParentVisitor
-
-
Field Summary
Fields Modifier and Type Field Description protected Expression
expression
TheExpression
used to determine if it follows an invalid fragment or not.protected boolean
followingInvalidExpression
Determines whether the visitedExpression
is preceded by an invalid expression.protected AbstractContentAssistVisitor
visitor
Enclosing visitor instance.
-
Constructor Summary
Constructors Modifier Constructor Description protected
FollowingInvalidExpressionVisitor(AbstractContentAssistVisitor visitor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
Disposes of the internal data.boolean
isFollowingInvalidExpression()
Determines whether the visitedExpression
is preceded by an invalid expression.void
visit(CollectionExpression expression)
Visits theCollectionExpression
expression.protected void
visit(Expression expression)
Blindly visit the givenExpression
.-
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
-
visitor
protected final AbstractContentAssistVisitor visitor
Enclosing visitor instance.
-
expression
protected Expression expression
TheExpression
used to determine if it follows an invalid fragment or not.
-
followingInvalidExpression
protected boolean followingInvalidExpression
Determines whether the visitedExpression
is preceded by an invalid expression.
-
-
Constructor Detail
-
FollowingInvalidExpressionVisitor
protected FollowingInvalidExpressionVisitor(AbstractContentAssistVisitor visitor)
-
-
Method Detail
-
dispose
public void dispose()
Disposes of the internal data.
-
isFollowingInvalidExpression
public boolean isFollowingInvalidExpression()
Determines whether the visitedExpression
is preceded by an invalid expression.- Returns:
true
if the visitedExpression
is part of a collection of expressions and an invalid expression precede it;false
otherwise
-
visit
public void visit(CollectionExpression expression)
Visits theCollectionExpression
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
protected void visit(Expression expression)
Blindly visit the givenExpression
.- Overrides:
visit
in classAbstractTraverseParentVisitor
- Parameters:
expression
- TheExpression
to visit
-
-