EclipseLink 2.4.2, build 'v20130514-5956486' API Reference

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

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

protected class AbstractContentAssistVisitor.SelectClauseCollectionHelper
extends AbstractContentAssistVisitor.AbstractSelectClauseCollectionHelper<SelectClause>


Constructor Summary
protected AbstractContentAssistVisitor.SelectClauseCollectionHelper()
           
 
Method Summary
 void addAtTheEndOfChild(SelectClause 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 addTheBeginningOfChild(SelectClause 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.
 int preExpressionLength(SelectClause expression)
          Returns the length of anything that can be defined before the first child.
 
Methods inherited from class org.eclipse.persistence.jpa.jpql.AbstractContentAssistVisitor.AbstractSelectClauseCollectionHelper
addIdentifier, buildCollectionExpression, canContinue, hasDelimiterAfterIdentifier, maxCollectionSize, queryBNF
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractContentAssistVisitor.SelectClauseCollectionHelper

protected AbstractContentAssistVisitor.SelectClauseCollectionHelper()
Method Detail

addAtTheEndOfChild

public void addAtTheEndOfChild(SelectClause 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.

Specified by:
addAtTheEndOfChild in interface AbstractContentAssistVisitor.CollectionExpressionHelper<SelectClause>
Overrides:
addAtTheEndOfChild in class AbstractContentAssistVisitor.AbstractSelectClauseCollectionHelper<SelectClause>
Parameters:
expression - The Expression being visited
collectionExpression - The CollectionExpression is either the child of the given Expression or a temporary generated one that usually contains a single item
index - The position of that child in the collection of children
hasComma - Indicates whether a comma is present before the child at the given position; if the index is 0, then this is false by default
virtualSpace - 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

addTheBeginningOfChild

public void addTheBeginningOfChild(SelectClause 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.

Specified by:
addTheBeginningOfChild in interface AbstractContentAssistVisitor.CollectionExpressionHelper<SelectClause>
Overrides:
addTheBeginningOfChild in class AbstractContentAssistVisitor.AbstractSelectClauseCollectionHelper<SelectClause>
Parameters:
expression - The Expression being visited
collectionExpression - 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 beginning
index - The position of the child that was scanned
hasComma - Indicates whether a comma is present before the child at the given position; if the index is 0, then this is false by default

preExpressionLength

public int preExpressionLength(SelectClause expression)
Returns the length of anything that can be defined before the first child. An example can be "DISTINCT " in "AVG(DISTINCT e.name)".

Specified by:
preExpressionLength in interface AbstractContentAssistVisitor.CollectionExpressionHelper<SelectClause>
Overrides:
preExpressionLength in class AbstractContentAssistVisitor.AbstractSelectClauseCollectionHelper<SelectClause>
Parameters:
expression - The Expression being visited
Returns:
The length of anything that was parsed before the first child or 0 if nothing was parsed

EclipseLink 2.4.2, build 'v20130514-5956486' API Reference