|
EclipseLink 2.5.0, build 'v20130312-9664d23' 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.tools.AbstractContentAssistVisitor.DeleteClauseCollectionHelper
protected class AbstractContentAssistVisitor.DeleteClauseCollectionHelper
| Constructor Summary | |
|---|---|
protected |
AbstractContentAssistVisitor.DeleteClauseCollectionHelper()
|
| Method Summary | |
|---|---|
void |
addAtTheEndOfChild(DeleteClause expression,
CollectionExpression collectionExpression,
int index,
boolean hasComma,
boolean virtualSpace)
Adds the proposals because the cursor is at the end of the child at the given position. |
void |
addIdentifier(DeleteClause expression,
java.lang.String identifier)
Adds the given JPQL identifier as a valid proposal. |
void |
addTheBeginningOfChild(DeleteClause expression,
CollectionExpression collectionExpression,
int index,
boolean hasComma)
Adds the proposals because the cursor is at the beginning of the child Expression
at the given position. |
CollectionExpression |
buildCollectionExpression(DeleteClause expression)
Either returns the given Expression's child, which is already a CollectionExpression
or requests this helper to return a "virtual" CollectionExpression that is wrapping
the single element. |
boolean |
canContinue(DeleteClause expression,
CollectionExpression collectionExpression,
int index)
|
boolean |
hasDelimiterAfterIdentifier(DeleteClause expression)
Determines whether |
int |
maxCollectionSize(DeleteClause expression)
Returns the maximum number of encapsulated expressions the Expression allows. |
int |
preExpressionLength(DeleteClause expression)
Returns the length to add to |
JPQLQueryBNF |
queryBNF(DeleteClause expression,
int index)
Returns the |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractContentAssistVisitor.DeleteClauseCollectionHelper()
| Method Detail |
|---|
public void addAtTheEndOfChild(DeleteClause expression,
CollectionExpression collectionExpression,
int index,
boolean hasComma,
boolean virtualSpace)
addAtTheEndOfChild in interface AbstractContentAssistVisitor.CollectionExpressionHelper<DeleteClause>expression - The Expression being visitedcollectionExpression - The CollectionExpression is either the child of the
given Expression or a temporary generated one that usually contains a single itemindex - The position of that child in the collection of childrenhasComma - Indicates whether a comma is present before the child at the given position;
if the index is 0, then this is false by defaultvirtualSpace - Indicates if this method is called because the cursor is at the end of
the child at the specified index but by considering there is a virtual space at the end of
that child
public void addIdentifier(DeleteClause expression,
java.lang.String identifier)
addIdentifier in interface AbstractContentAssistVisitor.CollectionExpressionHelper<DeleteClause>expression - The Expression being visitedidentifier - The JPQL identifier to add as a valid proposal
public void addTheBeginningOfChild(DeleteClause expression,
CollectionExpression collectionExpression,
int index,
boolean hasComma)
Expression
at the given position.
addTheBeginningOfChild in interface AbstractContentAssistVisitor.CollectionExpressionHelper<DeleteClause>expression - The Expression being visitedcollectionExpression - The CollectionExpression is either the child of the
given Expression or a temporary generated one that usually contains a single item.
This can be null if the position is at the beginningindex - The position of the child that was scannedhasComma - Indicates whether a comma is present before the child at the given position;
if the index is 0, then this is false by defaultpublic CollectionExpression buildCollectionExpression(DeleteClause expression)
Expression's child, which is already a CollectionExpression
or requests this helper to return a "virtual" CollectionExpression that is wrapping
the single element.
buildCollectionExpression in interface AbstractContentAssistVisitor.CollectionExpressionHelper<DeleteClause>expression - The parent of the children to retrieve
public boolean canContinue(DeleteClause expression,
CollectionExpression collectionExpression,
int index)
canContinue in interface AbstractContentAssistVisitor.CollectionExpressionHelper<DeleteClause>public boolean hasDelimiterAfterIdentifier(DeleteClause expression)
hasDelimiterAfterIdentifier in interface AbstractContentAssistVisitor.CollectionExpressionHelper<DeleteClause>public int maxCollectionSize(DeleteClause expression)
expressions the Expression allows. Some expression only allow 2, others 3 and others allow an unlimited
number.
maxCollectionSize in interface AbstractContentAssistVisitor.CollectionExpressionHelper<DeleteClause>expression - The Expression for which its maximum number of children
public int preExpressionLength(DeleteClause expression)
preExpressionLength in interface AbstractContentAssistVisitor.CollectionExpressionHelper<DeleteClause>
public JPQLQueryBNF queryBNF(DeleteClause expression,
int index)
queryBNF in interface AbstractContentAssistVisitor.CollectionExpressionHelper<DeleteClause>
|
EclipseLink 2.5.0, build 'v20130312-9664d23' API Reference | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||