Provisional API: This interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
| Modifier and Type | Class and Description |
|---|---|
| protected static class | |
| protected abstract static class | AbstractContentAssistVisitor.AbstractConditionalClauseCollectionHelper<T extends Expression>
This helper handles adding proposals within a conditional expression that might be parsed as a single expression or has a collection of expression, which means the fragment is either incomplete or invalid. |
| protected abstract static class | |
| protected abstract static class | |
| protected abstract static class | |
| protected abstract static class | |
| protected abstract static class | |
| private abstract static class | AbstractContentAssistVisitor.AbstractVisitorHelper
Common helper with visitor reference. |
| protected abstract static class | |
| protected abstract static class | AbstractContentAssistVisitor.AcceptableTypeVisitor
This visitor retrieves the permitted type from the path expression's parent. |
| protected static class | AbstractContentAssistVisitor.AppendableExpressionVisitor
This visitor scans the visited |
| protected static enum | AbstractContentAssistVisitor.AppendableType
This is used to determine how |
| protected static interface | AbstractContentAssistVisitor.CollectionExpressionHelper<T extends Expression>
This helper is used to determine how to add proposals within a collection of expressions. |
| protected static class | AbstractContentAssistVisitor.CollectionExpressionVisitor
This visitor retrieves the |
| protected static class | |
| protected static class | |
| protected static class | AbstractContentAssistVisitor.ConditionalClauseCollectionHelper
This helpers handles adding proposals for |
| protected static class | |
| protected static class | |
| protected static class | AbstractContentAssistVisitor.DefaultMappingCollector
The default implementation of |
| protected static class | |
| protected static class | |
| protected static class | |
| protected static class | |
| protected static class | |
| protected static class | AbstractContentAssistVisitor.EndingQueryPositionBuilder
This builder populates a |
| protected static class | AbstractContentAssistVisitor.EnumVisitor
This visitor determines whether a path expression can be resolved as a fully qualified enum type and an enum constant. |
| protected static class | AbstractContentAssistVisitor.FilteringMappingCollector
This |
| protected static class | |
| protected static class | |
| protected static class | |
| protected static class | |
| protected static class | |
| protected static class | |
| protected static class | |
| protected static enum | AbstractContentAssistVisitor.IdentificationVariableType
The various ways of retrieving identification variables from the declaration expression. |
| protected static class | AbstractContentAssistVisitor.IncompleteCollectionExpressionVisitor
This visitor is used when a clause or a compound expression was parsed with a collection of expressions representing an invalid fragment. |
| protected static class | AbstractContentAssistVisitor.InvalidExpressionVisitor
This visitor determines if the visited |
| protected static class | |
| protected static interface | AbstractContentAssistVisitor.MappingCollector
A collector is responsible to retrieve the possible proposals by using the mappings that can complete a path expression. |
| protected static class | AbstractContentAssistVisitor.MappingFilterBuilder
This visitor is responsible to create the right |
| protected static class | AbstractContentAssistVisitor.MappingTypeFilter
This |
| protected static class | |
| protected static class | |
| protected static class | |
| protected static class | |
| protected static class | |
| protected static class | |
| protected static class | |
| protected static class | |
| protected static class | |
| protected static class | |
| protected static class | |
| protected static class | |
| protected static class | |
| protected static class | |
| protected static interface | AbstractContentAssistVisitor.StatementHelper<T extends Expression>
This helper helps to add JPQL identifiers for the clauses that make up a query statement and also chains the clauses within the query. |
| protected static class | |
| protected static class | AbstractContentAssistVisitor.SubqueryVisitor
This visitor determines if an |
| protected static class | |
| protected static class | |
| protected static class | |
| protected static class | AbstractContentAssistVisitor.VisitParentVisitor
This visitor is meant to adjust the corrections stack when traversing an |
| protected static class | AbstractContentAssistVisitor.WhenClauseConditionalClauseCollectionHelper
This helpers handles adding proposals for |
| protected static class | |
| protected static class | |
| protected static class | |
| protected static class |
| Modifier and Type | Field and Description |
|---|---|
| protected Stack | corrections
This is used to change the position of the cursor in order to add possible proposals |
| protected Map | helpers
The cached helpers that are used by this visitor to add valid content assist proposals. |
| protected Map | identifierFilters
This map contains the |
| protected static final Filter | INVALID_IDENTIFIER_FILTER
This |
| protected Stack | lockedExpressions
Used to prevent and infinite recursion when one of the visit method is virtually asking a child expression to be visited. |
| protected DefaultContentAssistProposals | proposals
The set of possible proposals gathered based on the position in the query. |
| protected final JPQLQueryContext | queryContext
The context used to query information about the JPQL query. |
| protected QueryPosition | queryPosition
Contains the position of the cursor within the parsed |
| protected static final int | SPACE_LENGTH
A constant for the length of a whitespace, which is 1. |
| protected static final Filter | VALID_IDENTIFIER_FILTER
This |
| protected Stack | virtualSpaces
A virtual space is used to move the position of the cursor by adding an extra space in order to find some proposals within an expression. |
| protected String | word
The current word, which was retrieved from the JPQL query based on the position of the cursor. |
| protected WordParser | wordParser
This is used to retrieve words from the actual JPQL query. |
| Access | Constructor and Description |
|---|---|
| protected | AbstractContentAssistVisitor(JPQLQueryContext
The context used to query information about the JPQL query queryContext)Creates a new |
| Modifier and Type | Method and Description |
|---|---|
| protected void | addAggregateIdentifier(String
The JPQL identifier to add as a valid proposal if it passes the checks identifier)Adds the given JPQL identifier as a valid proposal if its role is |
| protected void | addAggregateIdentifiers(JPQLQueryBNF
The queryBNF)JPQLQueryBNF for which the registered JPQL identifiers will be
added as proposals if they pass the checksAdds the JPQL identifiers that are registered with the given |
| protected void | addAggregateIdentifiers(String
The unique of the queryBNFId)JPQLQueryBNF for which the registered JPQL
identifiers will be added as proposals if they pass the checksAdds the JPQL identifiers that are registered with the given |
| protected void | addArithmeticIdentifiers()
Adds the JPQL identifiers which correspond to the arithmetic operators as valid proposals. |
| protected void | addClauseIdentifier(String
The JPQL identifier to add as a valid proposal if it passes the checks identifier)Adds the given JPQL identifier as a valid proposal if its role is |
| protected void | addClauseIdentifiers(JPQLQueryBNF
The queryBNF)JPQLQueryBNF for which the registered JPQL identifiers will be
added as proposals if they pass the checksAdds the JPQL identifiers that are registered with the given |
| protected void | addClauseIdentifiers(String
The unique identifier of the queryBNFId)JPQLQueryBNF for which the registered
JPQL identifiers will be
added as proposals if they pass the checksAdds the JPQL identifiers that are registered with the given |
| protected void | addComparisonIdentifiers(Expression
The expression)Expression is preceding the position of the cursor and will help
to determine which of the comparison operators are validAdds the JPQL identifiers which correspond to the comparison operators as valid proposals. |
| protected void | addCompositeIdentifier(String
The composite JPQL identifier to add as valid proposal. The composite part
means it is an identifier composed of more than one word, example: identifier, int GROUP BYThe smallest length of the given identifier to test against the ending of the
JPQL query based on the position of the cursor. The offset is exclusive offset)Adds the composite JPQL identifier by following the given rules:
|
| protected void | addCompoundIdentifier(String
The JPQL identifier to add as a valid proposal if it passes the checks identifier, Expression The expression, boolean Expression represents the fragment that is before the current
word and it helps to filter out some of the compound identifiersFlag indicating if the hasIs, boolean IS identifier was found before the word,
which would also be before the NOT identifier if it was also foundFlag indicating if the hasNot)NOT identifier was found before the wordAdds the given JPQL identifier as a valid proposal if its role is |
| protected void | addCompoundIdentifiers(JPQLQueryBNF
The queryBNF, Expression JPQLQueryBNF for which the registered JPQL identifiers will be
added as proposals if they pass the checksThe expression, boolean Expression represents the fragment that is before the current
word and it helps to filter out some of the compound identifiersFlag indicating if the hasIs, boolean IS identifier was found before the word,
which would also be before the NOT identifier if it was also foundFlag indicating if the hasNot)NOT identifier was found before the wordAdds the JPQL identifiers that are registered with the given |
| protected void | addCompoundIdentifiers(String
The unique identifier of the queryBNFId, Expression JPQLQueryBNF for which the registered
JPQL identifiers will be added as proposals if they pass the checksThe expression, boolean Expression represents the fragment that is before the current
word and it helps to filter out some of the compound identifiersFlag indicating if the hasIs, boolean IS identifier was found before the word,
which would also be before the NOT identifier if it was also foundFlag indicating if the hasNot)NOT identifier was found before the wordAdds the JPQL identifiers that are registered with the given |
| protected void | addEntities()
Adds the entities as possible content assist proposals but will be filtered using the current word. |
| protected void | addEntities(IType
The type)IType used to filter the abstract schema typesAdds the entities as possible content assist proposals but will be filtered using the current
word and the entity's type will have to be assignable from the given |
| protected void | addEnumConstant(IType enumType, String
The enum constant to be added as a valid proposal enumConstant)Adds the given enum constant as a valid proposal. |
| protected void | addEnumConstants(IType
The enumType, String IType of the enum typeThe word is used to filter the enum constants, which can be word)null or
an empty stringAdds the constants of the given enum type as valid proposals if the beginning starts with the given word. |
| protected void | addExpressionFactoryIdentifiers(ExpressionFactory
The factory for which its registered JPQL identifiers are added as
valid proposals, if they meet the checks expressionFactory)Adds the JPQL identifiers that were registered with the given |
| protected void | addExpressionFactoryIdentifiers(String
The unique identifier of the factory for which its registered JPQL
identifiers are added as valid proposals, if they meet the checks expressionFactoryId)Adds the JPQL identifiers that were registered with the |
| protected void | addFunctionIdentifier(String
The JPQL identifier to add as a valid proposal if it passes the checks identifier)Adds the given JPQL identifier as a valid proposal if its role is |
| protected void | addFunctionIdentifiers(Expression
The expression)Expression is used to determine the JPQLQueryBNF to use
when retrieving the JPQL identifiers representing a functionAdds the JPQL identifiers for which their role is |
| protected void | addFunctionIdentifiers(JPQLQueryBNF
The queryBNF)JPQLQueryBNF for which the registered JPQL identifiers will be
added as proposals if they pass the checksAdds the JPQL identifiers that are registered with the given |
| protected void | addFunctionIdentifiers(String
The unique identifier of the queryBNFId)JPQLQueryBNF for which the registered
JPQL identifiers will be added as proposals if they pass the checksAdds the JPQL identifiers that are registered with the given |
| protected void | addIdentificationVariable(String
The identification variable to add as a proposal if it passes the checks identificationVariable)Adds the given identification variable as a valid proposal. |
| protected void | addIdentificationVariables()
Adds all the identification variables defined in the current query's FROM clause. |
| protected void | addIdentificationVariables(Expression
The expression, AbstractContentAssistVisitor.Expression where the content assist was invoked, which helps to
determine how to stop adding identification variablesWhich type of identification variables to add as valid proposals typeAdds the possible identification variables as valid proposals but filter them based on the given type. |
| protected void | addIdentifier(String
The JPQL identifier to add as a proposal identifier)Adds the given identifier as a proposal if it passes the checks. |
| protected void | |
| protected void | addLeftIdentificationVariables(Expression
The expression)Expression used to determine at which declaration to stopAdds the identification variables defined in the current query's FROM clause that are
declared before the given |
| protected void | |
| protected void | addRangeIdentificationVariable(String
An identification variable that is identificationVariable)Adds the given identification variable as a proposal if it passes the checks. |
| protected void | |
| protected final void | |
| protected boolean | Returns: true if the operators are appendable; false otherwiseThe expression)Expression that found left of the cursor, which determines if
the arithmetic operators are appendable or notDetermines whether the given |
| protected boolean | Returns: true if the operators are appendable; false otherwiseThe expression)Expression that found left of the cursor, which determines if
the comparison operators are appendable or notDetermines whether the given |
| protected boolean | Returns: true if the logical identifiers are appendable; false otherwiseThe expression)Expression that found left of the cursor, which determines if
the logical operators are appendable or notDetermines whether the given |
| protected abstract AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected Filter | |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected Filter | |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected QueryPosition | Returns: The newQueryPosition that contains the position of the cursor starting from
the given Expression down to the right leafThe invalid invalidExpression, Expression Expression for which a new QueryPosition
will be calculatedThe startingPointExpression, boolean[] Expression from which the calculation of the positions will startSingle element array that will be used to store the flag indicating if a
virtual space should be added or not virtualSpace)Creates a new |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | buildFilteringMappingCollector(AbstractPathExpression expression, Resolver resolver, Filter<IMapping> filter, String pattern)
|
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected AbstractValidator. | buildJPQLQueryBNFValidator(JPQLQueryBNF
The BNF used to determine the validity of an queryBNF)ExpressionReturns the |
| protected AbstractContentAssistVisitor. | buildMappingCollector(AbstractPathExpression expression, Resolver resolver, Filter<IMapping> filter)
|
| protected Filter | |
| protected Filter | |
| protected AbstractContentAssistVisitor. | |
| protected Filter | |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| public ContentAssistProposals | Returns: The proposals that are valid choices for the given positionThe position of the cursor within the JPQL query position)Prepares this visitor by prepopulating it with the necessary data that is required to properly gather the list of proposals based on the given caret position. |
| public ContentAssistProposals | Returns: The proposals that are valid choices for the given positionThe position of the cursor within the JPQL query position, ContentAssistExtension This extension can be used to provide additional support to JPQL content assist
that is outside the scope of providing proposals related to JPA metadata. It adds support for
providing suggestions related to class names, enum constants, table names, column names extension)Prepares this visitor by prepopulating it with the necessary data that is required to properly gather the list of proposals based on the given caret position. |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| public void | |
| protected RangeVariableDeclaration | Returns: Either theRangeVariableDeclaration if the JPQL query defines it or null
if it was not definedRetrieves the |
| protected IType | getAcceptableType(Expression
The expression)Expression to visit, including its parent hierarchy until an
Expression requires a certain ITypeDetermines the root |
| protected AbstractContentAssistVisitor. | |
| protected CollectionExpression | getCollectionExpression(Expression
The expression)Expression to castCasts the given |
| protected AbstractContentAssistVisitor. | Returns: TheCollectionExpressionVisitorReturns the visitor that collects the |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected ExpressionFactory | Returns: TheExpressionFactory mapped with the given unique identifierThe unique identifier of the expressionFactoryId)ExpressionFactory to retrieveRetrieves the registered |
| protected AbstractContentAssistVisitor. | |
| protected Filter | |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected final <T> T | |
| protected IdentifierRole | Returns: The role of the given identifierThe identifier for which its role is requested identifier)Retrieves the role of the given identifier. |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected abstract JPQLGrammar | Returns: The latestJPQLGrammar supported by the providerReturns the latest supported JPQL grammar, which is required when checking the validity of a JPQL identifier. |
| protected Filter | |
| protected AbstractContentAssistVisitor. | |
| protected Filter | |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected JPQLQueryBNF | Returns: TheJPQLQueryBNF representing a section of the grammarThe unique identifier of the queryBNFId)JPQLQueryBNF to retrieveRetrieves the |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected AbstractContentAssistVisitor. | |
| protected boolean | |
| protected final boolean | Returns: true if there is a virtual space to count as a real one or notDetermines whether there is a virtual space to be considered or not. |
| protected void | |
| protected boolean | Returns: true if the given identifier is used in an aggregate expression;
false otherwiseThe identifier to validate identifier)Determines whether the given JPQL identifier used in an aggregate expression; for instance AND. |
| protected boolean | Returns: true if the JPQL identifiers with the given type can be appended to the
JPQL query; false if they cannotThe expression, AbstractContentAssistVisitor.Expression that determines what can be appendedThe type of identifiers to append to the JPQL query appendableTypeDetermines whether a certain type of JPQL identifiers can be appended to the JPQL query based
on the given |
| protected boolean | |
| protected boolean | |
| protected boolean | Returns: true if the following clauses can be appended to the JPQL query;
false if they cannotThe expression)Expression that determines what can be appendedDetermines whether the identifiers identifying clauses can be appended to the JPQL query based
on the given |
| protected boolean | isComplete(Expression
The expression)Expression to verify its grammar integrityDetermines whether the given |
| protected boolean | Returns: true if the compound identifiers can be appended to the JPQL query;
false if they cannotThe expression)Expression that determines if the JPQL identifiers with
IdentifierRole#COMPOUND_FUNCTION can be used to create a compound expressionDetermines whether the given |
| protected boolean | Returns: true if the given identifier is used in a compound expression;
false otherwiseThe identifier to validate identifier)Determines whether the given JPQL identifier used in a compound expression; an example would be BETWEEN or MEMBER. |
| protected boolean | Returns: true if the visited CollectionValuedPathExpression is owned by
a RangeVariableDeclaration, which indicates it is used to define the "root" object;
false if it is notThe expression)AbstractPathExpression to visitDetermines whether the given |
| protected boolean | isEncapsulated(Expression
The expression)Expression to scan for encapsulationDetermines whether the given |
| protected boolean | Returns: true if the path expression represents a enum constant;
false otherwiseThe expression)AbstractPathExpression to visitDetermines whether the given |
| protected boolean | Returns: true if the visited Expression is part of a collection of
expressions and an invalid expression precede it; false otherwiseThe expression)Expression to visitDetermines whether the given |
| protected boolean | Returns: true if the given identifier is a function; false otherwiseThe identifier to validate identifier)Determines whether the given JPQL identifier is a function, an example would be AVG. |
| protected boolean | Returns: true if the owning query is a subquery; false if it's the
top-level queryThe expression)Expression to visit its parent hierarchyDetermines whether the given |
| protected boolean | isInvalidExpression(Expression
The expression)Expression to visitDetermines whether the given |
| protected abstract boolean | Returns: true if the expression can have an identification variable;
false otherwiseDetermines whether a |
| protected boolean | isLocked(Expression
The expression)Expression to check if it is lockedDetermines whether the given |
| protected boolean | isNotExpression(Expression
The expression)Expression to visitDetermines whether the given |
| protected boolean | Returns: true if the given position is within the given word;
false otherwiseThe position of the cursor position, int The offset to adjust the position offset, String The word to check if the cursor is positioned in it word)Determines whether the given position is within the given word. |
| protected boolean | Returns: true if the given position is within the given word;
false otherwiseThe position of the cursor position, String The word to check if the cursor is positioned in it word)Determines whether the given position is within the given word. |
| protected boolean | Returns: true if a subquery can be appended; false otherwiseThe expression)Expression that precedes the position of the cursorDetermines whether the JPQL identifier starting a subquery ( |
| protected boolean | isValid(Expression
The expression, JPQLQueryBNF queryBNF)Expression to validate based on the query BNFDetermines whether the given |
| protected boolean | isValid(Expression
The expression, String queryBNFId)Expression to validate based on the query BNFDetermines whether the given |
| protected boolean | isValid(JPQLQueryBNF
The "root" of the BNF used to determine if the other is a descendant parentQueryBNF, JPQLQueryBNF The BNF to check if it is a descendant of the parent queryBNF)Determines whether the given |
| protected boolean | isValid(JPQLQueryBNF
The "root" of the BNF used to determine if the other is a descendant parentQueryBNF, JPQLQueryBNF The BNF to check if it is a descendant of the parent queryBNF, boolean Indicates whether a bypassCompound)JPQLQueryBNF representing a compound
expression should be considered when doing the validationDetermines whether the given |
| protected boolean | isValid(JPQLQueryBNF
The "root" of the BNF used to determine if the other is a descendant parentQueryBNF, String The unique identifier of the queryBNFId, boolean JPQLQueryBNF to check if it is a
descendant of the parentIndicates whether a bypassCompound)JPQLQueryBNF representing a compound
expression should be considered when doing the validationDetermines whether the given |
| protected boolean | Returns: true if the proposal is valid; false otherwiseThe proposal to validate proposal, String The word, which is what was parsed before the position of the cursor word)Determines whether the given proposal is a valid, which is based on the content of the given word. |
| protected boolean | Returns: true if the given identifier is part of the current JPA version or was
defined in previous release; false otherwiseThe JPQL identifier to validate 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. |
| protected boolean | isWithinInvalidExpression(Expression
The expression)Expression to verify its location within the JPQL queryDetermines whether the given |
| protected final <T> void | registerHelper(Class<T>
The Java class of the helper to retrieve helperClass, T The helper being registered helper)Registers the given helper associated with the given helper class. |
| protected final void | |
| public String | |
| public void | visit(AbsExpression
The expression)Expression to visitOverrides org. Implements org. AbsExpression expression.
|
| public void | visit(AbstractSchemaName
The expression)Expression to visitOverrides org. Implements org. AbstractSchemaName expression.
|
| public void | visit(AdditionExpression
The expression)Expression to visitOverrides org. Implements org. AdditionExpression expression.
|
| public void | visit(AllOrAnyExpression
The expression)Expression to visitOverrides org. Implements org. AllOrAnyExpression expression.
|
| public void | visit(AndExpression
The expression)Expression to visitOverrides org. Implements org. AndExpression expression.
|
| public void | visit(ArithmeticFactor
The expression)Expression to visitOverrides org. Implements org. ArithmeticFactor expression.
|
| public void | visit(AvgFunction
The expression)Expression to visitOverrides org. Implements org. AvgFunction expression.
|
| public void | visit(BadExpression
The expression)Expression to visitOverrides org. Implements org. BadExpression expression.
|
| public void | visit(BetweenExpression
The expression)Expression to visitOverrides org. Implements org. BetweenExpression expression.
|
| public void | visit(CaseExpression
The expression)Expression to visitOverrides org. Implements org. CaseExpression expression.
|
| public void | visit(CoalesceExpression
The expression)Expression to visitOverrides org. Implements org. CoalesceExpression expression.
|
| public void | visit(CollectionExpression
The expression)Expression to visitOverrides org. Implements org. CollectionExpression expression.
|
| public void | visit(CollectionMemberDeclaration
The expression)Expression to visitOverrides org. Implements org. CollectionMemberDeclaration expression.
|
| public void | visit(CollectionMemberExpression
The expression)Expression to visitOverrides org. Implements org. CollectionMemberExpression expression.
|
| public void | visit(CollectionValuedPathExpression
The expression)Expression to visitOverrides org. Implements org. CollectionValuedPathExpression expression.
|
| public void | visit(ComparisonExpression
The expression)Expression to visitOverrides org. Implements org. ComparisonExpression expression.
|
| public void | visit(ConcatExpression
The expression)Expression to visitOverrides org. Implements org. ConcatExpression expression.
|
| public void | visit(ConstructorExpression
The expression)Expression to visitOverrides org. Implements org. ConstructorExpression expression.
|
| public void | visit(CountFunction
The expression)Expression to visitOverrides org. Implements org. CountFunction expression.
|
| public void | visit(DateTime
The expression)Expression to visitOverrides org. Implements org. DateTime expression.
|
| public void | visit(DeleteClause
The expression)Expression to visitOverrides org. Implements org. DeleteClause expression.
|
| public void | visit(DeleteStatement
The expression)Expression to visitOverrides org. Implements org. DeleteStatement expression.
|
| public void | visit(DivisionExpression
The expression)Expression to visitOverrides org. Implements org. DivisionExpression expression.
|
| public void | visit(EmptyCollectionComparisonExpression
The expression)Expression to visitOverrides org. Implements org. EmptyCollectionComparisonExpression expression.
|
| public void | visit(EntityTypeLiteral
The expression)Expression to visitOverrides org. Implements org. EntityTypeLiteral expression.
|
| public void | visit(EntryExpression
The expression)Expression to visitOverrides org. Implements org. EntryExpression expression.
|
| public void | visit(ExistsExpression
The expression)Expression to visitOverrides org. Implements org. ExistsExpression expression.
|
| protected void | visit(Expression
The expression)Expression to visitOverrides org. Expression.
|
| public void | visit(FromClause
The expression)Expression to visitOverrides org. Implements org. FromClause expression.
|
| public void | visit(FunctionExpression
The expression)Expression to visitOverrides org. Implements org. FunctionExpression expression.
|
| public void | visit(GroupByClause
The expression)Expression to visitOverrides org. Implements org. GroupByClause expression.
|
| public void | visit(HavingClause
The expression)Expression to visitOverrides org. Implements org. HavingClause expression.
|
| public void | visit(IdentificationVariable
The expression)Expression to visitOverrides org. Implements org. IdentificationVariable expression.
|
| public void | visit(IdentificationVariableDeclaration
The expression)Expression to visitOverrides org. Implements org. IdentificationVariableDeclaration expression.
|
| public void | visit(IndexExpression
The expression)Expression to visitOverrides org. Implements org. IndexExpression expression.
|
| public void | visit(InExpression
The expression)Expression to visitOverrides org. Implements org. InExpression expression.
|
| public void | visit(InputParameter
The expression)Expression to visitOverrides org. Implements org. InputParameter expression.
|
| public void | visit(Join
The expression)Expression to visitOverrides org. Implements org. Join expression.
|
| public void | visit(JPQLExpression
The expression)Expression to visitOverrides org. Implements org. JPQLExpression expression.
|
| public void | visit(KeyExpression
The expression)Expression to visitOverrides org. Implements org. KeyExpression expression.
|
| public void | visit(KeywordExpression
The expression)Expression to visitOverrides org. Implements org. KeywordExpression expression.
|
| public void | visit(LengthExpression
The expression)Expression to visitOverrides org. Implements org. LengthExpression expression.
|
| public void | visit(LikeExpression
The expression)Expression to visitOverrides org. Implements org. LikeExpression expression.
|
| public void | visit(LocalExpression
The expression)Expression to visitOverrides org. Implements org. LocalExpression expression.
|
| public void | visit(LocalDateTime
The expression)Expression to visitOverrides org. Implements org. LocalDateTime expression.
|
| public void | visit(LocateExpression
The expression)Expression to visitOverrides org. Implements org. LocateExpression expression.
|
| public void | visit(LowerExpression
The expression)Expression to visitOverrides org. Implements org. LowerExpression expression.
|
| public void | visit(MathDoubleExpression.
The expressionExpression to visitOverrides org. Implements org. MathDoubleExpression. expression.
|
| public void | visit(MathDoubleExpression.
The expressionExpression to visitOverrides org. Implements org. MathDoubleExpression. expression.
|
| public void | visit(MathSingleExpression.
The expressionExpression to visitOverrides org. Implements org. MathSingleExpression. expression.
|
| public void | visit(MathSingleExpression.
The expressionExpression to visitOverrides org. Implements org. MathSingleExpression. expression.
|
| public void | visit(MathSingleExpression.
The expressionExpression to visitOverrides org. Implements org. MathSingleExpression. expression.
|
| public void | visit(MathSingleExpression.
The expressionExpression to visitOverrides org. Implements org. MathSingleExpression. expression.
|
| public void | visit(MathSingleExpression.
The expressionExpression to visitOverrides org. Implements org. MathSingleExpression. expression.
|
| public void | visit(MaxFunction
The expression)Expression to visitOverrides org. Implements org. MaxFunction expression.
|
| public void | visit(MinFunction
The expression)Expression to visitOverrides org. Implements org. MinFunction expression.
|
| public void | visit(ModExpression
The expression)Expression to visitOverrides org. Implements org. ModExpression expression.
|
| public void | visit(MultiplicationExpression
The expression)Expression to visitOverrides org. Implements org. MultiplicationExpression expression.
|
| public void | visit(NotExpression
The expression)Expression to visitOverrides org. Implements org. NotExpression expression.
|
| public void | visit(NullComparisonExpression
The expression)Expression to visitOverrides org. Implements org. NullComparisonExpression expression.
|
| public void | visit(NullExpression
The expression)Expression to visitOverrides org. Implements org. NullExpression expression.
|
| public void | visit(NullIfExpression
The expression)Expression to visitOverrides org. Implements org. NullIfExpression expression.
|
| public void | visit(NumericLiteral
The expression)Expression to visitOverrides org. Implements org. NumericLiteral expression.
|
| public void | visit(ObjectExpression
The expression)Expression to visitOverrides org. Implements org. ObjectExpression expression.
|
| public void | visit(OnClause
The expression)Expression to visitOverrides org. Implements org. OnClause expression.
|
| public void | visit(OrderByClause
The expression)Expression to visitOverrides org. Implements org. OrderByClause expression.
|
| public void | visit(OrderByItem
The expression)Expression to visitOverrides org. Implements org. OrderByItem expression.
|
| public void | visit(OrExpression
The expression)Expression to visitOverrides org. Implements org. OrExpression expression.
|
| public void | visit(RangeVariableDeclaration
The expression)Expression to visitOverrides org. Implements org. RangeVariableDeclaration expression.
|
| public void | visit(ResultVariable
The expression)Expression to visitOverrides org. Implements org. ResultVariable expression.
|
| public void | visit(SelectClause
The expression)Expression to visitOverrides org. Implements org. SelectClause expression.
|
| public void | visit(SelectStatement
The expression)Expression to visitOverrides org. Implements org. SelectStatement expression.
|
| public void | visit(SimpleFromClause
The expression)Expression to visitOverrides org. Implements org. SimpleFromClause expression.
|
| public void | visit(SimpleSelectClause
The expression)Expression to visitOverrides org. Implements org. SimpleSelectClause expression.
|
| public void | visit(SimpleSelectStatement
The expression)Expression to visitOverrides org. Implements org. SimpleSelectStatement expression.
|
| public void | visit(SizeExpression
The expression)Expression to visitOverrides org. Implements org. SizeExpression expression.
|
| public void | visit(SqrtExpression
The expression)Expression to visitOverrides org. Implements org. SqrtExpression expression.
|
| public void | visit(StateFieldPathExpression
The expression)Expression to visitOverrides org. Implements org. StateFieldPathExpression expression.
|
| public void | visit(StringLiteral
The expression)Expression to visitOverrides org. Implements org. StringLiteral expression.
|
| public void | visit(SubExpression
The expression)Expression to visitOverrides org. Implements org. SubExpression expression.
|
| public void | visit(SubstringExpression
The expression)Expression to visitOverrides org. Implements org. SubstringExpression expression.
|
| public void | visit(SubtractionExpression
The expression)Expression to visitOverrides org. Implements org. SubtractionExpression expression.
|
| public void | visit(SumFunction
The expression)Expression to visitOverrides org. Implements org. SumFunction expression.
|
| public void | visit(TreatExpression
The expression)Expression to visitOverrides org. Implements org. TreatExpression expression.
|
| public void | visit(TrimExpression
The expression)Expression to visitOverrides org. Implements org. TrimExpression expression.
|
| public void | visit(TypeExpression
The expression)Expression to visitOverrides org. Implements org. TypeExpression expression.
|
| public void | visit(UnknownExpression
The expression)UnknownExpression to visitOverrides org. Implements org. UnknownExpression expression.
|
| public void | visit(UpdateClause
The expression)UpdateClause to visitOverrides org. Implements org. UpdateClause expression.
|
| public void | visit(UpdateItem
The expression)UpdateItem to visitOverrides org. Implements org. UpdateItem expression.
|
| public void | visit(UpdateStatement
The expression)UpdateStatement to visitOverrides org. Implements org. UpdateStatement expression.
|
| public void | visit(UpperExpression
The expression)UpperExpression to visitOverrides org. Implements org. UpperExpression expression.
|
| public void | visit(ValueExpression
The expression)ValueExpression to visitOverrides org. Implements org. ValueExpression expression.
|
| public void | visit(WhenClause
The expression)WhenClause to visitOverrides org. Implements org. WhenClause expression.
|
| public void | visit(WhereClause
The expression)WhereClause to visitOverrides org. Implements org. WhereClause expression.
|
| protected void | visitAggregateFunction(AggregateFunction
The expression)AggregateFunction to inspectVisits the given |
| protected void | visitArithmeticExpression(ArithmeticExpression
The expression)ArithmeticExpression to inspectVisits the given |
| protected <T extends Expression> void | visitCollectionExpression(T
The expression, String expression being visitedThe JPQL identifier of the identifier, AbstractContentAssistVisitor.Expression being visited, if the Expression does not have an identifier, than an empty string should be passedThis helper completes the behavior of this method by retrieving the information
from the given helperExpressionAdds the possible proposals for the given |
| protected void | |
| protected void | |
| protected void | |
| protected void | visitLogicalExpression(LogicalExpression
The expression)LogicalExpression to inspectVisits the given |
| protected void | visitPathExpression(AbstractPathExpression
The expression)AbstractPathExpression to inspectVisits the given |
| protected void | visitPathExpression(AbstractPathExpression
The expression, Filter<IMapping> filter)AbstractPathExpression to inspectVisits the given |
| protected void | visitSingleEncapsulatedExpression(AbstractSingleEncapsulatedExpression
The expression, AbstractContentAssistVisitor.expression being visitedThe type of identification variables that can be added as
possible proposals identificationVariableTypeAdds the possible proposals for the given |
| protected void | visitSingleEncapsulatedExpression(AbstractSingleEncapsulatedExpression
The expression, AbstractContentAssistVisitor.expression being visitedThe type of identification variables that can be added as
possible proposals identificationVariableType,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 ( expressionIdentifiers)AllOrAnyExpressionAdds the possible proposals for the given |
| protected <T extends Expression> void | visitStatement(T expression, AbstractContentAssistVisitor.
This helper handles one clause from the given helperSELECT statementVisits the given |
| protected void | visitThirdPartyPathExpression(AbstractPathExpression
The expression, String AbstractPathExpression to inspectThe beginning of the path expression variableName)Visits the given |