|
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.CompletenessVisitor org.eclipse.persistence.jpa.jpql.AbstractContentAssistVisitor.IncompleteCollectionExpressionVisitor
protected class AbstractContentAssistVisitor.IncompleteCollectionExpressionVisitor
This visitor is used when a clause or a compound expression was parsed with a collection of expressions representing an invalid fragment.
Example: SELECT e FROM Employee e GROUP B
In this example, the FROM
clause contains a collection of two
identification variable declarations, in a valid query, it would be separated by a comma, but
this one just means it's incomplete and "GROUP B" is the beginning of the GROUP BY
clause.
Field Summary | |
---|---|
protected java.lang.String |
clause
The clause being visited, which is marked by its JPQL identifier. |
protected boolean |
insideCollection
This flag is used to make sure only the last expression in a collection is tested. |
Fields inherited from class org.eclipse.persistence.jpa.jpql.AbstractContentAssistVisitor.CompletenessVisitor |
---|
complete |
Constructor Summary | |
---|---|
protected |
AbstractContentAssistVisitor.IncompleteCollectionExpressionVisitor()
|
Method Summary | |
---|---|
protected java.util.List<java.lang.String> |
compositeIdentifiersAfter(java.lang.String afterIdentifier)
Returns the list of identifiers for the clauses following the given identifier. |
protected boolean |
isPossibleCompositeIdentifier(java.lang.String clause,
java.lang.String fragment)
Determines whether the given JPQL fragment, which is the parsed text of the expression invalid collection expression or the portion of it based on the cursor position within the collection, is a composite identifier or not. |
void |
visit(CollectionExpression expression)
Visits the CollectionExpression expression. |
void |
visit(FromClause expression)
Visits the FromClause expression. |
void |
visit(GroupByClause expression)
Visits the GroupByClause expression. |
void |
visit(HavingClause expression)
Visits the HavingClause expression. |
void |
visit(IdentificationVariable expression)
Visits the IdentificationVariable expression. |
void |
visit(IdentificationVariableDeclaration expression)
Visits the IdentificationVariableDeclaration expression. |
void |
visit(OrderByClause expression)
Visits the OrderByClause expression. |
void |
visit(RangeVariableDeclaration expression)
Visits the RangeVariableDeclaration expression. |
void |
visit(WhereClause expression)
Visits the WhereClause expression. |
Methods inherited from class org.eclipse.persistence.jpa.jpql.AbstractContentAssistVisitor.CompletenessVisitor |
---|
dispose, isComplete |
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String clause
protected boolean insideCollection
Constructor Detail |
---|
protected AbstractContentAssistVisitor.IncompleteCollectionExpressionVisitor()
Method Detail |
---|
protected java.util.List<java.lang.String> compositeIdentifiersAfter(java.lang.String afterIdentifier)
afterIdentifier
- The JPQL identifier of the clause for which the list of following
clauses is built
protected boolean isPossibleCompositeIdentifier(java.lang.String clause, java.lang.String fragment)
clause
- The JPQL identifier of the clause having the collection of expressionsfragment
- The parsed text of the expression to determine if it's the beginning of the
composite identifier or not. The fragment is all lower case characterspublic void visit(CollectionExpression expression)
CollectionExpression
expression.
visit
in interface ExpressionVisitor
visit
in class AbstractContentAssistVisitor.CompletenessVisitor
expression
- The Expression
to visitpublic void visit(FromClause expression)
FromClause
expression.
visit
in interface ExpressionVisitor
visit
in class AbstractExpressionVisitor
expression
- The Expression
to visitpublic void visit(GroupByClause expression)
GroupByClause
expression.
visit
in interface ExpressionVisitor
visit
in class AbstractExpressionVisitor
expression
- The Expression
to visitpublic void visit(HavingClause expression)
HavingClause
expression.
visit
in interface ExpressionVisitor
visit
in class AbstractExpressionVisitor
expression
- The Expression
to visitpublic void visit(IdentificationVariable expression)
IdentificationVariable
expression.
visit
in interface ExpressionVisitor
visit
in class AbstractExpressionVisitor
expression
- The Expression
to visitpublic void visit(IdentificationVariableDeclaration expression)
IdentificationVariableDeclaration
expression.
visit
in interface ExpressionVisitor
visit
in class AbstractExpressionVisitor
expression
- The Expression
to visitpublic void visit(OrderByClause expression)
OrderByClause
expression.
visit
in interface ExpressionVisitor
visit
in class AbstractExpressionVisitor
expression
- The Expression
to visitpublic void visit(RangeVariableDeclaration expression)
RangeVariableDeclaration
expression.
visit
in interface ExpressionVisitor
visit
in class AbstractExpressionVisitor
expression
- The Expression
to visitpublic void visit(WhereClause expression)
WhereClause
expression.
visit
in interface ExpressionVisitor
visit
in class AbstractExpressionVisitor
expression
- The WhereClause
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 |