EclipseLink 2.4.1, build 'v20121003-ad44345' API Reference

org.eclipse.persistence.jpa.jpql
Class AbstractContentAssistVisitor.DoubleEncapsulatedCollectionHelper

java.lang.Object
  extended by org.eclipse.persistence.jpa.jpql.AbstractContentAssistVisitor.DoubleEncapsulatedCollectionHelper
All Implemented Interfaces:
AbstractContentAssistVisitor.CollectionExpressionHelper<AbstractDoubleEncapsulatedExpression>
Enclosing class:
AbstractContentAssistVisitor

protected class AbstractContentAssistVisitor.DoubleEncapsulatedCollectionHelper
extends java.lang.Object
implements AbstractContentAssistVisitor.CollectionExpressionHelper<AbstractDoubleEncapsulatedExpression>


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

AbstractContentAssistVisitor.DoubleEncapsulatedCollectionHelper

protected AbstractContentAssistVisitor.DoubleEncapsulatedCollectionHelper()
Creates a new DoubleEncapsulatedCollectionHelper.

Method Detail

addAtTheEndOfChild

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

Specified by:
addAtTheEndOfChild in interface AbstractContentAssistVisitor.CollectionExpressionHelper<AbstractDoubleEncapsulatedExpression>
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

public void addProposals(AbstractDoubleEncapsulatedExpression expression,
                         int index)
Adds

Specified by:
addProposals in interface AbstractContentAssistVisitor.CollectionExpressionHelper<AbstractDoubleEncapsulatedExpression>

buildCollectionExpression

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

Specified by:
buildCollectionExpression in interface AbstractContentAssistVisitor.CollectionExpressionHelper<AbstractDoubleEncapsulatedExpression>
Parameters:
expression - The parent of the children to retrieve
Returns:
The given expression's child or a "virtual" one

hasDelimiterAfterIdentifier

public boolean hasDelimiterAfterIdentifier(AbstractDoubleEncapsulatedExpression expression)
Determines whether

Specified by:
hasDelimiterAfterIdentifier in interface AbstractContentAssistVisitor.CollectionExpressionHelper<AbstractDoubleEncapsulatedExpression>
Returns:

maxCollectionSize

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

Specified by:
maxCollectionSize in interface AbstractContentAssistVisitor.CollectionExpressionHelper<AbstractDoubleEncapsulatedExpression>
Parameters:
expression - The Expression for which its maximum number of children
Returns:
The maximum number of children the expression can have

preExpressionLength

public int preExpressionLength(AbstractDoubleEncapsulatedExpression expression)
Returns the length to add to

Specified by:
preExpressionLength in interface AbstractContentAssistVisitor.CollectionExpressionHelper<AbstractDoubleEncapsulatedExpression>

queryBNF

public JPQLQueryBNF queryBNF(AbstractDoubleEncapsulatedExpression expression,
                             int index)
Returns the

Specified by:
queryBNF in interface AbstractContentAssistVisitor.CollectionExpressionHelper<AbstractDoubleEncapsulatedExpression>
Returns:

EclipseLink 2.4.1, build 'v20121003-ad44345' API Reference