|
Oracle Fusion Middleware Java API Reference for Oracle TopLink 11g Release 1 (11.1.1) E28847-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
org.eclipse.persistence.jpa.internal.jpql.parser.AnonymousExpressionVisitor
org.eclipse.persistence.jpa.internal.jpql.AbstractVisitor
org.eclipse.persistence.jpa.internal.jpql.ContentAssistVisitor
public class ContentAssistVisitor
This visitor traverses the JPQL parsed tree and gathers the possible proposals at a given position.
Example:
// Have the external form of an IQuery
IQuery
query = ...
// Create a JPQLQueryContext
JPQLQueryContext
context = new JPQLQueryContext();
context.setQuery(query)
;
// Create a map of the positions within the parsed tree
QueryPosition
queryPosition = context.getJPQLExpression().buildPosition(query.getExpression(), position);
// Create the visitor and visit the parsed tree
ContentAssistVisitor visitor = new ContentAssistVisitor(context);
visitor.prepare(queryPosition)
;
queryPosition.getExpression().accept(visitor);
// Retrieve the proposals
ContentAssistProposals
proposals = visitor.getProposals();
// Only required if the visitor is cached
visitor.dispose();
// Only required if the context is cached
context.dispose();
Field Summary | |
---|---|
private java.util.Stack<java.lang.Integer> |
corrections This is used to change the position of the cursor in order to add possible proposals |
private java.util.Map<java.lang.Class<?>,java.lang.Object> |
helpers The cached helpers that are used by this visitor to add valid content assist proposals. |
private java.util.Stack<Expression> |
lockedExpressions Used to prevent and infinite recursion when one of the visit method is virtually asking a child expression to be visited. |
private java.util.Stack<java.lang.Integer> |
positionInCollections Used to determine if the cursor is an expression contained in a collection, if not, then this value is set to -1. |
private DefaultContentAssistProposals |
proposals The set of possible proposals gathered based on the position in the query. |
private QueryPosition |
queryPosition Contains the position of the cursor within the parsed Expression . |
private static int |
SPACE_LENGTH A constant for the length of a whitespace, which is 1. |
private java.util.Stack<java.lang.Integer> |
virtualSpaces A virtual space is used to move the position by an amount of space in order to find some proposals within an expression. |
private java.lang.String |
word The current word, which was retrieved from the JPQL based on the position of the cursor. |
private WordParser |
wordParser This is used to retrieve words from the actual JPQL query. |
Fields inherited from class org.eclipse.persistence.jpa.internal.jpql.AbstractVisitor |
---|
queryContext |
Constructor Summary | |
---|---|
ContentAssistVisitor(JPQLQueryContext queryContext) Creates a new ContentAssistVisitor . |
Method Summary | ||
---|---|---|
private java.lang.Iterable<IEntity> |
abstractSchemaTypes() Returns the collection of possible abstract schema types. |
|
private IType |
acceptableType(Expression expression) Determines the root IType that any type should be assignable. |
|
private void |
addAbstractSchemaTypes() Adds the abstract schema types as possible content assist proposals but will be filtered using the current word. |
|
private void |
addAbstractSchemaTypes(IType type) Adds the abstract schema types as possible content assist proposals but will be filtered using the current word and the entity's type will have to match the one from the given IType . |
|
private void |
addAggregate(java.lang.String identifier) |
|
private void |
addAllAggregates(JPQLQueryBNF queryBNF) |
|
private void |
addAllAggregates(java.lang.String queryBNFId) |
|
private void |
addAllClauses(JPQLQueryBNF queryBNF) |
|
private void |
addAllClauses(java.lang.String queryBNF) |
|
private void |
addAllCompounds(JPQLQueryBNF queryBNF) |
|
private void |
addAllCompounds(java.lang.String queryBNFId) |
|
private void |
addAllFunctions(JPQLQueryBNF queryBNF) |
|
private void |
addAllFunctions(JPQLQueryBNF queryBNF, int position) |
|
private void |
addAllFunctions(java.lang.String queryBNFId) |
|
private void |
addAllIdentificationVariables(Expression expression) |
|
private void |
addAllIdentifiers(JPQLQueryBNF queryBNF) |
|
private void |
addAllIdentifiers(java.lang.String queryBNFId) |
|
private void |
addClause(java.lang.String identifier) |
|
private void |
addCompound(java.lang.String identifier) |
|
private void |
addFunction(java.lang.String identifier, int position) |
|
private void |
addIdentificationVariable(java.lang.String identificationVariable) |
|
private void |
addIdentificationVariables(ContentAssistVisitor.IdentificationVariableType type, Expression expression) Adds the possible identifier variables as valid proposals but filter them based on the given type. |
|
private void |
addIdentifier(java.lang.String identifier, int position) |
|
private boolean |
addIdentifier(java.lang.String identifier, int position, java.lang.String partialEnding, int endIndex) |
|
private void |
addJoinIdentifiers() |
|
private void |
addLeftIdentificationVariables(Expression expression) |
|
private void |
addProposal(java.lang.String proposal) |
|
private void |
addProposal(java.lang.String identifier, java.lang.String word) |
|
private void |
addRangeIdentificationVariable(java.lang.String identificationVariable) |
|
private void |
addResultVariables(Expression expression) |
|
private void |
addScalarExpressionProposals(Expression expression) |
|
private void |
addSelectExpressionProposals(AbstractSelectClause expression, int length) |
|
private boolean |
addSelectExpressionProposals(Expression expression, int length, int index, boolean last) |
|
private ContentAssistVisitor.AppendableExpressionVisitor |
appendableExpressionVisitor() |
|
private ContentAssistVisitor.FilteringMappingCollector |
buildFilteringMappingCollector(AbstractPathExpression expression, Resolver resolver, Filter<IMapping> filter, java.lang.String pattern) |
|
private java.lang.Object |
buildHelper(java.lang.Class<?> helperClass) |
|
private ContentAssistVisitor.MappingCollector |
buildMappingCollector(AbstractPathExpression expression, Resolver resolver, Filter<IMapping> filter) |
|
private Filter<IMapping> |
buildMappingFilter(AbstractPathExpression expression, Filter<IMapping> filter) |
|
private ContentAssistVisitor.SelectStatementHelper<AbstractSelectStatement,Expression> |
cast(ContentAssistVisitor.SelectStatementHelper<? extends AbstractSelectStatement,? extends Expression> helper) |
|
private ContentAssistVisitor.CompletenessVisitor |
completenessVisitor() |
|
private ContentAssistVisitor.CompoundExpressionHelper |
compoundExpressionHelper() |
|
private ContentAssistVisitor.CompletenessVisitor |
conditionalExpressionCompletenessVisitor() |
|
private ContentAssistVisitor.ConstrutorCollectionHelper |
constructorCollectionHelper() |
|
private ContentAssistVisitor.MappingCollector |
defaultMappingCollector() |
|
private ContentAssistVisitor.ClauseHelper<DeleteClause> |
deleteClauseHelper() |
|
void |
dispose() Disposes of the internal data. |
|
private ContentAssistVisitor.DoubleEncapsulatedCollectionHelper |
doubleEncapsulatedCollectionHelper() |
|
private ContentAssistVisitor.AcceptableTypeVisitor |
expressionTypeVisitor() |
|
private int |
findExpressionPosition(CollectionExpression expression) |
|
private RangeVariableDeclaration |
findRangeVariableDeclaration(UpdateClause expression) |
|
private ContentAssistVisitor.FromClauseCollectionHelper |
fromClauseCollectionHelper() |
|
private ContentAssistVisitor.ClauseHelper<AbstractFromClause> |
fromClauseHelper() |
|
private ContentAssistVisitor.FromClauseSelectStatementHelper |
fromClauseSelectStatementHelper() |
|
private
|
getHelper(java.lang.Class<T> helperClass) Retrieves the helper associated with the given helper class. |
|
DefaultContentAssistProposals |
getProposals() Returns the object that contains the valid proposals based on the position of the cursor within the JPQL query. |
|
private ContentAssistVisitor.GroupByClauseCollectionHelper |
groupByClauseCollectionHelper() |
|
private ContentAssistVisitor.GroupByClauseSelectStatementHelper |
groupByClauseSelectStatementHelper() |
|
private ContentAssistVisitor.ClauseHelper<HavingClause> |
havingClauseHelper() |
|
private ContentAssistVisitor.HavingClauseSelectStatementHelper |
havingClauseSelectStatementHelper() |
|
private ContentAssistVisitor.CompletenessVisitor |
incompleteCollectionExpressionVisitor() |
|
protected void |
initialize() Initializes this class. |
|
private boolean |
isAggregate(java.lang.String proposal) Determines whether the given JPQL identifier used in an aggregate expression; for instance AND. |
|
private boolean |
isAppendable(Expression expression) |
|
private boolean |
isAppendableToCollection(Expression expression) |
|
private boolean |
isClause(java.lang.String identifier) Determines whether the given JPQL identifier used in a clause; for instance SELECT. |
|
private boolean |
isComplete(Expression expression) |
|
private boolean |
isCompoundable(Expression expression) |
|
private boolean |
isCompoundFunction(java.lang.String identifier) Determines whether the given JPQL identifier used in a compound expression; an example would be BETWEEN or MEMBER. |
|
private boolean |
isConditionalExpressionComplete(Expression expression) |
|
private boolean |
isFunction(java.lang.String identifier) Determines whether the given JPQL identifier is a function, an example would be AVG. |
|
private boolean |
isGroupByComplete(Expression expression) |
|
private boolean |
isInSubquery(Expression expression) Determines whether the given Expression is in a subquery or in the top-level query. |
|
private boolean |
isLocked(Expression expression) |
|
private boolean |
isPositionWithin(int position, int offset, java.lang.String word) Determines whether the given position is within the given word. |
|
private boolean |
isPositionWithin(int position, java.lang.String word) Determines whether the given position is within the given word. |
|
private boolean |
isPreviousClauseComplete(AbstractSelectStatement expression, ContentAssistVisitor.SelectStatementHelper<AbstractSelectStatement,Expression> helper) |
|
private boolean |
isResultVariable(Expression expression) |
|
private boolean |
isSelectExpressionComplete(Expression expression) |
|
private boolean |
isValidProposal(java.lang.String proposal, java.lang.String word) Determines whether the given proposal is a valid, which is based on the content of the given word. |
|
private boolean |
isValidVersion(java.lang.String identifier) Determines whether the given JPQL identifier can be a valid proposal, i.e. if it's part of the grammar of the JPA version that was used to parse the JPQL query. |
|
private ContentAssistVisitor.JoinCollectionHelper |
joinCollectionHelper() |
|
private int |
length(Expression expression) Returns the length of the string representation for the given Expression . |
|
private Filter<IMapping> |
mappingCollectionFilter() |
|
private Filter<IMapping> |
mappingFilter(Expression expression) |
|
private ContentAssistVisitor.MappingFilterBuilder |
mappingFilterBuilder() |
|
private Filter<IMapping> |
mappingPropertyFilter() |
|
private ContentAssistVisitor.OrderByClauseCollectionHelper |
orderByClauseCollectionHelper() |
|
private ContentAssistVisitor.OrderByClauseSelectStatementHelper |
orderByClauseSelectStatementHelper() |
|
private int |
position(Expression expression) Returns the position of the Expression within the parsed tree representation of the JPQL query. |
|
void |
prepare(QueryPosition queryPosition) Prepares this visitor by prepopulating it with the necessary data that is required to properly gather the list of proposals based on the caret position. |
|
private ContentAssistVisitor.RangeVariableDeclarationVisitor |
rangeVariableDeclarationVisitor() |
|
private ContentAssistVisitor.ResultVariableVisitor |
resultVariableVisitor() |
|
private ContentAssistVisitor.CompletenessVisitor |
selectClauseCompletenessVisitor() |
|
private ContentAssistVisitor.SelectClauseSelectStatementHelper |
selectClauseSelectStatementHelper() |
|
private ContentAssistVisitor.SimpleFromClauseSelectStatementHelper |
simpleFromClauseSelectStatementHelper() |
|
private ContentAssistVisitor.SimpleGroupByClauseSelectStatementHelper |
simpleGroupByClauseSelectStatementHelper() |
|
private ContentAssistVisitor.SimpleHavingClauseSelectStatementHelper |
simpleHavingClauseSelectStatementHelper() |
|
private ContentAssistVisitor.SimpleSelectClauseSelectStatementHelper |
simpleSelectClauseSelectStatementHelper() |
|
private ContentAssistVisitor.SimpleWhereClauseSelectStatementHelper |
simpleWhereClauseSelectStatementHelper() |
|
private ContentAssistVisitor.SubqueryVisitor |
subqueryVisitor() |
|
private ContentAssistVisitor.TripleEncapsulatedCollectionHelper |
tripleEncapsulatedCollectionHelper() |
|
private ContentAssistVisitor.UpdateItemCollectionHelper |
updateItemCollectionHelper() |
|
void |
visit(AbsExpression expression) Visits the AbsExpression expression. |
|
void |
visit(AbstractSchemaName expression) Visits the AbstractSchemaName expression. |
|
void |
visit(AdditionExpression expression) Visits the AdditionExpression expression. |
|
void |
visit(AllOrAnyExpression expression) Visits the AllOrAnyExpression expression. |
|
void |
visit(AndExpression expression) Visits the AndExpression expression. |
|
void |
visit(ArithmeticFactor expression) Visits the ArithmeticFactor expression. |
|
void |
visit(AvgFunction expression) Visits the AvgFunction expression. |
|
void |
visit(BadExpression expression) Visits the BadExpression expression. |
|
void |
visit(BetweenExpression expression) Visits the BetweenExpression expression. |
|
void |
visit(CaseExpression expression) Visits the CaseExpression expression. |
|
void |
visit(CoalesceExpression expression) Visits the CoalesceExpression 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(CollectionValuedPathExpression expression) Visits the CollectionValuedPathExpression expression. |
|
void |
visit(ComparisonExpression expression) Visits the ComparisonExpression expression. |
|
void |
visit(ConcatExpression expression) Visits the ConcatExpression expression. |
|
void |
visit(ConstructorExpression expression) Visits the ConstructorExpression expression. |
|
void |
visit(CountFunction expression) Visits the CountFunction expression. |
|
void |
visit(DateTime expression) Visits the DateTime expression. |
|
void |
visit(DeleteClause expression) Visits the DeleteClause expression. |
|
void |
visit(DeleteStatement expression) Visits the DeleteStatement expression. |
|
void |
visit(DivisionExpression expression) Visits the DivisionExpression expression. |
|
void |
visit(EmptyCollectionComparisonExpression expression) Visits the EmptyCollectionComparisonExpression expression. |
|
void |
visit(EntityTypeLiteral expression) Visits the EntityTypeLiteral expression. |
|
void |
visit(EntryExpression expression) Visits the EntryExpression expression. |
|
void |
visit(ExistsExpression expression) Visits the ExistsExpression expression. |
|
protected void |
visit(Expression expression) Blindly visit the given Expression . |
|
void |
visit(FromClause expression) Visits the FromClause expression. |
|
void |
visit(FuncExpression expression) Visits the FuncExpression 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(IndexExpression expression) Visits the IndexExpression expression. |
|
void |
visit(InExpression expression) Visits the InExpression expression. |
|
void |
visit(InputParameter expression) Visits the InputParameter expression. |
|
void |
visit(Join expression) Visits the Join expression. |
|
void |
visit(JoinFetch expression) Visits the FetchJoin expression. |
|
void |
visit(JPQLExpression expression) Visits the JPQLExpression expression. |
|
void |
visit(KeyExpression expression) Visits the KeyExpression expression. |
|
void |
visit(KeywordExpression expression) Visits the KeywordExpression expression. |
|
void |
visit(LengthExpression expression) Visits the LengthExpression expression. |
|
void |
visit(LikeExpression expression) Visits the LikeExpression expression. |
|
void |
visit(LocateExpression expression) Visits the LocateExpression expression. |
|
void |
visit(LowerExpression expression) Visits the LowerExpression expression. |
|
void |
visit(MaxFunction expression) Visits the MaxFunction expression. |
|
void |
visit(MinFunction expression) Visits the MinFunction expression. |
|
void |
visit(ModExpression expression) Visits the ModExpression 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(NullExpression expression) Visits the NullExpression expression. |
|
void |
visit(NullIfExpression expression) Visits the NullIfExpression expression. |
|
void |
visit(NumericLiteral expression) Visits the NumericLiteral expression. |
|
void |
visit(ObjectExpression expression) Visits the ObjectExpression 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(SelectStatement expression) Visits the SelectStatement expression. |
|
void |
visit(SimpleFromClause expression) Visits the SimpleFromClause expression. |
|
void |
visit(SimpleSelectClause expression) Visits the SimpleSelectClause expression. |
|
void |
visit(SimpleSelectStatement expression) Visits the SimpleSelectStatement expression. |
|
void |
visit(SizeExpression expression) Visits the SizeExpression expression. |
|
void |
visit(SqrtExpression expression) Visits the SqrtExpression expression. |
|
void |
visit(StateFieldPathExpression expression) Visits the StateFieldPathExpression expression. |
|
void |
visit(StringLiteral expression) Visits the StringLiteral expression. |
|
void |
visit(SubExpression expression) Visits the SubExpression expression. |
|
void |
visit(SubstringExpression expression) Visits the SubstringExpression expression. |
|
void |
visit(SubtractionExpression expression) Visits the SubtractionExpression expression. |
|
void |
visit(SumFunction expression) Visits the SumFunction expression. |
|
void |
visit(TreatExpression expression) Visits the TreatExpression expression. |
|
void |
visit(TrimExpression expression) Visits the TrimExpression expression. |
|
void |
visit(TypeExpression expression) Visits the TypeExpression expression. |
|
void |
visit(UnknownExpression expression) Visits the UnknownExpression expression. |
|
void |
visit(UpdateClause expression) Visits the UpdateClause expression. |
|
void |
visit(UpdateItem expression) Visits the UpdateItem expression. |
|
void |
visit(UpdateStatement expression) Visits the UpdateStatement expression. |
|
void |
visit(UpperExpression expression) Visits the UpperExpression expression. |
|
void |
visit(ValueExpression expression) Visits the ValueExpression expression. |
|
void |
visit(WhenClause expression) Visits the WhenClause expression. |
|
void |
visit(WhereClause expression) Visits the WhereClause expression. |
|
private void |
visitAggregateFunction(AggregateFunction expression) |
|
private void |
visitArithmeticExpression(ArithmeticExpression expression) |
|
private
|
visitClause(T expression, java.lang.String identifier, boolean hasSpaceAfterIdentifier, ContentAssistVisitor.ClauseHelper<T> helper) |
|
private
|
visitCollectionExpression(T expression, java.lang.String identifier, ContentAssistVisitor.CollectionExpressionHelper<T> helper) Adds the possible proposals for the given expression based on the location of the cursor and the content of the expression. |
|
private void |
visitCompoundableExpression(AbstractConditionalClause expression) |
|
private void |
visitCompoundableExpression(ContentAssistVisitor.CompoundExpressionHelper helper, int position, int length) |
|
private void |
visitDeleteStatement(DeleteStatement expression) |
|
private void |
visitEncapsulatedExpression(AbstractEncapsulatedExpression expression, java.lang.String identifier, java.lang.String jpqlQueryBNF) Adds the possible proposals for the given expression based on the location of the cursor and the content of the expression. |
|
private void |
visitLogicalExpression(LogicalExpression expression, java.lang.String identifier) |
|
private ContentAssistVisitor.VisitParentVisitor |
visitParentVisitor() |
|
private void |
visitPathExpression(AbstractPathExpression expression) |
|
private void |
visitPathExpression(AbstractPathExpression expression, Filter<IMapping> helper) |
|
private void |
visitSelectClause(AbstractSelectClause expression) |
|
private void |
visitSelectStatement(AbstractSelectStatement expression, ContentAssistVisitor.SelectStatementHelper<? extends AbstractSelectStatement,? extends Expression> helper) |
|
private ContentAssistVisitor.SelectStatementHelper<? extends AbstractSelectStatement,? extends Expression> |
visitSelectStatement(AbstractSelectStatement expression, int position, int[] length, ContentAssistVisitor.SelectStatementHelper<AbstractSelectStatement,Expression> helper) |
|
private void |
visitSingleEncapsulatedExpression(AbstractSingleEncapsulatedExpression expression, ContentAssistVisitor.IdentificationVariableType identificationVariableType) Adds the possible proposals for the given expression based on the location of the cursor and the content of the expression. |
|
private void |
visitSingleEncapsulatedExpression(AbstractSingleEncapsulatedExpression expression, ContentAssistVisitor.IdentificationVariableType identificationVariableType, java.lang.String... expressionIdentifiers) Adds the possible proposals for the given expression based on the location of the cursor and the content of the expression. |
|
private void |
visitUpdateStatement(UpdateStatement expression) |
|
private ContentAssistVisitor.ClauseHelper<WhereClause> |
whereClauseHelper() |
|
private ContentAssistVisitor.WhereClauseSelectStatementHelper |
whereClauseSelectStatementHelper() |
Methods inherited from class org.eclipse.persistence.jpa.internal.jpql.AbstractVisitor |
---|
collectionExpression, embeddable, entity, getJPAVersion, getManagedType, getManagedType, getMapping, getProvider, getQuery, getQueryExpression, getResolver, getType, getType, getType, getTypeDeclaration, getTypeHelper, getTypeRepository, isEclipseLinkPlatform, isEmbeddable, isEntity, isJavaPlatform, isMappedSuperclass, isNull, mappedSuperclass |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.Stack<java.lang.Integer> corrections
private java.util.Map<java.lang.Class<?>,java.lang.Object> helpers
private java.util.Stack<Expression> lockedExpressions
private java.util.Stack<java.lang.Integer> positionInCollections
private DefaultContentAssistProposals proposals
private QueryPosition queryPosition
Expression
.private java.util.Stack<java.lang.Integer> virtualSpaces
private java.lang.String word
private WordParser wordParser
private static final int SPACE_LENGTH
Constructor Detail |
---|
public ContentAssistVisitor(JPQLQueryContext queryContext)
ContentAssistVisitor
.
queryContext
- The context used to query information about the queryMethod Detail |
---|
private java.lang.Iterable<IEntity> abstractSchemaTypes()
entities
defined in the persistence contextprivate IType acceptableType(Expression expression)
IType
that any type should be assignable. If the IType
is Number
, than any subclasses will be allowed.expression
- The Expression
to visit, including its parent hierarchy until an Expression
requires a certain IType
IType
allowed or null
if anything is allowedprivate void addAbstractSchemaTypes()
private void addAbstractSchemaTypes(IType type)
IType
.type
- The IType
used to filter the abstract schema typesprivate void addAggregate(java.lang.String identifier)
private void addAllAggregates(JPQLQueryBNF queryBNF)
private void addAllAggregates(java.lang.String queryBNFId)
private void addAllClauses(JPQLQueryBNF queryBNF)
private void addAllClauses(java.lang.String queryBNF)
private void addAllCompounds(JPQLQueryBNF queryBNF)
private void addAllCompounds(java.lang.String queryBNFId)
private void addAllFunctions(JPQLQueryBNF queryBNF)
private void addAllFunctions(JPQLQueryBNF queryBNF, int position)
private void addAllFunctions(java.lang.String queryBNFId)
private void addAllIdentificationVariables(Expression expression)
private void addAllIdentifiers(JPQLQueryBNF queryBNF)
private void addAllIdentifiers(java.lang.String queryBNFId)
private void addClause(java.lang.String identifier)
private void addCompound(java.lang.String identifier)
private void addFunction(java.lang.String identifier, int position)
private void addIdentificationVariable(java.lang.String identificationVariable)
private void addIdentificationVariables(ContentAssistVisitor.IdentificationVariableType type, Expression expression)
For instance, if the type is ContentAssistVisitor.IdentificationVariableType.LEFT
, then any identification variables that have been defined before the given Expression
are valid proposals, but those defined after are not valid proposals.
type
- Which type of identification variables to add as valid proposalsexpression
- The Expression
where the content assist was invoked, which helps to determine how to stop adding identification variableprivate void addIdentifier(java.lang.String identifier, int position)
private boolean addIdentifier(java.lang.String identifier, int position, java.lang.String partialEnding, int endIndex)
private void addJoinIdentifiers()
private void addLeftIdentificationVariables(Expression expression)
private void addProposal(java.lang.String proposal)
private void addProposal(java.lang.String identifier, java.lang.String word)
private void addRangeIdentificationVariable(java.lang.String identificationVariable)
private void addResultVariables(Expression expression)
private void addScalarExpressionProposals(Expression expression)
private void addSelectExpressionProposals(AbstractSelectClause expression, int length)
private boolean addSelectExpressionProposals(Expression expression, int length, int index, boolean last)
private ContentAssistVisitor.AppendableExpressionVisitor appendableExpressionVisitor()
private ContentAssistVisitor.FilteringMappingCollector buildFilteringMappingCollector(AbstractPathExpression expression, Resolver resolver, Filter<IMapping> filter, java.lang.String pattern)
private java.lang.Object buildHelper(java.lang.Class<?> helperClass)
private ContentAssistVisitor.MappingCollector buildMappingCollector(AbstractPathExpression expression, Resolver resolver, Filter<IMapping> filter)
private Filter<IMapping> buildMappingFilter(AbstractPathExpression expression, Filter<IMapping> filter)
private ContentAssistVisitor.SelectStatementHelper<AbstractSelectStatement,Expression> cast(ContentAssistVisitor.SelectStatementHelper<? extends AbstractSelectStatement,? extends Expression> helper)
private ContentAssistVisitor.CompletenessVisitor completenessVisitor()
private ContentAssistVisitor.CompoundExpressionHelper compoundExpressionHelper()
private ContentAssistVisitor.CompletenessVisitor conditionalExpressionCompletenessVisitor()
private ContentAssistVisitor.ConstrutorCollectionHelper constructorCollectionHelper()
private ContentAssistVisitor.MappingCollector defaultMappingCollector()
private ContentAssistVisitor.ClauseHelper<DeleteClause> deleteClauseHelper()
public void dispose()
dispose
in class AbstractVisitor
private ContentAssistVisitor.DoubleEncapsulatedCollectionHelper doubleEncapsulatedCollectionHelper()
private ContentAssistVisitor.AcceptableTypeVisitor expressionTypeVisitor()
private int findExpressionPosition(CollectionExpression expression)
private RangeVariableDeclaration findRangeVariableDeclaration(UpdateClause expression)
private ContentAssistVisitor.FromClauseCollectionHelper fromClauseCollectionHelper()
private ContentAssistVisitor.ClauseHelper<AbstractFromClause> fromClauseHelper()
private ContentAssistVisitor.FromClauseSelectStatementHelper fromClauseSelectStatementHelper()
private <T> T getHelper(java.lang.Class<T> helperClass)
helperClass
- The Java class of the helper to retrievepublic DefaultContentAssistProposals getProposals()
private ContentAssistVisitor.GroupByClauseCollectionHelper groupByClauseCollectionHelper()
private ContentAssistVisitor.GroupByClauseSelectStatementHelper groupByClauseSelectStatementHelper()
private ContentAssistVisitor.ClauseHelper<HavingClause> havingClauseHelper()
private ContentAssistVisitor.HavingClauseSelectStatementHelper havingClauseSelectStatementHelper()
private ContentAssistVisitor.CompletenessVisitor incompleteCollectionExpressionVisitor()
protected void initialize()
initialize
in class AbstractVisitor
private boolean isAggregate(java.lang.String proposal)
identifier
- The identifier to validatetrue
if the given identifier is used in an aggregate expression; false
otherwiseprivate boolean isAppendable(Expression expression)
private boolean isAppendableToCollection(Expression expression)
private boolean isClause(java.lang.String identifier)
identifier
- The identifier to validatetrue
if the given identifier is a clause; false
otherwiseprivate boolean isComplete(Expression expression)
private boolean isCompoundable(Expression expression)
private boolean isCompoundFunction(java.lang.String identifier)
identifier
- The identifier to validatetrue
if the given identifier is used in a compound expression; false
otherwiseprivate boolean isConditionalExpressionComplete(Expression expression)
private boolean isFunction(java.lang.String identifier)
identifier
- The identifier to validatetrue
if the given identifier is a function; false
otherwiseprivate boolean isGroupByComplete(Expression expression)
private boolean isInSubquery(Expression expression)
Expression
is in a subquery or in the top-level query.expression
- The Expression
to visit its parent hierarchytrue
if the owning query is a subquery; false
if it's the top-level queryprivate boolean isLocked(Expression expression)
private boolean isPositionWithin(int position, int offset, java.lang.String word)
Example: position=0, word="JPQL" => true Example: position=1, word="JPQL" => true Example: position=4, word="JPQL" => true Example: position=5, word="JPQL" => true Example: position=5, offset 2, (actual cursor position is 3), word="JPQL" => true
position
- The position of the cursoroffset
- The offset to adjust the positionword
- The word to check if the cursor is positioned in ittrue
if the given position is within the given word; false
otherwiseprivate boolean isPositionWithin(int position, java.lang.String word)
Example: position=0, word="JPQL" => true Example: position=1, word="JPQL" => true Example: position=4, word="JPQL" => true Example: position=5, word="JPQL" => true
position
- The position of the cursorword
- The word to check if the cursor is positioned in ittrue
if the given position is within the given word; false
otherwiseprivate boolean isPreviousClauseComplete(AbstractSelectStatement expression, ContentAssistVisitor.SelectStatementHelper<AbstractSelectStatement,Expression> helper)
private boolean isResultVariable(Expression expression)
private boolean isSelectExpressionComplete(Expression expression)
private boolean isValidProposal(java.lang.String proposal, java.lang.String word)
proposal
- The proposal to validateword
- The word, which is what was parsed before the position of the cursortrue
if the proposal is valid; false
otherwiseprivate boolean isValidVersion(java.lang.String identifier)
identifier
- The JPQL identifier to validatetrue
if the given identifier is part of the current JPA version or was defined in previous release; false
otherwiseprivate ContentAssistVisitor.JoinCollectionHelper joinCollectionHelper()
private int length(Expression expression)
Expression
. The text containing any virtual text will be used.expression
- The Expression
used to calculate the length of its string representationprivate Filter<IMapping> mappingCollectionFilter()
private Filter<IMapping> mappingFilter(Expression expression)
private ContentAssistVisitor.MappingFilterBuilder mappingFilterBuilder()
private Filter<IMapping> mappingPropertyFilter()
private ContentAssistVisitor.OrderByClauseCollectionHelper orderByClauseCollectionHelper()
private ContentAssistVisitor.OrderByClauseSelectStatementHelper orderByClauseSelectStatementHelper()
private int position(Expression expression)
Expression
within the parsed tree representation of the JPQL query. The beginning of the string representation is the position returned.expression
- The Expression
to find its position in the tree based on the string representationExpression
public void prepare(QueryPosition queryPosition)
proposals
- The object used to store the possible proposals gathered based on the position in the queryqueryPosition
- Contains the position of the cursor within the parsed Expression
private ContentAssistVisitor.RangeVariableDeclarationVisitor rangeVariableDeclarationVisitor()
private ContentAssistVisitor.ResultVariableVisitor resultVariableVisitor()
private ContentAssistVisitor.CompletenessVisitor selectClauseCompletenessVisitor()
private ContentAssistVisitor.SelectClauseSelectStatementHelper selectClauseSelectStatementHelper()
private ContentAssistVisitor.SimpleFromClauseSelectStatementHelper simpleFromClauseSelectStatementHelper()
private ContentAssistVisitor.SimpleGroupByClauseSelectStatementHelper simpleGroupByClauseSelectStatementHelper()
private ContentAssistVisitor.SimpleHavingClauseSelectStatementHelper simpleHavingClauseSelectStatementHelper()
private ContentAssistVisitor.SimpleSelectClauseSelectStatementHelper simpleSelectClauseSelectStatementHelper()
private ContentAssistVisitor.SimpleWhereClauseSelectStatementHelper simpleWhereClauseSelectStatementHelper()
private ContentAssistVisitor.SubqueryVisitor subqueryVisitor()
private ContentAssistVisitor.TripleEncapsulatedCollectionHelper tripleEncapsulatedCollectionHelper()
private ContentAssistVisitor.UpdateItemCollectionHelper updateItemCollectionHelper()
public void visit(AbsExpression expression)
AbsExpression
expression.visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(AbstractSchemaName expression)
AbstractSchemaName
expression.visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(AdditionExpression expression)
AdditionExpression
expression.visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(AllOrAnyExpression expression)
AllOrAnyExpression
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(ArithmeticFactor expression)
ArithmeticFactor
expression.visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(AvgFunction expression)
AvgFunction
expression.visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(BadExpression expression)
BadExpression
expression.visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(BetweenExpression expression)
BetweenExpression
expression.visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(CaseExpression expression)
CaseExpression
expression.visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(CoalesceExpression expression)
CoalesceExpression
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(CollectionValuedPathExpression expression)
CollectionValuedPathExpression
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(ConcatExpression expression)
ConcatExpression
expression.visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(ConstructorExpression expression)
ConstructorExpression
expression.visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(CountFunction expression)
CountFunction
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(DeleteStatement expression)
DeleteStatement
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 visitpublic void visit(EntityTypeLiteral expression)
EntityTypeLiteral
expression.visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(EntryExpression expression)
EntryExpression
expression.visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(ExistsExpression expression)
ExistsExpression
expression.visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitprotected void visit(Expression expression)
Expression
.visit
in class AbstractVisitor
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(FuncExpression expression)
FuncExpression
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(IndexExpression expression)
IndexExpression
expression.visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(InExpression expression)
InExpression
expression.visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(InputParameter expression)
InputParameter
expression.visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(Join expression)
Join
expression.visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(JoinFetch expression)
FetchJoin
expression.visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(JPQLExpression expression)
JPQLExpression
expression.visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(KeyExpression expression)
KeyExpression
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(LengthExpression expression)
LengthExpression
expression.visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(LikeExpression expression)
LikeExpression
expression.visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(LocateExpression expression)
LocateExpression
expression.visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(LowerExpression expression)
LowerExpression
expression.visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(MaxFunction expression)
MaxFunction
expression.visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(MinFunction expression)
MinFunction
expression.visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(ModExpression expression)
ModExpression
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(NullExpression expression)
NullExpression
expression.visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(NullIfExpression expression)
NullIfExpression
expression.visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(NumericLiteral expression)
NumericLiteral
expression.visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(ObjectExpression expression)
ObjectExpression
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(SelectStatement expression)
SelectStatement
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(SimpleSelectStatement expression)
SimpleSelectStatement
expression.visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(SizeExpression expression)
SizeExpression
expression.visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(SqrtExpression expression)
SqrtExpression
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(StringLiteral expression)
StringLiteral
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(SubstringExpression expression)
SubstringExpression
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(SumFunction expression)
SumFunction
expression.visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(TreatExpression expression)
TreatExpression
expression.visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(TrimExpression expression)
TrimExpression
expression.visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(TypeExpression expression)
TypeExpression
expression.visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(UnknownExpression expression)
UnknownExpression
expression.visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(UpdateClause expression)
UpdateClause
expression.visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(UpdateItem expression)
UpdateItem
expression.visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(UpdateStatement expression)
UpdateStatement
expression.visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(UpperExpression expression)
UpperExpression
expression.visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(ValueExpression expression)
ValueExpression
expression.visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(WhenClause expression)
WhenClause
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 Expression
to visitprivate void visitAggregateFunction(AggregateFunction expression)
private void visitArithmeticExpression(ArithmeticExpression expression)
private <T extends AbstractExpression> void visitClause(T expression, java.lang.String identifier, boolean hasSpaceAfterIdentifier, ContentAssistVisitor.ClauseHelper<T> helper)
private <T extends Expression> void visitCollectionExpression(T expression, java.lang.String identifier, ContentAssistVisitor.CollectionExpressionHelper<T> helper)
expression
based on the location of the cursor and the content of the expression.expression
- The expression
being visitedidentifier
-helper
-private void visitCompoundableExpression(AbstractConditionalClause expression)
private void visitCompoundableExpression(ContentAssistVisitor.CompoundExpressionHelper helper, int position, int length)
private void visitDeleteStatement(DeleteStatement expression)
private void visitEncapsulatedExpression(AbstractEncapsulatedExpression expression, java.lang.String identifier, java.lang.String jpqlQueryBNF)
expression
based on the location of the cursor and the content of the expression.expression
- The expression
being visitedidentifier
-jpqlQueryBNF
-private void visitLogicalExpression(LogicalExpression expression, java.lang.String identifier)
private ContentAssistVisitor.VisitParentVisitor visitParentVisitor()
private void visitPathExpression(AbstractPathExpression expression)
private void visitPathExpression(AbstractPathExpression expression, Filter<IMapping> helper)
private void visitSelectClause(AbstractSelectClause expression)
private ContentAssistVisitor.SelectStatementHelper<? extends AbstractSelectStatement,? extends Expression> visitSelectStatement(AbstractSelectStatement expression, int position, int[] length, ContentAssistVisitor.SelectStatementHelper<AbstractSelectStatement,Expression> helper)
private void visitSelectStatement(AbstractSelectStatement expression, ContentAssistVisitor.SelectStatementHelper<? extends AbstractSelectStatement,? extends Expression> helper)
private void visitSingleEncapsulatedExpression(AbstractSingleEncapsulatedExpression expression, ContentAssistVisitor.IdentificationVariableType identificationVariableType)
expression
based on the location of the cursor and the content of the expression.expression
- The expression
being visitedidentificationVariableType
- The type of identification variables that can be added as possible proposalsprivate void visitSingleEncapsulatedExpression(AbstractSingleEncapsulatedExpression expression, ContentAssistVisitor.IdentificationVariableType identificationVariableType, java.lang.String... expressionIdentifiers)
expression
based on the location of the cursor and the content of the expression.expression
- The expression
being visitedidentificationVariableType
- The type of identification variables that can be added as possible proposalsexpressionIdentifiers
- Sometimes the expression may have more than one possible identifier, such as ALL, ANY and SOME are a possible JPQL identifier for a single expression (AllOrAnyExpression
private void visitUpdateStatement(UpdateStatement expression)
private ContentAssistVisitor.ClauseHelper<WhereClause> whereClauseHelper()
private ContentAssistVisitor.WhereClauseSelectStatementHelper whereClauseSelectStatementHelper()
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |