Class AbstractContentAssistVisitor.InvalidExpressionVisitor
- java.lang.Object
-
- org.eclipse.persistence.jpa.jpql.parser.AbstractExpressionVisitor
-
- org.eclipse.persistence.jpa.jpql.tools.AbstractContentAssistVisitor.InvalidExpressionVisitor
-
- All Implemented Interfaces:
ExpressionVisitor
- Enclosing class:
- AbstractContentAssistVisitor
protected static final class AbstractContentAssistVisitor.InvalidExpressionVisitor extends AbstractExpressionVisitor
This visitor determines if the visitedExpression
is one of the two that represents an invalid expression.
-
-
Field Summary
Fields Modifier and Type Field Description protected Expression
expression
-
Constructor Summary
Constructors Modifier Constructor Description protected
InvalidExpressionVisitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
Disposes of the internal data.boolean
isInvalid()
Determines whether the visitedExpression
represents an invalid fragment.void
visit(BadExpression expression)
Visits theBadExpression
expression.void
visit(UnknownExpression expression)
Visits theUnknownExpression
expression.-
Methods inherited from class org.eclipse.persistence.jpa.jpql.parser.AbstractExpressionVisitor
visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, 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
-
expression
protected Expression expression
-
-
Method Detail
-
dispose
public void dispose()
Disposes of the internal data.
-
isInvalid
public boolean isInvalid()
Determines whether the visitedExpression
represents an invalid fragment.- Returns:
true
if theExpression
is an invalid fragment;false
otherwise
-
visit
public void visit(BadExpression expression)
Visits theBadExpression
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAbstractExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
public void visit(UnknownExpression expression)
Visits theUnknownExpression
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAbstractExpressionVisitor
- Parameters:
expression
- TheUnknownExpression
to visit
-
-