|
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.Objectorg.eclipse.persistence.jpa.jpql.parser.AnonymousExpressionVisitor
org.eclipse.persistence.jpa.jpql.AbstractContentAssistVisitor.AbstractAppendableExpressionVisitor
org.eclipse.persistence.jpa.jpql.AbstractContentAssistVisitor.AppendableExpressionVisitor
protected class AbstractContentAssistVisitor.AppendableExpressionVisitor
This visitor scans the visited Expression
and determines if a JPQL identifier can be
added ("appended") when the position of the cursor is at the end of the expression.
For instance:
SELECT e, AVG(e.age) F|
", F is parsed as a result variable but
can also be seen as the first letter for FROM;SELECT e FROM Employee e WHERE e.name |
", the compound identifiers can be
added, eg: 'IS NOT NULL', or '=', etcSELECT e FROM Employee e WHERE e.name NOT B|
", only the composite
identifier "BETWEEN" and "NOT BETWEEN" can be added because the NOT
expression
does not have a valid expression: "B" is not a valid expression.SELECT e FROM Employee e FROM e.age|
", the arithmetic and comparison
identifiers are allowed, but the logical and compound identifiers.
Field Summary | |
---|---|
protected AbstractContentAssistVisitor.AppendableType |
appendableType
The type of the JPQL identifiers can can be possible proposals. |
protected boolean |
clauseOfItems
Internal flag indicating if a clause is being visited which can have a collection of children. |
protected CollectionExpression |
collectionExpression
Caches the visited CollectionExpression so a child could use it. |
protected boolean |
hasComma
When visiting a CollectionExpression , this indicates if there is a comma before the
child being visited. |
protected int |
positionInCollection
When visiting a CollectionExpression , this indicates the position within that
collection of the child being visited. |
protected boolean |
subExpression
Internal flag indicating the Expression being visited is encapsulated by parenthesis. |
Fields inherited from class org.eclipse.persistence.jpa.jpql.AbstractContentAssistVisitor.AbstractAppendableExpressionVisitor |
---|
appendable |
Constructor Summary | |
---|---|
protected |
AbstractContentAssistVisitor.AppendableExpressionVisitor()
Creates a new AppendableExpressionVisitor . |
Method Summary | |
---|---|
void |
visit(AdditionExpression expression)
Visits the AdditionExpression expression. |
void |
visit(AndExpression expression)
Visits the AndExpression expression. |
void |
visit(CollectionExpression expression)
Visits the CollectionExpression expression. |
void |
visit(CollectionMemberDeclaration expression)
Visits the CollectionMemberDeclaration expression. |
void |
visit(CollectionMemberExpression expression)
Visits the CollectionMemberExpression expression. |
void |
visit(ComparisonExpression expression)
Visits the ComparisonExpression expression. |
void |
visit(DateTime expression)
Visits the DateTime expression. |
void |
visit(DeleteClause expression)
Visits the DeleteClause expression. |
void |
visit(DivisionExpression expression)
Visits the DivisionExpression expression. |
void |
visit(EmptyCollectionComparisonExpression expression)
Visits the EmptyCollectionComparisonExpression expression. |
protected void |
visit(Expression expression)
Blindly visit the given 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(KeywordExpression expression)
Visits the KeywordExpression expression. |
void |
visit(MultiplicationExpression expression)
Visits the MultiplicationExpression expression. |
void |
visit(NotExpression expression)
Visits the NotExpression expression. |
void |
visit(NullComparisonExpression expression)
Visits the NullComparisonExpression expression. |
void |
visit(OnClause expression)
Visits the OnClause expression. |
void |
visit(OrderByClause expression)
Visits the OrderByClause expression. |
void |
visit(OrderByItem expression)
Visits the OrderByItem expression. |
void |
visit(OrExpression expression)
Visits the OrExpression expression. |
void |
visit(RangeVariableDeclaration expression)
Visits the RangeVariableDeclaration expression. |
void |
visit(ResultVariable expression)
Visits the ResultVariable expression. |
void |
visit(SelectClause expression)
Visits the SelectClause expression. |
void |
visit(SimpleFromClause expression)
Visits the SimpleFromClause expression. |
void |
visit(SimpleSelectClause expression)
Visits the SimpleSelectClause expression. |
void |
visit(StateFieldPathExpression expression)
Visits the StateFieldPathExpression expression. |
void |
visit(SubExpression expression)
Visits the SubExpression expression. |
void |
visit(SubtractionExpression expression)
Visits the SubtractionExpression expression. |
void |
visit(WhereClause expression)
Visits the WhereClause expression. |
Methods inherited from class org.eclipse.persistence.jpa.jpql.AbstractContentAssistVisitor.AbstractAppendableExpressionVisitor |
---|
dispose, isAppendable |
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected AbstractContentAssistVisitor.AppendableType appendableType
protected boolean clauseOfItems
protected CollectionExpression collectionExpression
CollectionExpression
so a child could use it.
protected boolean hasComma
CollectionExpression
, this indicates if there is a comma before the
child being visited.
protected int positionInCollection
CollectionExpression
, this indicates the position within that
collection of the child being visited.
protected boolean subExpression
Expression
being visited is encapsulated by parenthesis.
Constructor Detail |
---|
protected AbstractContentAssistVisitor.AppendableExpressionVisitor()
AppendableExpressionVisitor
.
Method Detail |
---|
public void visit(AdditionExpression expression)
AdditionExpression
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(AndExpression expression)
AndExpression
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(CollectionExpression expression)
CollectionExpression
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(CollectionMemberDeclaration expression)
CollectionMemberDeclaration
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(CollectionMemberExpression expression)
CollectionMemberExpression
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(ComparisonExpression expression)
ComparisonExpression
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(DateTime expression)
DateTime
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(DeleteClause expression)
DeleteClause
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(DivisionExpression expression)
DivisionExpression
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(EmptyCollectionComparisonExpression expression)
EmptyCollectionComparisonExpression
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitprotected void visit(Expression expression)
Expression
.
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(FromClause expression)
FromClause
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(GroupByClause expression)
GroupByClause
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(HavingClause expression)
HavingClause
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(IdentificationVariable expression)
IdentificationVariable
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(IdentificationVariableDeclaration expression)
IdentificationVariableDeclaration
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(KeywordExpression expression)
KeywordExpression
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(MultiplicationExpression expression)
MultiplicationExpression
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(NotExpression expression)
NotExpression
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(NullComparisonExpression expression)
NullComparisonExpression
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(OnClause expression)
OnClause
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(OrderByClause expression)
OrderByClause
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(OrderByItem expression)
OrderByItem
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(OrExpression expression)
OrExpression
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(RangeVariableDeclaration expression)
RangeVariableDeclaration
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(ResultVariable expression)
ResultVariable
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(SelectClause expression)
SelectClause
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(SimpleFromClause expression)
SimpleFromClause
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(SimpleSelectClause expression)
SimpleSelectClause
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(StateFieldPathExpression expression)
StateFieldPathExpression
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(SubExpression expression)
SubExpression
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(SubtractionExpression expression)
SubtractionExpression
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(WhereClause expression)
WhereClause
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
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 |