|
EclipseLink 2.4.1, build 'v20121003-ad44345' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.persistence.jpa.jpql.parser.AnonymousExpressionVisitor
org.eclipse.persistence.jpa.jpql.AbstractContentAssistVisitor
public abstract class AbstractContentAssistVisitor
The abstract definition that provides support for finding the possible proposals within a JPQL query at a certain position.
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.
Field Summary | |
---|---|
protected JPQLQueryContext |
context
The context used to query information about the JPQL query. |
protected java.util.Stack<java.lang.Integer> |
corrections
This is used to change the position of the cursor in order to add possible proposals |
protected 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. |
protected 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. |
protected 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. |
protected DefaultContentAssistProposals |
proposals
The set of possible proposals gathered based on the position in the query. |
protected QueryPosition |
queryPosition
Contains the position of the cursor within the parsed Expression . |
protected static int |
SPACE_LENGTH
A constant for the length of a whitespace, which is 1. |
protected 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. |
protected java.lang.String |
word
The current word, which was retrieved from the JPQL based on the position of the cursor. |
protected WordParser |
wordParser
This is used to retrieve words from the actual JPQL query. |
Constructor Summary | |
---|---|
protected |
AbstractContentAssistVisitor(JPQLQueryContext context)
Creates a new AbstractContentAssistVisitor . |
Method Summary | ||
---|---|---|
protected void |
addAggregate(java.lang.String identifier)
Adds the given JPQL identifier as a valid proposal if its role is IdentifierRole.AGGREGATE
and the beginning starts with the current word. |
|
protected void |
addAllAggregates(JPQLQueryBNF queryBNF)
Adds the JPQL identifiers that are registered with the given JPQLQueryBNF as valid
proposals if their role is IdentifierRole.AGGREGATE and the beginning starts with the
current word. |
|
protected void |
addAllAggregates(java.lang.String queryBNFId)
Adds the JPQL identifiers that are registered with the given JPQLQueryBNF as valid
proposals if their role is IdentifierRole.AGGREGATE and the beginning starts with the
current word. |
|
protected void |
addAllArithmeticIdentifiers()
|
|
protected void |
addAllClauses(JPQLQueryBNF queryBNF)
Adds the JPQL identifiers that are registered with the given JPQLQueryBNF as valid
proposals if their role is IdentifierRole.CLAUSE and the beginning starts with the
current word. |
|
protected void |
addAllClauses(java.lang.String queryBNF)
Adds the JPQL identifiers that are registered with the given JPQLQueryBNF as valid
proposals if their role is IdentifierRole.CLAUSE and the beginning starts with the
current word. |
|
protected void |
addAllComparisonIdentifiers()
|
|
protected void |
addAllCompounds(JPQLQueryBNF queryBNF)
Adds the JPQL identifiers that are registered with the given JPQLQueryBNF as valid
proposals if their role is IdentifierRole.COMPOUND_FUNCTION and the beginning starts
with the current word. |
|
protected void |
addAllCompounds(java.lang.String queryBNFId)
Adds the JPQL identifiers that are registered with the given JPQLQueryBNF as valid
proposals if their role is IdentifierRole.COMPOUND_FUNCTION and the beginning starts
with the current word. |
|
protected void |
addAllExpressionFactoryIdentifiers(ExpressionFactory expressionFactory)
|
|
protected void |
addAllExpressionFactoryIdentifiers(java.lang.String expressionFactoryId)
|
|
protected void |
addAllFunctions(JPQLQueryBNF queryBNF)
Adds the JPQL identifiers that are registered with the given JPQLQueryBNF as valid
proposals if their role is IdentifierRole.FUNCTION and the beginning starts with the
current word. |
|
protected void |
addAllFunctions(JPQLQueryBNF queryBNF,
int position)
Adds the JPQL identifiers that are registered with the given JPQLQueryBNF as valid
proposals if their role is IdentifierRole.FUNCTION and the beginning starts with the
current word. |
|
protected void |
addAllFunctions(java.lang.String queryBNFId)
Adds the JPQL identifiers that are registered with the given JPQLQueryBNF as valid
proposals if their role is IdentifierRole.FUNCTION and the beginning starts with the
current word. |
|
protected void |
addAllFunctions(java.lang.String queryBNFId,
int position)
Adds the JPQL identifiers that are registered with the given JPQLQueryBNF as valid
proposals if their role is IdentifierRole.FUNCTION and the beginning starts with the
current word. |
|
protected void |
addAllIdentificationVariables()
Adds all the identification variables defined in the current query's FROM clause. |
|
protected void |
addAllIdentifiers(JPQLQueryBNF queryBNF)
Adds the JPQL identifiers that are registered with the given JPQLQueryBNF as valid
proposals if the beginning starts with the current word. |
|
protected void |
addAllIdentifiers(java.lang.String queryBNFId)
Adds the unique identifier of the JPQL identifiers that are registered with the given JPQLQueryBNF as valid proposals if the beginning starts with the current word. |
|
protected void |
addAllLogicIdentifiers()
|
|
protected void |
addAllResultVariables()
Adds the result variables defined in the SELECT clause as valid proposals. |
|
protected void |
addClause(java.lang.String identifier)
Adds the given JPQL identifier as a valid proposal if its role is IdentifierRole.CLAUSE
and the beginning starts with the current word. |
|
protected void |
addCompound(java.lang.String identifier)
Adds the given JPQL identifier as a valid proposal if its role is IdentifierRole.COMPOUND_FUNCTION
and the beginning starts with the current word. |
|
protected void |
addEntities()
Adds the abstract schema types as possible content assist proposals but will be filtered using the current word. |
|
protected void |
addEntities(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 . |
|
protected void |
addFunction(java.lang.String identifier,
int position)
Adds the given JPQL identifier as a valid proposal if its role is IdentifierRole.FUNCTION
and the beginning starts with the current word. |
|
protected void |
addIdentificationVariable(java.lang.String identificationVariable)
Adds the given identification variable as a valid proposal. |
|
protected void |
addIdentificationVariables(AbstractContentAssistVisitor.IdentificationVariableType type,
Expression expression)
Adds the possible identifier variables as valid proposals but filter them based on the given type. |
|
protected void |
addIdentifier(java.lang.String identifier)
Adds the given identifier as a proposal if it passes the checks. |
|
protected void |
addIdentifier(java.lang.String identifier,
int position)
Adds the given identifier as a proposal. |
|
protected boolean |
addIdentifier(java.lang.String identifier,
int position,
java.lang.String partialEnding,
int endIndex)
Adds the given identifier as a proposal. |
|
protected void |
addIdentifier(java.lang.String identifier,
java.lang.String word)
Adds the given proposal as a proposal if it passes the checks. |
|
protected void |
addJoinIdentifiers()
Adds the join specification identifiers as proposals without validation. |
|
protected void |
addLeftIdentificationVariables(Expression expression)
Adds the identification variables defined in the current query's FROM clause that are declared before the given Expression . |
|
protected void |
addRangeIdentificationVariable(java.lang.String identificationVariable)
Adds the given identification variable as a proposal if it passes the checks. |
|
protected void |
addScalarExpressionProposals()
Adds the proposals that are valid for a scalar expression. |
|
protected void |
addSelectExpressionProposals(AbstractSelectClause expression,
int length)
|
|
protected boolean |
addSelectExpressionProposals(Expression expression,
java.lang.String queryBNFId,
int length,
int index,
boolean last)
|
|
protected boolean |
areArithmeticSymbolsAppendable(Expression expression)
|
|
protected boolean |
areComparisonSymbolsAppendable(Expression expression)
|
|
protected boolean |
areLogicSymbolsAppendable(Expression expression)
|
|
protected AbstractContentAssistVisitor.AcceptableTypeVisitor |
buildAcceptableTypeVisitor()
|
|
protected AbstractContentAssistVisitor.AppendableExpressionVisitor |
buildAppendableExpressionVisitor()
|
|
protected AbstractContentAssistVisitor.CollectionExpressionVisitor |
buildCollectionExpressionVisitor()
Creates a visitor that collects the CollectionExpression if it's been visited. |
|
protected AbstractContentAssistVisitor.CollectionMappingFilter |
buildCollectionMappingFilter()
|
|
protected AbstractContentAssistVisitor.CompoundExpressionHelper |
buildCompoundExpressionHelper()
|
|
protected AbstractContentAssistVisitor.ConditionalExpressionCompletenessVisitor |
buildConditionalExpressionCompletenessVisitor()
|
|
protected AbstractContentAssistVisitor.ConstrutorCollectionHelper |
buildConstrutorCollectionHelper()
|
|
protected AbstractContentAssistVisitor.DefaultMappingCollector |
buildDefaultMappingCollector()
|
|
protected AbstractContentAssistVisitor.DeleteClauseHelper |
buildDeleteClauseHelper()
|
|
protected AbstractContentAssistVisitor.DoubleEncapsulatedCollectionHelper |
buildDoubleEncapsulatedCollectionHelper()
|
|
protected AbstractContentAssistVisitor.FilteringMappingCollector |
buildFilteringMappingCollector(AbstractPathExpression expression,
Resolver resolver,
Filter<IMapping> filter,
java.lang.String pattern)
|
|
protected AbstractContentAssistVisitor.FromClauseCollectionHelper |
buildFromClauseCollectionHelper()
|
|
protected AbstractContentAssistVisitor.FromClauseHelper |
buildFromClauseHelper()
|
|
protected AbstractContentAssistVisitor.FromClauseSelectStatementHelper |
buildFromClauseSelectStatementHelper()
|
|
protected AbstractContentAssistVisitor.GroupByClauseCollectionHelper |
buildGroupByClauseCollectionHelper()
|
|
protected AbstractContentAssistVisitor.GroupByClauseSelectStatementHelper |
buildGroupByClauseSelectStatementHelper()
|
|
protected AbstractContentAssistVisitor.HavingClauseHelper |
buildHavingClauseHelper()
|
|
protected AbstractContentAssistVisitor.HavingClauseSelectStatementHelper |
buildHavingClauseSelectStatementHelper()
|
|
protected AbstractContentAssistVisitor.IncompleteCollectionExpressionVisitor |
buildIncompleteCollectionExpressionVisitor()
|
|
protected AbstractContentAssistVisitor.JoinCollectionHelper |
buildJoinCollectionHelper()
|
|
protected AbstractValidator.JPQLQueryBNFValidator |
buildJPQLQueryBNFValidator(JPQLQueryBNF queryBNF)
Returns the AbstractValidator.JPQLQueryBNFValidator that can be used to validate an Expression
by making sure its BNF is part of the given BNF. |
|
protected AbstractValidator.JPQLQueryBNFValidator |
buildJPQLQueryBNFValidator(java.lang.String queryBNFId)
Returns the AbstractValidator.JPQLQueryBNFValidator that can be used to validate an Expression
by making sure its BNF is part of the given BNF. |
|
protected AbstractContentAssistVisitor.MappingCollector |
buildMappingCollector(AbstractPathExpression expression,
Resolver resolver,
Filter<IMapping> filter)
|
|
protected Filter<IMapping> |
buildMappingFilter(AbstractPathExpression expression,
Filter<IMapping> filter)
|
|
protected Filter<IMapping> |
buildMappingFilter(Expression expression)
|
|
protected AbstractContentAssistVisitor.MappingFilterBuilder |
buildMappingFilterBuilder()
|
|
protected AbstractContentAssistVisitor.NullExpressionVisitor |
buildNullExpressionVisitor()
Creates a visitor that collects the NullExpression if it's been visited. |
|
protected AbstractContentAssistVisitor.OrderByClauseCollectionHelper |
buildOrderByClauseCollectionHelper()
|
|
protected AbstractContentAssistVisitor.OrderByClauseSelectStatementHelper |
buildOrderByClauseSelectStatementHelper()
|
|
protected AbstractContentAssistVisitor.PropertyMappingFilter |
buildPropertyMappingFilter()
|
|
ContentAssistProposals |
buildProposals(int 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. |
|
protected AbstractContentAssistVisitor.RangeVariableDeclarationVisitor |
buildRangeVariableDeclarationVisitor()
|
|
protected AbstractContentAssistVisitor.ResultVariableVisitor |
buildResultVariableVisitor()
|
|
protected AbstractContentAssistVisitor.SelectClauseCompletenessVisitor |
buildSelectClauseCompleteness()
|
|
protected AbstractContentAssistVisitor.SelectClauseSelectStatementHelper |
buildSelectClauseSelectStatementHelper()
|
|
protected AbstractContentAssistVisitor.SimpleFromClauseSelectStatementHelper |
buildSimpleFromClauseSelectStatementHelper()
|
|
protected AbstractContentAssistVisitor.SimpleGroupByClauseSelectStatementHelper |
buildSimpleGroupByClauseSelectStatementHelper()
|
|
protected AbstractContentAssistVisitor.SimpleHavingClauseSelectStatementHelper |
buildSimpleHavingClauseSelectStatementHelper()
|
|
protected AbstractContentAssistVisitor.SimpleSelectClauseSelectStatementHelper |
buildSimpleSelectClauseSelectStatementHelper()
|
|
protected AbstractContentAssistVisitor.SimpleWhereClauseSelectStatementHelper |
buildSimpleWhereClauseSelectStatementHelper()
|
|
protected AbstractContentAssistVisitor.SubqueryVisitor |
buildSubqueryVisitor()
|
|
protected AbstractContentAssistVisitor.TrailingCompletenessVisitor |
buildTrailingCompleteness()
|
|
protected AbstractContentAssistVisitor.TripleEncapsulatedCollectionHelper |
buildTripleEncapsulatedCollectionHelper()
|
|
protected AbstractContentAssistVisitor.UpdateItemCollectionHelper |
buildUpdateItemCollectionHelper()
|
|
protected AbstractContentAssistVisitor.VisitParentVisitor |
buildVisitParentVisitor()
|
|
protected AbstractContentAssistVisitor.WhereClauseHelper |
buildWhereClauseHelper()
|
|
protected AbstractContentAssistVisitor.WhereClauseSelectStatementHelper |
buildWhereClauseSelectStatementHelper()
|
|
protected AbstractContentAssistVisitor.SelectStatementHelper<AbstractSelectStatement,Expression> |
cast(AbstractContentAssistVisitor.SelectStatementHelper<? extends AbstractSelectStatement,? extends Expression> helper)
|
|
void |
dispose()
Disposes this visitor. |
|
protected IterableIterator<IEntity> |
entities()
Returns the collection of possible abstract schema types. |
|
protected int |
findExpressionPosition(CollectionExpression expression)
|
|
protected RangeVariableDeclaration |
findRangeVariableDeclaration(UpdateClause expression)
|
|
protected IType |
getAcceptableType(Expression expression)
Determines the root IType that any type should be assignable. |
|
protected AbstractContentAssistVisitor.AppendableExpressionVisitor |
getAppendableExpressionVisitor()
|
|
protected CollectionExpression |
getCollectionExpression(Expression expression)
Casts the given Expression to a CollectionExpression if it is actually an
object of that type. |
|
protected AbstractContentAssistVisitor.CollectionExpressionVisitor |
getCollectionExpressionVisitor()
Returns the visitor that collects the CollectionExpression if it's been visited. |
|
protected AbstractContentAssistVisitor.CompletenessVisitor |
getCompletenessVisitor()
|
|
protected AbstractContentAssistVisitor.CompoundExpressionHelper |
getCompoundExpressionHelper()
|
|
protected AbstractContentAssistVisitor.CompletenessVisitor |
getConditionalExpressionCompletenessVisitor()
|
|
protected AbstractContentAssistVisitor.ConstrutorCollectionHelper |
getConstructorCollectionHelper()
|
|
protected java.util.Stack<java.lang.Integer> |
getCorrections()
Returns |
|
protected AbstractContentAssistVisitor.MappingCollector |
getDefaultMappingCollector()
|
|
protected AbstractContentAssistVisitor.ClauseHelper<DeleteClause> |
getDeleteClauseHelper()
|
|
protected AbstractContentAssistVisitor.DoubleEncapsulatedCollectionHelper |
getDoubleEncapsulatedCollectionHelper()
|
|
protected IEmbeddable |
getEmbeddable(IType type)
Retrieves the IEmbeddable for the given IType if one exists. |
|
protected IEntity |
getEntity(IType type)
Retrieves the IEntity for the given IType if one exists. |
|
protected IEntity |
getEntityNamed(java.lang.String entityName)
Retrieves the entity with the given abstract schema name, which can also be the entity class name. |
|
protected ExpressionFactory |
getExpressionFactory(java.lang.String expressionFactoryId)
Retrieves the registered ExpressionFactory that was registered for the given unique identifier. |
|
protected ExpressionRegistry |
getExpressionRegistry()
Returns the registry containing the JPQLQueryBNFs and the ExpressionFactories that are used
to properly parse a JPQL query. |
|
protected AbstractContentAssistVisitor.AcceptableTypeVisitor |
getExpressionTypeVisitor()
|
|
protected AbstractContentAssistVisitor.FromClauseCollectionHelper |
getFromClauseCollectionHelper()
|
|
protected AbstractContentAssistVisitor.ClauseHelper<AbstractFromClause> |
getFromClauseHelper()
|
|
protected AbstractContentAssistVisitor.FromClauseSelectStatementHelper |
getFromClauseSelectStatementHelper()
|
|
protected JPQLGrammar |
getGrammar()
Returns the JPQL grammar that will be used to define how to parse a JPQL query. |
|
protected AbstractContentAssistVisitor.GroupByClauseCollectionHelper |
getGroupByClauseCollectionHelper()
|
|
protected AbstractContentAssistVisitor.GroupByClauseSelectStatementHelper |
getGroupByClauseSelectStatementHelper()
|
|
protected AbstractContentAssistVisitor.ClauseHelper<HavingClause> |
getHavingClauseHelper()
|
|
protected AbstractContentAssistVisitor.HavingClauseSelectStatementHelper |
getHavingClauseSelectStatementHelper()
|
|
protected
|
getHelper(java.lang.Class<T> helperClass)
Retrieves the helper associated with the given helper class. |
|
protected IdentifierRole |
getIdentifierRole(java.lang.String identifier)
Retrieves the role of the given identifier. |
|
protected JPAVersion |
getIdentifierVersion(java.lang.String identifier)
Retrieves the JPA version in which the identifier was first introduced. |
|
protected AbstractContentAssistVisitor.CompletenessVisitor |
getIncompleteCollectionExpressionVisitor()
|
|
protected AbstractContentAssistVisitor.JoinCollectionHelper |
getJoinCollectionHelper()
|
|
protected JPAVersion |
getJPAVersion()
Returns the version of the Java Persistence this entity for which it was defined. |
|
protected JPQLExpression |
getJPQLExpression()
Returns the parsed tree representation of the JPQL query. |
|
protected IManagedType |
getManagedType(IType type)
Retrieves the entity for the given type. |
|
protected IMappedSuperclass |
getMappedSuperclass(IType type)
Retrieves the IMappedSuperclass for the given IType if one exists. |
|
protected IMapping |
getMapping(Expression expression)
Returns the IMapping for the field represented by the given Expression . |
|
protected Filter<IMapping> |
getMappingCollectionFilter()
|
|
protected AbstractContentAssistVisitor.MappingFilterBuilder |
getMappingFilterBuilder()
|
|
protected Filter<IMapping> |
getMappingPropertyFilter()
|
|
protected AbstractContentAssistVisitor.NullExpressionVisitor |
getNullExpressionVisitor()
Returns the visitor that collects the NullExpression if it's been visited. |
|
protected AbstractContentAssistVisitor.OrderByClauseCollectionHelper |
getOrderByClauseCollectionHelper()
|
|
protected AbstractContentAssistVisitor.OrderByClauseSelectStatementHelper |
getOrderByClauseSelectStatementHelper()
|
|
protected int |
getPosition(Expression expression)
Returns the position of the Expression within the parsed tree representation of the
JPQL query. |
|
DefaultContentAssistProposals |
getProposals()
Returns the object that contains the valid proposals based on the position of the cursor within the JPQL query. |
|
protected IManagedTypeProvider |
getProvider()
Retrieves the provider of managed types. |
|
protected IQuery |
getQuery()
Returns the external form of the JPQL query. |
|
protected JPQLQueryBNF |
getQueryBNF(java.lang.String queryBNFId)
Retrieves the BNF object that was registered for the given unique identifier. |
|
protected JPQLQueryContext |
getQueryContext()
Returns the JPQLQueryContext that is used by this visitor. |
|
protected java.lang.String |
getQueryExpression()
Returns the string representation of the JPQL query. |
|
protected AbstractContentAssistVisitor.RangeVariableDeclarationVisitor |
getRangeVariableDeclarationVisitor()
|
|
protected Resolver |
getResolver(Expression expression)
Creates or retrieved the cached Resolver for the given Expression . |
|
protected AbstractContentAssistVisitor.ResultVariableVisitor |
getResultVariableVisitor()
|
|
protected AbstractContentAssistVisitor.CompletenessVisitor |
getSelectClauseCompletenessVisitor()
|
|
protected AbstractContentAssistVisitor.SelectClauseSelectStatementHelper |
getSelectClauseSelectStatementHelper()
|
|
protected AbstractContentAssistVisitor.SimpleFromClauseSelectStatementHelper |
getSimpleFromClauseSelectStatementHelper()
|
|
protected AbstractContentAssistVisitor.SimpleGroupByClauseSelectStatementHelper |
getSimpleGroupByClauseSelectStatementHelper()
|
|
protected AbstractContentAssistVisitor.SimpleHavingClauseSelectStatementHelper |
getSimpleHavingClauseSelectStatementHelper()
|
|
protected AbstractContentAssistVisitor.SimpleSelectClauseSelectStatementHelper |
getSimpleSelectClauseSelectStatementHelper()
|
|
protected AbstractContentAssistVisitor.SimpleWhereClauseSelectStatementHelper |
getSimpleWhereClauseSelectStatementHelper()
|
|
protected AbstractContentAssistVisitor.SubqueryVisitor |
getSubqueryVisitor()
|
|
protected AbstractContentAssistVisitor.TripleEncapsulatedCollectionHelper |
getTripleEncapsulatedCollectionHelper()
|
|
protected IType |
getType(java.lang.Class<?> type)
Retrieves the external type for the given Java type. |
|
protected IType |
getType(Expression expression)
Returns the IType of the given Expression . |
|
protected IType |
getType(java.lang.String typeName)
Retrieves the external class for the given fully qualified class name. |
|
protected ITypeDeclaration |
getTypeDeclaration(Expression expression)
Returns the ITypeDeclaration of the field handled by this Resolver . |
|
protected TypeHelper |
getTypeHelper()
Returns a helper that gives access to the most common types . |
|
protected ITypeRepository |
getTypeRepository()
Returns the type repository for the application. |
|
protected AbstractContentAssistVisitor.UpdateItemCollectionHelper |
getUpdateItemCollectionHelper()
|
|
protected void |
initialize()
Initializes this visitor. |
|
protected boolean |
isAggregate(java.lang.String identifier)
Determines whether the given JPQL identifier used in an aggregate expression; for instance AND. |
|
protected boolean |
isAppendable(Expression expression)
|
|
protected boolean |
isAppendableToCollection(Expression expression)
|
|
protected boolean |
isClause(java.lang.String identifier)
Determines whether the given JPQL identifier used in a clause; for instance SELECT. |
|
protected boolean |
isComplete(Expression expression)
|
|
protected boolean |
isCompoundable(Expression expression)
|
|
protected boolean |
isCompoundFunction(java.lang.String identifier)
Determines whether the given JPQL identifier used in a compound expression; an example would be BETWEEN or MEMBER. |
|
protected boolean |
isConditionalExpressionComplete(Expression expression)
|
|
protected boolean |
isFunction(java.lang.String identifier)
Determines whether the given JPQL identifier is a function, an example would be AVG. |
|
protected boolean |
isGroupByComplete(Expression expression)
|
|
protected boolean |
isInSubquery(Expression expression)
Determines whether the given Expression is in a subquery or in the top-level query. |
|
protected abstract boolean |
isJoinFetchIdentifiable()
Determines whether a JOIN FETCH expression can be identified by with an
identification variable or not. |
|
protected boolean |
isLocked(Expression expression)
Determines whether the given Expression has been set has the lock to prevent an
infinite recursion. |
|
protected boolean |
isNull(Expression expression)
Determines whether the given Expression is the NullExpression . |
|
protected boolean |
isPositionWithin(int position,
int offset,
java.lang.String word)
Determines whether the given position is within the given word. |
|
protected boolean |
isPositionWithin(int position,
java.lang.String word)
Determines whether the given position is within the given word. |
|
protected boolean |
isPreviousClauseComplete(AbstractSelectStatement expression,
AbstractContentAssistVisitor.SelectStatementHelper<AbstractSelectStatement,Expression> helper)
|
|
protected boolean |
isResultVariable(Expression expression)
|
|
protected boolean |
isSelectExpressionComplete(Expression expression)
|
|
protected boolean |
isValid(Expression expression,
JPQLQueryBNF queryBNF)
Determines whether the given Expression part is an expression of the given query BNF. |
|
protected boolean |
isValid(Expression expression,
java.lang.String queryBNFId)
Determines whether the given Expression part is an expression of the given query BNF. |
|
protected 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. |
|
protected 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. |
|
protected int |
length(Expression expression)
Returns the length of the string representation for the given Expression . |
|
void |
prepare(QueryPosition queryPosition)
Prepares this visitor by pre-populating it with the necessary data that is required to properly gather the list of proposals based on the caret position. |
|
protected
|
registerHelper(java.lang.Class<T> helperClass,
T helper)
Registers the given helper associated with the given helper class. |
|
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(FunctionExpression expression)
Visits the FunctionExpression 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(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. |
|
protected void |
visitAggregateFunction(AggregateFunction expression)
|
|
protected void |
visitArithmeticExpression(ArithmeticExpression expression)
|
|
protected
|
visitClause(T expression,
java.lang.String identifier,
boolean hasSpaceAfterIdentifier,
AbstractContentAssistVisitor.ClauseHelper<T> helper)
|
|
protected
|
visitCollectionExpression(T expression,
java.lang.String identifier,
AbstractContentAssistVisitor.CollectionExpressionHelper<T> helper)
Adds the possible proposals for the given expression based on the location of
the cursor and the content of the expression. |
|
protected void |
visitCompoundableExpression(AbstractConditionalClause expression)
|
|
protected void |
visitCompoundableExpression(AbstractContentAssistVisitor.CompoundExpressionHelper helper,
int position,
int length)
|
|
protected void |
visitDeleteStatement(DeleteStatement expression)
|
|
protected 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. |
|
protected void |
visitLogicalExpression(LogicalExpression expression,
java.lang.String identifier)
|
|
protected AbstractContentAssistVisitor.VisitParentVisitor |
visitParentVisitor()
|
|
protected void |
visitPathExpression(AbstractPathExpression expression)
|
|
protected void |
visitPathExpression(AbstractPathExpression expression,
Filter<IMapping> helper)
|
|
protected void |
visitSelectClause(AbstractSelectClause expression)
|
|
protected void |
visitSelectStatement(AbstractSelectStatement expression,
AbstractContentAssistVisitor.SelectStatementHelper<? extends AbstractSelectStatement,? extends Expression> helper)
|
|
protected AbstractContentAssistVisitor.SelectStatementHelper<? extends AbstractSelectStatement,? extends Expression> |
visitSelectStatement(AbstractSelectStatement expression,
int position,
int[] length,
AbstractContentAssistVisitor.SelectStatementHelper<AbstractSelectStatement,Expression> helper)
|
|
protected void |
visitSingleEncapsulatedExpression(AbstractSingleEncapsulatedExpression expression,
AbstractContentAssistVisitor.IdentificationVariableType identificationVariableType)
Adds the possible proposals for the given expression
based on the location of the cursor and the content of the expression. |
|
protected void |
visitSingleEncapsulatedExpression(AbstractSingleEncapsulatedExpression expression,
AbstractContentAssistVisitor.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. |
|
protected void |
visitUpdateStatement(UpdateStatement expression)
|
|
protected AbstractContentAssistVisitor.ClauseHelper<WhereClause> |
whereClauseHelper()
|
|
protected AbstractContentAssistVisitor.WhereClauseSelectStatementHelper |
whereClauseSelectStatementHelper()
|
Methods inherited from class org.eclipse.persistence.jpa.jpql.parser.AnonymousExpressionVisitor |
---|
visit |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final JPQLQueryContext context
protected java.util.Stack<java.lang.Integer> corrections
protected java.util.Map<java.lang.Class<?>,java.lang.Object> helpers
protected java.util.Stack<Expression> lockedExpressions
protected java.util.Stack<java.lang.Integer> positionInCollections
protected DefaultContentAssistProposals proposals
protected QueryPosition queryPosition
Expression
.
protected java.util.Stack<java.lang.Integer> virtualSpaces
protected java.lang.String word
protected WordParser wordParser
protected static final int SPACE_LENGTH
Constructor Detail |
---|
protected AbstractContentAssistVisitor(JPQLQueryContext context)
AbstractContentAssistVisitor
.
context
- The context used to query information about the JPQL query
java.lang.NullPointerException
- The JPQLQueryContext
cannot be null
Method Detail |
---|
protected void addAggregate(java.lang.String identifier)
IdentifierRole.AGGREGATE
and the beginning starts with the current word.
identifier
- The JPQL identifier to add as a valid proposal if it passes the checksprotected void addAllAggregates(JPQLQueryBNF queryBNF)
JPQLQueryBNF
as valid
proposals if their role is IdentifierRole.AGGREGATE
and the beginning starts with the
current word.
queryBNF
- The JPQLQueryBNF
for which the registered JPQL identifiers will be
added as proposals if they pass the checksprotected void addAllAggregates(java.lang.String queryBNFId)
JPQLQueryBNF
as valid
proposals if their role is IdentifierRole.AGGREGATE
and the beginning starts with the
current word.
queryBNFId
- The unique of the JPQLQueryBNF
for which the registered JPQL
identifiers will be
added as proposals if they pass the checksprotected void addAllArithmeticIdentifiers()
protected void addAllClauses(JPQLQueryBNF queryBNF)
JPQLQueryBNF
as valid
proposals if their role is IdentifierRole.CLAUSE
and the beginning starts with the
current word.
queryBNF
- The JPQLQueryBNF
for which the registered JPQL identifiers will be
added as proposals if they pass the checksprotected void addAllClauses(java.lang.String queryBNF)
JPQLQueryBNF
as valid
proposals if their role is IdentifierRole.CLAUSE
and the beginning starts with the
current word.
queryBNF
- The unique identifier of the JPQLQueryBNF
for which the registered
JPQL identifiers will be
added as proposals if they pass the checksprotected void addAllComparisonIdentifiers()
protected void addAllCompounds(JPQLQueryBNF queryBNF)
JPQLQueryBNF
as valid
proposals if their role is IdentifierRole.COMPOUND_FUNCTION
and the beginning starts
with the current word.
queryBNF
- The JPQLQueryBNF
for which the registered JPQL identifiers will be
added as proposals if they pass the checksprotected void addAllCompounds(java.lang.String queryBNFId)
JPQLQueryBNF
as valid
proposals if their role is IdentifierRole.COMPOUND_FUNCTION
and the beginning starts
with the current word.
queryBNFId
- The unique identifier of the JPQLQueryBNF
for which the registered
JPQL identifiers will be
added as proposals if they pass the checksprotected void addAllExpressionFactoryIdentifiers(ExpressionFactory expressionFactory)
protected void addAllExpressionFactoryIdentifiers(java.lang.String expressionFactoryId)
protected void addAllFunctions(JPQLQueryBNF queryBNF)
JPQLQueryBNF
as valid
proposals if their role is IdentifierRole.FUNCTION
and the beginning starts with the
current word.
queryBNF
- The JPQLQueryBNF
for which the registered JPQL identifiers will be
added as proposals if they pass the checksprotected void addAllFunctions(JPQLQueryBNF queryBNF, int position)
JPQLQueryBNF
as valid
proposals if their role is IdentifierRole.FUNCTION
and the beginning starts with the
current word.
position
- The position of the cursor to use for determining if the given JPQL identifier
is a valid proposalqueryBNF
- The JPQLQueryBNF
for which the registered JPQL identifiers will be
added as proposals if they pass the checksprotected void addAllFunctions(java.lang.String queryBNFId)
JPQLQueryBNF
as valid
proposals if their role is IdentifierRole.FUNCTION
and the beginning starts with the
current word.
queryBNFId
- The unique identifier of the JPQLQueryBNF
for which the registered
JPQL identifiers will be
added as proposals if they pass the checksprotected void addAllFunctions(java.lang.String queryBNFId, int position)
JPQLQueryBNF
as valid
proposals if their role is IdentifierRole.FUNCTION
and the beginning starts with the
current word.
queryBNFId
- The unique identifier of the JPQLQueryBNF
for which the registered
JPQL identifiers will bequeryBNF
- The JPQLQueryBNF
for which the registered JPQL identifiers will be
added as proposals if they pass the checksprotected void addAllIdentificationVariables()
protected void addAllIdentifiers(JPQLQueryBNF queryBNF)
JPQLQueryBNF
as valid
proposals if the beginning starts with the current word.
queryBNF
- The JPQLQueryBNF
for which the registered JPQL identifiers will be
added as proposals if they pass the checksprotected void addAllIdentifiers(java.lang.String queryBNFId)
JPQLQueryBNF
as valid proposals if the beginning starts with the current word.
queryBNFId
- The unique identifier of the JPQLQueryBNF
for which the registered
JPQL identifiers will be added as proposals if they pass the checksprotected void addAllLogicIdentifiers()
protected void addAllResultVariables()
SELECT
clause as valid proposals.
protected void addClause(java.lang.String identifier)
IdentifierRole.CLAUSE
and the beginning starts with the current word.
identifier
- The JPQL identifier to add as a valid proposal if it passes the checksprotected void addCompound(java.lang.String identifier)
IdentifierRole.COMPOUND_FUNCTION
and the beginning starts with the current word.
identifier
- The JPQL identifier to add as a valid proposal if it passes the checksprotected void addEntities()
protected void addEntities(IType type)
IType
.
type
- The IType
used to filter the abstract schema typesprotected void addFunction(java.lang.String identifier, int position)
IdentifierRole.FUNCTION
and the beginning starts with the current word.
position
- The position of the cursor to use for determining if the given JPQL identifier
is a valid proposalidentifier
- The JPQL identifier to add as a valid proposal if it passes the checksprotected void addIdentificationVariable(java.lang.String identificationVariable)
identificationVariable
- The identification variable to add as a proposal if it passes
the checksprotected void addIdentificationVariables(AbstractContentAssistVisitor.IdentificationVariableType type, Expression expression)
For instance, if the type is AbstractContentAssistVisitor.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 variableprotected void addIdentifier(java.lang.String identifier)
identifier
- The JPQL identifier to add as a proposalprotected void addIdentifier(java.lang.String identifier, int position)
IS NOT
already defined, that means
IS NOT EMPTY, IS NOT NULL will be filtered out. The only valid proposals in this
case is EMPTY and NULL.
identifier
- The JPQL identifier to add as a proposalposition
- The position of the cursor to use for determining if the given JPQL identifier
is a valid proposalprotected boolean addIdentifier(java.lang.String identifier, int position, java.lang.String partialEnding, int endIndex)
IS NOT
already defined, that means
IS NOT EMPTY, IS NOT NULL will be filtered out. The only valid proposals in this
case is EMPTY and NULL.
identifier
- The JPQL identifier to add as a proposalposition
- The position of the cursor to use for determining if the given JPQL identifier
is a valid proposalpartialEnding
- The possible characters that could be identifiers and might be part of
a JPQL identifier with more than one wordendIndex
- The position used to stop matching the partial ending with what is found
before the position of the cursor
true
if the given JPQL identifier was added as a proposal; false
otherwiseprotected void addIdentifier(java.lang.String identifier, java.lang.String word)
identifier
- The JPQL identifier to add as a proposalword
- The string used to determine if the identifier starts with itprotected void addJoinIdentifiers()
protected void addLeftIdentificationVariables(Expression expression)
Expression
.
expression
- The Expression
used to determine at which declaration to stopprotected void addRangeIdentificationVariable(java.lang.String identificationVariable)
protected void addScalarExpressionProposals()
protected void addSelectExpressionProposals(AbstractSelectClause expression, int length)
protected boolean addSelectExpressionProposals(Expression expression, java.lang.String queryBNFId, int length, int index, boolean last)
protected boolean areArithmeticSymbolsAppendable(Expression expression)
protected boolean areComparisonSymbolsAppendable(Expression expression)
protected boolean areLogicSymbolsAppendable(Expression expression)
protected AbstractContentAssistVisitor.AcceptableTypeVisitor buildAcceptableTypeVisitor()
protected AbstractContentAssistVisitor.AppendableExpressionVisitor buildAppendableExpressionVisitor()
protected AbstractContentAssistVisitor.CollectionExpressionVisitor buildCollectionExpressionVisitor()
CollectionExpression
if it's been visited.
AbstractContentAssistVisitor.CollectionExpressionVisitor
protected AbstractContentAssistVisitor.CollectionMappingFilter buildCollectionMappingFilter()
protected AbstractContentAssistVisitor.CompoundExpressionHelper buildCompoundExpressionHelper()
protected AbstractContentAssistVisitor.ConditionalExpressionCompletenessVisitor buildConditionalExpressionCompletenessVisitor()
protected AbstractContentAssistVisitor.ConstrutorCollectionHelper buildConstrutorCollectionHelper()
protected AbstractContentAssistVisitor.DefaultMappingCollector buildDefaultMappingCollector()
protected AbstractContentAssistVisitor.DeleteClauseHelper buildDeleteClauseHelper()
protected AbstractContentAssistVisitor.DoubleEncapsulatedCollectionHelper buildDoubleEncapsulatedCollectionHelper()
protected AbstractContentAssistVisitor.FilteringMappingCollector buildFilteringMappingCollector(AbstractPathExpression expression, Resolver resolver, Filter<IMapping> filter, java.lang.String pattern)
protected AbstractContentAssistVisitor.FromClauseCollectionHelper buildFromClauseCollectionHelper()
protected AbstractContentAssistVisitor.FromClauseHelper buildFromClauseHelper()
protected AbstractContentAssistVisitor.FromClauseSelectStatementHelper buildFromClauseSelectStatementHelper()
protected AbstractContentAssistVisitor.GroupByClauseCollectionHelper buildGroupByClauseCollectionHelper()
protected AbstractContentAssistVisitor.GroupByClauseSelectStatementHelper buildGroupByClauseSelectStatementHelper()
protected AbstractContentAssistVisitor.HavingClauseHelper buildHavingClauseHelper()
protected AbstractContentAssistVisitor.HavingClauseSelectStatementHelper buildHavingClauseSelectStatementHelper()
protected AbstractContentAssistVisitor.IncompleteCollectionExpressionVisitor buildIncompleteCollectionExpressionVisitor()
protected AbstractContentAssistVisitor.JoinCollectionHelper buildJoinCollectionHelper()
protected AbstractValidator.JPQLQueryBNFValidator buildJPQLQueryBNFValidator(JPQLQueryBNF queryBNF)
AbstractValidator.JPQLQueryBNFValidator
that can be used to validate an Expression
by making sure its BNF is part of the given BNF.
queryBNF
- The BNF used to determine the validity of an Expression
AbstractValidator.JPQLQueryBNFValidator
that can determine if an Expression
follows
the given BNFprotected AbstractValidator.JPQLQueryBNFValidator buildJPQLQueryBNFValidator(java.lang.String queryBNFId)
AbstractValidator.JPQLQueryBNFValidator
that can be used to validate an Expression
by making sure its BNF is part of the given BNF.
queryBNFId
- The unique identifier of the BNF used to determine the validity of an
Expression
AbstractValidator.JPQLQueryBNFValidator
that can determine if an Expression
follows
the given BNFprotected AbstractContentAssistVisitor.MappingCollector buildMappingCollector(AbstractPathExpression expression, Resolver resolver, Filter<IMapping> filter)
protected Filter<IMapping> buildMappingFilter(AbstractPathExpression expression, Filter<IMapping> filter)
protected Filter<IMapping> buildMappingFilter(Expression expression)
protected AbstractContentAssistVisitor.MappingFilterBuilder buildMappingFilterBuilder()
protected AbstractContentAssistVisitor.NullExpressionVisitor buildNullExpressionVisitor()
NullExpression
if it's been visited.
AbstractContentAssistVisitor.NullExpressionVisitor
protected AbstractContentAssistVisitor.OrderByClauseCollectionHelper buildOrderByClauseCollectionHelper()
protected AbstractContentAssistVisitor.OrderByClauseSelectStatementHelper buildOrderByClauseSelectStatementHelper()
protected AbstractContentAssistVisitor.PropertyMappingFilter buildPropertyMappingFilter()
public ContentAssistProposals buildProposals(int position)
position
- The position of the cursor within the JPQL query
protected AbstractContentAssistVisitor.RangeVariableDeclarationVisitor buildRangeVariableDeclarationVisitor()
protected AbstractContentAssistVisitor.ResultVariableVisitor buildResultVariableVisitor()
protected AbstractContentAssistVisitor.SelectClauseCompletenessVisitor buildSelectClauseCompleteness()
protected AbstractContentAssistVisitor.SelectClauseSelectStatementHelper buildSelectClauseSelectStatementHelper()
protected AbstractContentAssistVisitor.SimpleFromClauseSelectStatementHelper buildSimpleFromClauseSelectStatementHelper()
protected AbstractContentAssistVisitor.SimpleGroupByClauseSelectStatementHelper buildSimpleGroupByClauseSelectStatementHelper()
protected AbstractContentAssistVisitor.SimpleHavingClauseSelectStatementHelper buildSimpleHavingClauseSelectStatementHelper()
protected AbstractContentAssistVisitor.SimpleSelectClauseSelectStatementHelper buildSimpleSelectClauseSelectStatementHelper()
protected AbstractContentAssistVisitor.SimpleWhereClauseSelectStatementHelper buildSimpleWhereClauseSelectStatementHelper()
protected AbstractContentAssistVisitor.SubqueryVisitor buildSubqueryVisitor()
protected AbstractContentAssistVisitor.TrailingCompletenessVisitor buildTrailingCompleteness()
protected AbstractContentAssistVisitor.TripleEncapsulatedCollectionHelper buildTripleEncapsulatedCollectionHelper()
protected AbstractContentAssistVisitor.UpdateItemCollectionHelper buildUpdateItemCollectionHelper()
protected AbstractContentAssistVisitor.VisitParentVisitor buildVisitParentVisitor()
protected AbstractContentAssistVisitor.WhereClauseHelper buildWhereClauseHelper()
protected AbstractContentAssistVisitor.WhereClauseSelectStatementHelper buildWhereClauseSelectStatementHelper()
protected AbstractContentAssistVisitor.SelectStatementHelper<AbstractSelectStatement,Expression> cast(AbstractContentAssistVisitor.SelectStatementHelper<? extends AbstractSelectStatement,? extends Expression> helper)
public void dispose()
protected IterableIterator<IEntity> entities()
entities
defined in the persistence contextprotected int findExpressionPosition(CollectionExpression expression)
protected RangeVariableDeclaration findRangeVariableDeclaration(UpdateClause expression)
protected IType getAcceptableType(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 allowedprotected AbstractContentAssistVisitor.AppendableExpressionVisitor getAppendableExpressionVisitor()
protected CollectionExpression getCollectionExpression(Expression expression)
Expression
to a CollectionExpression
if it is actually an
object of that type.
expression
- The Expression
to cast
Expression
if it is a CollectionExpression
or null
if it is any other objectprotected AbstractContentAssistVisitor.CollectionExpressionVisitor getCollectionExpressionVisitor()
CollectionExpression
if it's been visited.
AbstractContentAssistVisitor.CollectionExpressionVisitor
buildCollectionExpressionVisitor()
protected AbstractContentAssistVisitor.CompletenessVisitor getCompletenessVisitor()
protected AbstractContentAssistVisitor.CompoundExpressionHelper getCompoundExpressionHelper()
protected AbstractContentAssistVisitor.CompletenessVisitor getConditionalExpressionCompletenessVisitor()
protected AbstractContentAssistVisitor.ConstrutorCollectionHelper getConstructorCollectionHelper()
protected final java.util.Stack<java.lang.Integer> getCorrections()
protected AbstractContentAssistVisitor.MappingCollector getDefaultMappingCollector()
protected AbstractContentAssistVisitor.ClauseHelper<DeleteClause> getDeleteClauseHelper()
protected AbstractContentAssistVisitor.DoubleEncapsulatedCollectionHelper getDoubleEncapsulatedCollectionHelper()
protected IEmbeddable getEmbeddable(IType type)
IEmbeddable
for the given IType
if one exists.
type
- The IType
that is mapped as an embeddable
IType
mapped as an embeddable; null
if none exists or
if it's mapped as a different managed typeprotected IEntity getEntity(IType type)
IEntity
for the given IType
if one exists.
type
- The IType
that is mapped as an entity
IType
mapped as an entity; null
if none exists or if
it's mapped as a different managed typeprotected IEntity getEntityNamed(java.lang.String entityName)
entityName
- The abstract schema name, which can be different from the entity class name
but by default, it's the same
null
if none could be foundprotected final ExpressionFactory getExpressionFactory(java.lang.String expressionFactoryId)
ExpressionFactory
that was registered for the given unique identifier.
expressionFactoryId
- The unique identifier of the ExpressionFactory
to retrieve
ExpressionFactory
mapped with the given unique identifierprotected ExpressionRegistry getExpressionRegistry()
JPQLQueryBNFs
and the ExpressionFactories
that are used
to properly parse a JPQL query.
protected AbstractContentAssistVisitor.AcceptableTypeVisitor getExpressionTypeVisitor()
protected AbstractContentAssistVisitor.FromClauseCollectionHelper getFromClauseCollectionHelper()
protected AbstractContentAssistVisitor.ClauseHelper<AbstractFromClause> getFromClauseHelper()
protected AbstractContentAssistVisitor.FromClauseSelectStatementHelper getFromClauseSelectStatementHelper()
protected JPQLGrammar getGrammar()
Expression
protected AbstractContentAssistVisitor.GroupByClauseCollectionHelper getGroupByClauseCollectionHelper()
protected AbstractContentAssistVisitor.GroupByClauseSelectStatementHelper getGroupByClauseSelectStatementHelper()
protected AbstractContentAssistVisitor.ClauseHelper<HavingClause> getHavingClauseHelper()
protected AbstractContentAssistVisitor.HavingClauseSelectStatementHelper getHavingClauseSelectStatementHelper()
protected final <T> T getHelper(java.lang.Class<T> helperClass)
helperClass
- The Java class of the helper to retrieve
protected IdentifierRole getIdentifierRole(java.lang.String identifier)
identifier
- The identifier for which its role is requested
protected JPAVersion getIdentifierVersion(java.lang.String identifier)
protected AbstractContentAssistVisitor.CompletenessVisitor getIncompleteCollectionExpressionVisitor()
protected AbstractContentAssistVisitor.JoinCollectionHelper getJoinCollectionHelper()
protected JPAVersion getJPAVersion()
protected JPQLExpression getJPQLExpression()
protected IManagedType getManagedType(IType type)
type
- The type that is used as a managed type
null
otherwiseprotected IMappedSuperclass getMappedSuperclass(IType type)
IMappedSuperclass
for the given IType
if one exists.
type
- The IType
that is mapped as an embeddable
IType
mapped as an mapped super class; null
if none
exists or if it's mapped as a different managed typeprotected IMapping getMapping(Expression expression)
IMapping
for the field represented by the given Expression
.
expression
- The Expression
representing a state field path expression or a
collection-valued path expression
IMapping
or null
if none existsprotected Filter<IMapping> getMappingCollectionFilter()
protected AbstractContentAssistVisitor.MappingFilterBuilder getMappingFilterBuilder()
protected Filter<IMapping> getMappingPropertyFilter()
protected AbstractContentAssistVisitor.NullExpressionVisitor getNullExpressionVisitor()
NullExpression
if it's been visited.
AbstractContentAssistVisitor.NullExpressionVisitor
buildNullExpressionVisitor()
protected AbstractContentAssistVisitor.OrderByClauseCollectionHelper getOrderByClauseCollectionHelper()
protected AbstractContentAssistVisitor.OrderByClauseSelectStatementHelper getOrderByClauseSelectStatementHelper()
protected int getPosition(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
representation
Expression
public DefaultContentAssistProposals getProposals()
protected IManagedTypeProvider getProvider()
protected IQuery getQuery()
protected JPQLQueryBNF getQueryBNF(java.lang.String queryBNFId)
queryBNFId
- The unique identifier of the JPQLQueryBNF
to retrieve
JPQLQueryBNF
representing a section of the grammarprotected JPQLQueryContext getQueryContext()
JPQLQueryContext
that is used by this visitor.
JPQLQueryContext
holding onto the JPQL query and the cached informationprotected java.lang.String getQueryExpression()
null
string representation of the JPQL queryprotected AbstractContentAssistVisitor.RangeVariableDeclarationVisitor getRangeVariableDeclarationVisitor()
protected Resolver getResolver(Expression expression)
Resolver
for the given Expression
. The
Resolver
can return the IType
and ITypeDeclaration
of the Expression
and either the IManagedType
or the IMapping
.
expression
- The Expression
for which its Resolver
will be retrieved
Resolver
for the given Expression
protected AbstractContentAssistVisitor.ResultVariableVisitor getResultVariableVisitor()
protected AbstractContentAssistVisitor.CompletenessVisitor getSelectClauseCompletenessVisitor()
protected AbstractContentAssistVisitor.SelectClauseSelectStatementHelper getSelectClauseSelectStatementHelper()
protected AbstractContentAssistVisitor.SimpleFromClauseSelectStatementHelper getSimpleFromClauseSelectStatementHelper()
protected AbstractContentAssistVisitor.SimpleGroupByClauseSelectStatementHelper getSimpleGroupByClauseSelectStatementHelper()
protected AbstractContentAssistVisitor.SimpleHavingClauseSelectStatementHelper getSimpleHavingClauseSelectStatementHelper()
protected AbstractContentAssistVisitor.SimpleSelectClauseSelectStatementHelper getSimpleSelectClauseSelectStatementHelper()
protected AbstractContentAssistVisitor.SimpleWhereClauseSelectStatementHelper getSimpleWhereClauseSelectStatementHelper()
protected AbstractContentAssistVisitor.SubqueryVisitor getSubqueryVisitor()
protected AbstractContentAssistVisitor.TripleEncapsulatedCollectionHelper getTripleEncapsulatedCollectionHelper()
protected IType getType(java.lang.Class<?> type)
type
- The Java type to wrap with an external form
protected IType getType(Expression expression)
IType
of the given Expression
.
expression
- The Expression
for which its type will be calculated
IType
that was resolved by this Resolver
or the
IType
for IType.UNRESOLVABLE_TYPE
if it could not be resolvedprotected IType getType(java.lang.String typeName)
typeName
- The fully qualified class name of the class to retrieve
protected ITypeDeclaration getTypeDeclaration(Expression expression)
ITypeDeclaration
of the field handled by this Resolver
.
expression
- The Expression
for which its type declaration will be calculated
ITypeDeclaration
that was resolved by this Resolver
or the
ITypeDeclaration
for IType.UNRESOLVABLE_TYPE
if it could not be resolvedprotected TypeHelper getTypeHelper()
types
.
IType
protected ITypeRepository getTypeRepository()
ITypes
protected AbstractContentAssistVisitor.UpdateItemCollectionHelper getUpdateItemCollectionHelper()
protected void initialize()
protected boolean isAggregate(java.lang.String identifier)
identifier
- The identifier to validate
true
if the given identifier is used in an aggregate expression;
false
otherwiseprotected boolean isAppendable(Expression expression)
protected boolean isAppendableToCollection(Expression expression)
protected boolean isClause(java.lang.String identifier)
identifier
- The identifier to validate
true
if the given identifier is a clause; false
otherwiseprotected boolean isComplete(Expression expression)
protected boolean isCompoundable(Expression expression)
protected boolean isCompoundFunction(java.lang.String identifier)
identifier
- The identifier to validate
true
if the given identifier is used in a compound expression;
false
otherwiseprotected boolean isConditionalExpressionComplete(Expression expression)
protected boolean isFunction(java.lang.String identifier)
identifier
- The identifier to validate
true
if the given identifier is a function; false
otherwiseprotected boolean isGroupByComplete(Expression expression)
protected boolean isInSubquery(Expression expression)
Expression
is in a subquery or in the top-level query.
expression
- The Expression
to visit its parent hierarchy
true
if the owning query is a subquery; false
if it's the
top-level queryprotected abstract boolean isJoinFetchIdentifiable()
JOIN FETCH
expression can be identified by with an
identification variable or not.
true
if the expression can have an identification variable; false
otherwiseprotected boolean isLocked(Expression expression)
Expression
has been set has the lock to prevent an
infinite recursion.
expression
- The Expression
to check if it is locked
true
if the given Expression
has been marked as locked;
false
otherwiseprotected boolean isNull(Expression expression)
Expression
is the NullExpression
.
expression
- The Expression
to visit
true
if the given Expression
is NullExpression
;
false
otherwiseprotected 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 it
true
if the given position is within the given word; false
otherwiseprotected 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 it
true
if the given position is within the given word; false
otherwiseprotected boolean isPreviousClauseComplete(AbstractSelectStatement expression, AbstractContentAssistVisitor.SelectStatementHelper<AbstractSelectStatement,Expression> helper)
protected boolean isResultVariable(Expression expression)
protected boolean isSelectExpressionComplete(Expression expression)
protected boolean isValid(Expression expression, JPQLQueryBNF queryBNF)
Expression
part is an expression of the given query BNF.
expression
- The Expression
to validate based on the query BNF
true
if the Expression
part is a child of the given query BNF;
false
otherwiseprotected boolean isValid(Expression expression, java.lang.String queryBNFId)
Expression
part is an expression of the given query BNF.
expression
- The Expression
to validate based on the query BNFqueryBNFId
-
true
if the Expression
part is a child of the given query BNF;
false
otherwiseprotected 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 cursor
true
if the proposal is valid; false
otherwiseprotected boolean isValidVersion(java.lang.String identifier)
identifier
- The JPQL identifier to validate
true
if the given identifier is part of the current JPA version or was
defined in previous release; false
otherwiseprotected 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
representation
public void prepare(QueryPosition queryPosition)
queryPosition
- Contains the position of the cursor within the parsed Expression
protected final <T> void registerHelper(java.lang.Class<T> helperClass, T helper)
helperClass
- The Java class of the helper to retrievehelper
- The helper being registeredgetHelper(Class)
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 AnonymousExpressionVisitor
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(FunctionExpression expression)
FunctionExpression
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(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 UnknownExpression
to visitpublic void visit(UpdateClause expression)
UpdateClause
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The UpdateClause
to visitpublic void visit(UpdateItem expression)
UpdateItem
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The UpdateItem
to visitpublic void visit(UpdateStatement expression)
UpdateStatement
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The UpdateStatement
to visitpublic void visit(UpperExpression expression)
UpperExpression
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The UpperExpression
to visitpublic void visit(ValueExpression expression)
ValueExpression
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The ValueExpression
to visitpublic void visit(WhenClause expression)
WhenClause
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The WhenClause
to visitpublic void visit(WhereClause expression)
WhereClause
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The WhereClause
to visitprotected void visitAggregateFunction(AggregateFunction expression)
protected void visitArithmeticExpression(ArithmeticExpression expression)
protected <T extends AbstractExpression> void visitClause(T expression, java.lang.String identifier, boolean hasSpaceAfterIdentifier, AbstractContentAssistVisitor.ClauseHelper<T> helper)
protected <T extends Expression> void visitCollectionExpression(T expression, java.lang.String identifier, AbstractContentAssistVisitor.CollectionExpressionHelper<T> helper)
expression
based on the location of
the cursor and the content of the expression.
expression
- The expression
being visitedidentifier
- helper
- protected void visitCompoundableExpression(AbstractConditionalClause expression)
protected void visitCompoundableExpression(AbstractContentAssistVisitor.CompoundExpressionHelper helper, int position, int length)
protected void visitDeleteStatement(DeleteStatement expression)
protected 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
- protected void visitLogicalExpression(LogicalExpression expression, java.lang.String identifier)
protected AbstractContentAssistVisitor.VisitParentVisitor visitParentVisitor()
protected void visitPathExpression(AbstractPathExpression expression)
protected void visitPathExpression(AbstractPathExpression expression, Filter<IMapping> helper)
protected void visitSelectClause(AbstractSelectClause expression)
protected AbstractContentAssistVisitor.SelectStatementHelper<? extends AbstractSelectStatement,? extends Expression> visitSelectStatement(AbstractSelectStatement expression, int position, int[] length, AbstractContentAssistVisitor.SelectStatementHelper<AbstractSelectStatement,Expression> helper)
protected void visitSelectStatement(AbstractSelectStatement expression, AbstractContentAssistVisitor.SelectStatementHelper<? extends AbstractSelectStatement,? extends Expression> helper)
protected void visitSingleEncapsulatedExpression(AbstractSingleEncapsulatedExpression expression, AbstractContentAssistVisitor.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 proposalsprotected void visitSingleEncapsulatedExpression(AbstractSingleEncapsulatedExpression expression, AbstractContentAssistVisitor.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
protected void visitUpdateStatement(UpdateStatement expression)
protected AbstractContentAssistVisitor.ClauseHelper<WhereClause> whereClauseHelper()
protected AbstractContentAssistVisitor.WhereClauseSelectStatementHelper whereClauseSelectStatementHelper()
|
EclipseLink 2.4.1, build 'v20121003-ad44345' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |