Class AbstractContentAssistVisitor.WithinInvalidExpressionVisitor
- java.lang.Object
-
- org.eclipse.persistence.jpa.jpql.parser.AnonymousExpressionVisitor
-
- org.eclipse.persistence.jpa.jpql.parser.AbstractTraverseParentVisitor
-
- org.eclipse.persistence.jpa.jpql.tools.AbstractContentAssistVisitor.WithinInvalidExpressionVisitor
-
- All Implemented Interfaces:
ExpressionVisitor
- Enclosing class:
- AbstractContentAssistVisitor
protected static final class AbstractContentAssistVisitor.WithinInvalidExpressionVisitor extends AbstractTraverseParentVisitor
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
withinInvalidExpression
Determines whether the visitedExpression
is an descendant of either a bad or invalid expression.
-
Constructor Summary
Constructors Modifier Constructor Description protected
WithinInvalidExpressionVisitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
Disposes of the internal data.boolean
isWithinInvalidExpression()
Determines whether the visitedExpression
is part of an invalid fragmentvoid
visit(BadExpression expression)
Visits theBadExpression
expression.void
visit(UnknownExpression expression)
Visits theUnknownExpression
expression.-
Methods inherited from class org.eclipse.persistence.jpa.jpql.parser.AbstractTraverseParentVisitor
visit, 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
-
-
-
-
Field Detail
-
withinInvalidExpression
protected boolean withinInvalidExpression
Determines whether the visitedExpression
is an descendant of either a bad or invalid expression.
-
-
Method Detail
-
dispose
public void dispose()
Disposes of the internal data.
-
isWithinInvalidExpression
public boolean isWithinInvalidExpression()
Determines whether the visitedExpression
is part of an invalid fragment- Returns:
true
if the visitedExpression
is within an invalid fragment;false
if it is not
-
visit
public void visit(BadExpression expression)
Visits theBadExpression
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
public void visit(UnknownExpression expression)
Visits theUnknownExpression
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheUnknownExpression
to visit
-
-