EclipseLink 2.4.1, build 'v20121003-ad44345' API Reference

org.eclipse.persistence.jpa.jpql
Interface AbstractContentAssistVisitor.CollectionExpressionHelper<T extends Expression>

All Known Implementing Classes:
AbstractContentAssistVisitor.ConstrutorCollectionHelper, AbstractContentAssistVisitor.DoubleEncapsulatedCollectionHelper, AbstractContentAssistVisitor.FromClauseCollectionHelper, AbstractContentAssistVisitor.GroupByClauseCollectionHelper, AbstractContentAssistVisitor.JoinCollectionHelper, AbstractContentAssistVisitor.OrderByClauseCollectionHelper, AbstractContentAssistVisitor.TripleEncapsulatedCollectionHelper, AbstractContentAssistVisitor.UpdateItemCollectionHelper, EclipseLinkContentAssistVisitor.GroupByClauseCollectionHelper
Enclosing class:
AbstractContentAssistVisitor

protected static interface AbstractContentAssistVisitor.CollectionExpressionHelper<T extends Expression>


Method Summary
 void addAtTheEndOfChild(T expression, Expression child, int index)
          Adds the proposals because the cursor is at the end of the given child Expression.
 void addProposals(T expression, int index)
          Adds
 CollectionExpression buildCollectionExpression(T 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 hasDelimiterAfterIdentifier(T expression)
          Determines whether
 int maxCollectionSize(T expression)
          Returns the maximum number of encapsulated expressions the Expression allows.
 int preExpressionLength(T expression)
          Returns the length to add to
 JPQLQueryBNF queryBNF(T expression, int index)
          Returns the
 

Method Detail

addAtTheEndOfChild

void addAtTheEndOfChild(T expression,
                        Expression child,
                        int index)
Adds the proposals because the cursor is at the end of the given child Expression.

Parameters:
expression - The Expression being visited
child - The child of the parent Expression for which proposals can be added at the end
index - The position of that child in the collection of children

addProposals

void addProposals(T expression,
                  int index)
Adds

Parameters:
expression -
index -

buildCollectionExpression

CollectionExpression buildCollectionExpression(T 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.

Parameters:
expression - The parent of the children to retrieve
Returns:
The given expression's child or a "virtual" one

hasDelimiterAfterIdentifier

boolean hasDelimiterAfterIdentifier(T expression)
Determines whether

Parameters:
expression -
Returns:

maxCollectionSize

int maxCollectionSize(T expression)
Returns the maximum number of encapsulated expressions the Expression allows. Some expression only allow 2, others 3 and others allow an unlimited number.

Parameters:
expression - The Expression for which its maximum number of children
Returns:
The maximum number of children the expression can have

preExpressionLength

int preExpressionLength(T expression)
Returns the length to add to


queryBNF

JPQLQueryBNF queryBNF(T expression,
                      int index)
Returns the

Parameters:
expression -
Returns:

EclipseLink 2.4.1, build 'v20121003-ad44345' API Reference