|
EclipseLink 2.4.2, build 'v20130514-5956486' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.persistence.jpa.jpql.parser.AbstractExpressionVisitor org.eclipse.persistence.jpa.jpql.AbstractContentAssistVisitor.EnumVisitor
protected class AbstractContentAssistVisitor.EnumVisitor
This visitor determines whether a path expression can be resolved as a fully qualified enum type and an enum constant.
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;
Field Summary | |
---|---|
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. |
Constructor Summary | |
---|---|
protected |
AbstractContentAssistVisitor.EnumVisitor()
|
Method Summary | |
---|---|
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. |
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected AbstractPathExpression pathExpression
AbstractPathExpression
being scanned for its location within the JPQL query.
protected boolean valid
Constructor Detail |
---|
protected AbstractContentAssistVisitor.EnumVisitor()
Method Detail |
---|
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
|
EclipseLink 2.4.2, build 'v20130514-5956486' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |