protected static final class AbstractContentAssistVisitor.EnumVisitor extends AbstractExpressionVisitor
The valid locations are:
CollectionMemberExpression
: entity_or_value_expression (before MEMBER
identifier);InExpression
: One of the items;CaseExpression
: The ELSE expression
;WhenClause
: The WHEN
or THEN
expressions;FunctionExpression
: One of the function items;ComparisonExpression
: The left or right expression if the comparison identifier
is either =
or <>
;UpdateItem
: The new value;ConstructorExpression
: One of the constructor items;CoalesceExpression
: The expression at index 1 or greater;NullIfExpression
: The second expression;Modifier and Type | Field and Description |
---|---|
protected AbstractPathExpression |
pathExpression
The
AbstractPathExpression being scanned for its location within the JPQL query. |
protected boolean |
valid
Determines whether the path expression could potentially represent a fully qualified
enum constant, which is dictated by the location of the path expression within the query.
|
Modifier | Constructor and Description |
---|---|
protected |
EnumVisitor() |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Disposes of the internal data.
|
boolean |
isValid()
Determines whether the path expression could potentially represent a fully qualified
enum constant, which is dictated by the location of the path expression within the query.
|
void |
visit(CaseExpression expression)
Visits the
CaseExpression expression. |
void |
visit(CoalesceExpression expression)
Visits the
CoalesceExpression expression. |
void |
visit(CollectionMemberExpression expression)
Visits the
CollectionMemberExpression expression. |
void |
visit(CollectionValuedPathExpression expression)
Visits the
CollectionValuedPathExpression expression. |
void |
visit(ComparisonExpression expression)
Visits the
ComparisonExpression expression. |
void |
visit(ConstructorExpression expression)
Visits the
ConstructorExpression expression. |
void |
visit(FunctionExpression expression)
Visits the
FunctionExpression expression. |
void |
visit(InExpression expression)
Visits the
InExpression expression. |
void |
visit(NullIfExpression expression)
Visits the
NullIfExpression expression. |
void |
visit(StateFieldPathExpression expression)
Visits the
StateFieldPathExpression expression. |
void |
visit(UpdateItem expression)
Visits the
UpdateItem expression. |
void |
visit(WhenClause expression)
Visits the
WhenClause expression. |
visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit
protected AbstractPathExpression pathExpression
AbstractPathExpression
being scanned for its location within the JPQL query.protected boolean valid
public void dispose()
public boolean isValid()
true
if the path expression represents a enum constant;
false
otherwisepublic void visit(CaseExpression expression)
CaseExpression
expression.visit
in interface ExpressionVisitor
visit
in class AbstractExpressionVisitor
expression
- The Expression
to visitpublic void visit(CoalesceExpression expression)
CoalesceExpression
expression.visit
in interface ExpressionVisitor
visit
in class AbstractExpressionVisitor
expression
- The Expression
to visitpublic void visit(CollectionMemberExpression expression)
CollectionMemberExpression
expression.visit
in interface ExpressionVisitor
visit
in class AbstractExpressionVisitor
expression
- The Expression
to visitpublic void visit(CollectionValuedPathExpression expression)
CollectionValuedPathExpression
expression.visit
in interface ExpressionVisitor
visit
in class AbstractExpressionVisitor
expression
- The Expression
to visitpublic void visit(ComparisonExpression expression)
ComparisonExpression
expression.visit
in interface ExpressionVisitor
visit
in class AbstractExpressionVisitor
expression
- The Expression
to visitpublic void visit(ConstructorExpression expression)
ConstructorExpression
expression.visit
in interface ExpressionVisitor
visit
in class AbstractExpressionVisitor
expression
- The Expression
to visitpublic void visit(FunctionExpression expression)
FunctionExpression
expression.visit
in interface ExpressionVisitor
visit
in class AbstractExpressionVisitor
expression
- The Expression
to visitpublic void visit(InExpression expression)
InExpression
expression.visit
in interface ExpressionVisitor
visit
in class AbstractExpressionVisitor
expression
- The Expression
to visitpublic void visit(NullIfExpression expression)
NullIfExpression
expression.visit
in interface ExpressionVisitor
visit
in class AbstractExpressionVisitor
expression
- The Expression
to visitpublic void visit(StateFieldPathExpression expression)
StateFieldPathExpression
expression.visit
in interface ExpressionVisitor
visit
in class AbstractExpressionVisitor
expression
- The Expression
to visitpublic void visit(UpdateItem expression)
UpdateItem
expression.visit
in interface ExpressionVisitor
visit
in class AbstractExpressionVisitor
expression
- The UpdateItem
to visitpublic void visit(WhenClause expression)
WhenClause
expression.visit
in interface ExpressionVisitor
visit
in class AbstractExpressionVisitor
expression
- The WhenClause
to visit