Uses of Interface
org.eclipse.persistence.jpa.jpql.parser.Expression
Package
Description
This package contains the Hermes features (except the parser itself): semantic and grammatical
validations, content assist support, calculating the query result type or the possible type of
an input parameter, refactoring tools.
This is the core of Hermes, this package contains the classes that can parse a JPQL query.
The classes defined in this package define the state model API, a state model can be used to
manually or programmatically create and edit a JPQL query.
This package contains the
StateObject
classes that represents a JPQL query.-
Uses of Expression in org.eclipse.persistence.jpa.jpql
Modifier and TypeFieldDescriptionprotected Expression
AbstractEclipseLinkSemanticValidator.TableExpressionVisitor.expression
TheExpression
being visited.protected Expression
ParameterTypeVisitor.expression
TheExpression
that will help to determine the type of the input parameter.Modifier and TypeFieldDescriptionprotected List
<Expression> AbstractValidator.ChildrenCollectorVisitor.expressions
The uniqueExpression
that was visited or the children ofCollectionExpression
.protected final Set
<Expression> ParameterTypeVisitor.visitedExpressions
This is used to prevent an infinite loop.Modifier and TypeMethodDescriptionJPQLQueryDeclaration.getBaseExpression()
Returns the range variable declaration if this is a range declaration otherwise the collection-valued path expression when this is a collection member declaration.JPQLQueryDeclaration.getDeclarationExpression()
Returns the declaration expression, which is either anIdentificationVariableDeclaration
or aCollectionMemberDeclaration
when part of a FROM clause, otherwise it's either theDeleteClause
or theUpdateClause
.JPQLQueryProblem.getExpression()
Returns the parsed tree representing the JPQL query.Modifier and TypeMethodDescriptionprotected List
<Expression> AbstractValidator.getChildren
(Expression expression) Returns a list containing either the givenExpression
if it's not aCollectionExpression
or the children of the givenCollectionExpression
.Modifier and TypeMethodDescriptionprotected void
AbstractValidator.addProblem
(Expression expression, int startPosition, int endPosition, String messageKey, String... messageArguments) Adds a new validation problem that was found in the givenExpression
.protected void
AbstractValidator.addProblem
(Expression expression, int startPosition, String messageKey, String... messageArguments) Adds a new validation problem that was found in the givenExpression
.protected void
AbstractValidator.addProblem
(Expression expression, String messageKey) Adds a new validation problem that was found in the givenExpression
.protected void
AbstractValidator.addProblem
(Expression expression, String messageKey, String... arguments) Adds a new validation problem that was found in the givenExpression
.protected JPQLQueryProblem
AbstractValidator.buildProblem
(Expression expression, int startPosition, int endPosition, String messageKey, String... messageArguments) Creates a new validation problem that was found in the givenExpression
.protected List
<Expression> AbstractValidator.getChildren
(Expression expression) Returns a list containing either the givenExpression
if it's not aCollectionExpression
or the children of the givenCollectionExpression
.protected CollectionExpression
AbstractGrammarValidator.getCollectionExpression
(Expression expression) Casts the givenExpression
to aCollectionExpression
if it is actually an object of that type.protected CollectionValuedPathExpression
AbstractSemanticValidator.getCollectionValuedPathExpression
(Expression expression) SemanticValidatorHelper.getManagedType
(Expression expression) Returns the managed type by resolving the givenExpression
.protected StateFieldPathExpression
AbstractSemanticValidator.getStateFieldPathExpression
(Expression expression) SemanticValidatorHelper.getType
(Expression expression) Returns the type by resolving the givenExpression
.SemanticValidatorHelper.getTypeDeclaration
(Expression expression) Returns the type declaration for the givenExpression
's type.protected boolean
AbstractGrammarValidator.isCollectionExpression
(Expression expression) Determines whether the givenExpression
is aCollectionExpression
.protected boolean
AbstractGrammarValidator.isDateTimeConstant
(Expression leftExpression) Determines whether the givenExpression
represents one of the three date constants or not.protected boolean
AbstractValidator.isNestedArray
(Expression expression) Determines whether the givenExpression
represents a nested array or not.protected boolean
AbstractGrammarValidator.isOwnedByConditionalClause
(Expression expression) Determines whether the givenExpression
is a child of the WHERE or HAVING clause of the top-level query.protected boolean
AbstractGrammarValidator.isOwnedByFromClause
(Expression expression) Determines whether the givenExpression
is a child of the FROM clause of the top-level query.protected boolean
EclipseLinkGrammarValidator.isOwnedByInExpression
(Expression expression) protected boolean
AbstractGrammarValidator.isOwnedBySubFromClause
(Expression expression) Determines whether the givenExpression
is a child of the FROM clause of a subquery.protected boolean
EclipseLinkGrammarValidator.isOwnedByUnionClause
(Expression expression) Determines whether the givenExpression
is a child of the UNION clause.protected boolean
AbstractValidator.isSubquery
(Expression expression) Determines whether the givenExpression
is a subquery.protected boolean
AbstractEclipseLinkSemanticValidator.isTableExpression
(Expression expression) protected boolean
AbstractValidator.isValid
(Expression expression, String queryBNFId) Determines whether the givenExpression
is valid by checking itsJPQLQueryBNF
with theJPQLQueryBNF
associated with the given unique identifier.protected boolean
AbstractValidator.isValid
(Expression expression, String... queryBNFIds) Determines whether the givenExpression
is valid by checking itsJPQLQueryBNF
with the list ofJPQLQueryBNF
associated with the given unique identifiers.protected boolean
AbstractValidator.isValid
(Expression expression, JPQLQueryBNF queryBNF) Determines whether the givenExpression
is valid by checking itsJPQLQueryBNF
with the givenJPQLQueryBNF
.protected boolean
AbstractValidator.isValidWithChildCollectionBypass
(Expression expression, String queryBNF) Determines whether the givenExpression
part is an expression of the given query BNF.protected boolean
AbstractValidator.isWithinSubquery
(Expression expression) Determines whether the givenExpression
is part of a subquery.protected boolean
AbstractValidator.isWithinTopLevelQuery
(Expression expression) Determines whether the givenExpression
is part of the top-level query.protected int
AbstractValidator.length
(Expression expression) Returns the length of the string representation of the givenExpression
.protected String
AbstractValidator.literal
(Expression expression, LiteralType type) Retrieves the "literal" from the givenExpression
.protected int
AbstractValidator.nestedArraySize
(Expression expression) Returns the number of items in the nested array if the givenExpression
represents one.protected int
AbstractGrammarValidator.position
(Expression expression, int... extras) protected int
AbstractValidator.position
(Expression expression) Calculates the position of the given expression by calculating the length of what is before.SemanticValidatorHelper.resolveMapping
(Expression expression) Returns the mapping for the field represented by the givenExpression
.protected int
AbstractEclipseLinkSemanticValidator.subquerySelectItemCount
(Expression subquery) Retrieves the number of select items the given subquery has.protected void
AbstractGrammarValidator.validateCollectionSeparatedByComma
(Expression expression, String endsWithCommaProblemKey, String missingCommaProblemKey) Validates the givenExpression
by making sure each child is separated by a comma.protected void
AbstractGrammarValidator.validateCollectionSeparatedBySpace
(Expression expression, String endsWithCommaProblemKey, String hasCommaProblemKey) Validates the givenExpression
by making sure each child is separated by a whitespace.protected boolean
AbstractSemanticValidator.validateCollectionValuedPathExpression
(Expression expression, boolean collectionTypeOnly) Validates the givenExpression
and makes sure it's a valid collection value path expression.protected void
AbstractGrammarValidator.validateIdentifier
(Expression expression, String variableName, int variableLength, String reservedWordProblemKey, String invalidJavaIdentifierProblemKey) Validates the given variable name to make sure: It is not a JPQL reserved identifier; It is a valid Java identifier.protected boolean
AbstractSemanticValidator.validateJoinCollectionValuedPathExpression
(Expression expression, boolean collectionTypeOnly) Validates the givenExpression
and makes sure it's a valid collection value path expression.protected void
AbstractEclipseLinkSemanticValidator.SubquerySelectItemCalculator.visit
(Expression expression) protected void
AbstractSemanticValidator.ComparisonExpressionVisitor.visit
(Expression expression) protected void
AbstractSemanticValidator.FirstDeclarationVisitor.visit
(Expression expression) protected void
AbstractSemanticValidator.InItemsVisitor.visit
(Expression expression) protected void
AbstractValidator.BypassChildCollectionExpressionVisitor.visit
(Expression expression) protected void
AbstractValidator.BypassParentSubExpressionVisitor.visit
(Expression expression) protected void
AbstractValidator.ChildrenCollectorVisitor.visit
(Expression expression) protected void
AbstractValidator.JPQLQueryBNFValidator.visit
(Expression expression) protected void
AbstractValidator.visit
(Expression expression) protected void
ParameterTypeVisitor.visitDoubleExpressions
(Expression expression, Expression firstExpression, Expression secondExpression, boolean traverseParent) -
Uses of Expression in org.eclipse.persistence.jpa.jpql.parser
Modifier and TypeClassDescriptionfinal class
The ABS function removes the minus sign from a specified argument and returns the absolute value, which is always a positive number or zero.class
Conditional expressions are composed of other conditional expressions, comparison operations, logical operations, path expressions that evaluate to boolean values, boolean literals, and boolean input parameters.class
ThisExpression
takes care of parsing an expression that encapsulates two expressions separated by a comma.class
This expression handles parsing the identifier followed by an expression encapsulated within parenthesis.class
This is the abstract definition of all the parts used to create the tree hierarchy representing the parsed JPQL query.class
The FROM clause of a query defines the domain of the query by declaring identification variables.class
An ordering clause allows the objects or values that are returned by the query to be ordered.class
An identification variable followed by the navigation operator (.) and a state field or association field is a path expression.final class
An abstract schema name designates the abstract schema type over which the query ranges.class
The SELECT clause denotes the query result.class
A query is an operation that retrieves data from one or more tables or views.class
This expression handles parsing a JPQL identifier followed by an expression encapsulated within parenthesis.class
ThisExpression
takes care of parsing an expression that encapsulates three expressions separated by a comma.final class
One of the four binary operators.class
In the SELECT clause the result of a query may be the result of an aggregate function applied to a path expression.final class
An ALL conditional expression is a predicate that istrue
if the comparison operation istrue
for all values in the result of the subquery or the result of the subquery is empty.final class
The AND logical operator chains multiple criteria together.class
This expression represents an arithmetic expression, which means the first and second expressions are aggregated with an arithmetic sign.final class
This expression simply adds a plus or minus sign to the arithmetic primary expression.final class
AnAS OF
clause is part of a flashback query, which provides ways to view past states of database objects, or to return database objects to a previous state, without using traditional point-in-time recovery.final class
One of the aggregate functions.final class
This wraps anotherExpression
that was correctly parsed by it is located in an invalid location within the JPQL query.final class
Used in conditional expression to determine whether the result of an expression falls within an inclusive range of values.final class
BNF:general_case_expression ::= CASE when_clause {when_clause}* ELSE scalar_expression END
or BNF:simple_case_expression ::= CASE case_operand simple_when_clause {simple_when_clause}* ELSE scalar_expression END
final class
The CAST function cast value to a different type.final class
A COALESCE expression returnsnull
if all its arguments evaluate tonull
, and the value of the first non-null
argument otherwise.final class
ACollectionExpression
wraps many expression which they are separated by spaces and/or commas.final class
An identification variable declared by a collection member declaration ranges over values of a collection obtained by navigation using a path expression.final class
This expression tests whether the designated value is a member of the collection specified by the collection-valued path expression.final class
Acollection_valued_field
is designated by the name of an association field in a one-to-many or a many-to-many relationship or by the name of an element collection field.final class
Only the values of like types are permitted to be compared.class
A compound expression has a left and right expressions combined by an identifier.final class
The CONCAT function returns a string that is a concatenation of its arguments.final class
The CONNECT BY clause allows selecting rows in a hierarchical order using the hierarchical query clause.final class
In the SELECT clause a constructor may be used in the SELECT list to return one or more Java instances.final class
One of the aggregate functions.final class
This expression represents the database specific data type, which may include size and scale.final class
ThisExpression
represents a date or time.final class
An implementation of anExpression
that wraps a string.final class
This is the delete clause of the delete statement.final class
Bulk delete operation apply to entities of a single entity class (together with its subclasses, if any).final class
One of the four binary operators.final class
This expression tests whether or not the collection designated by the collection-valued path expression is empty (i.e, has no elements).class
ThisExpression
represents an identification variable that maps aMap
property, either the key, the value or aMap.Entry
).final class
ThisExpression
wraps the name of an entity type.final class
An identification variable qualified by theENTRY
operator is a path expression.final class
An EXISTS expression is a predicate that istrue
only if the result of the subquery consists of one or more values and that isfalse
otherwise.final class
The EXTRACT function extracts a date part from a date/time value.final class
The FROM clause of a query defines the domain of the query by declaring identification variables.final class
This expression adds support to call native database functions.final class
The GROUP BY construct enables the aggregation of values according to the properties of an entity class.final class
The HAVING construct enables conditions to be specified that further restrict the query result as restrictions upon the groups.final class
If a table contains hierarchical data, then rows can be selected in a hierarchical order using the hierarchical query clause.final class
An identification variable is a valid identifier declared in the FROM clause of a query.final class
An identification variable is a valid identifier declared in the FROM clause of a query.final class
The INDEX function returns an integer value corresponding to the position of its argument in an ordered list.final class
The state field path expression must have a string, numeric, or enum value.final class
Either positional or named parameters may be used.final class
A JOIN enables the fetching of an association as a side effect of the execution of a query.final class
AJPQLExpression
is the root of the parsed tree representation of a JPQL query.final class
An identification variable qualified by theKEY
operator is a path expression.final class
The expression representing some keywords:TRUE
,FALSE
orNULL
.final class
The LENGTH function returns the length of the string in characters as an integer.final class
The LIKE condition is used to specify a search for a pattern.class
TheDATE | TIME | DATETIME
argument ofLOCAL
local_datetime_type expression.class
TheLOCAL local_datetime_type
expression.final class
The LOCATE function returns the position of a given string within a string, starting the search at a specified position.class
This expression represents a logical expression, which means the first and second expressions are aggregated with either AND or OR.final class
The LOWER function converts a string to lower case and it returns a string.class
Math double argument functions expressions.static final class
ThePOWER
function takes two numeric arguments and returns a double.static final class
TheROUND
function takes numeric argument and an integer argument and returns a number of the same type as the first argument.class
Math single argument functions expressions.static final class
TheCEILING
function takes a numeric argument and return a number (integer, float, or double) of the same type as the argument.static final class
TheEXP
function takes a numeric argument and returns a double.static final class
TheFLOOR
function takes a numeric argument and returns a number (integer, float, or double) of the same type as the argument.static final class
TheLN
function takes a numeric argument and returns a double.static final class
TheSIGN
function takes a numeric argument and returns an integer.final class
One of the aggregate functions.final class
One of the aggregate functions.final class
The modulo operation finds the remainder of division of one number by another.final class
One of the four binary operators.final class
BNF:expression ::= NOT conditional_primary
final class
A null comparison tests whether or not the single-valued path expression or input parameter is a NULL value.final class
Anull
Expression
is used instead of a truenull
, which allows operations to be performed without doing anull
check first.final class
NULLIF returns the first expression if the two expressions are not equal.final class
Exact numeric literals support the use of Java integer literal syntax as well as SQL exact numeric literal syntax.final class
Stand-alone identification variables in the SELECT clause may optionally be qualified by the OBJECT operator.final class
Returns an expression that allows a join ON clause to be defined.final class
The ORDER BY clause allows the objects or values that are returned by the query to be ordered.final class
An orderby_item must be one of the following: Astate_field_path_expression
that evaluates to an orderable state field of an entity or embeddable class abstract schema type designated in the SELECT clause by one of the following: A general_identification_variable A single_valued_object_path_expression Astate_field_path_expression
that evaluates to the same state field of the same entity or embeddable abstract schema type as astate_field_path_expression
in the SELECT clause Aresult_variable
that refers to an orderable item in the SELECT clause for which the sameresult_variable
has been specified.final class
In a hierarchical query, if the rows of siblings of the same parent need to be ordered, then theORDER SIBLINGS BY
clause should be used.final class
The OR logical operator chains multiple criteria together.final class
Range variable declarations allow the developer to designate a "root" for objects which may not be reachable by navigation.final class
The REGEXP condition is used to specify a search for a pattern.final class
A result variable may be used to name a select item in the query result.final class
The SELECT clause queries data from entities.final class
ASELECT
query is an operation that retrieves data from one or more tables or views.final class
The FROM clause of a query defines the domain of the query by declaring identification variables.final class
The SELECT statement queries data from entities.final class
BNFLsubquery ::= simple_select_clause subquery_from_clause [where_clause] [groupby_clause] [having_clause]
final class
The SIZE function returns an integer value, the number of elements of the collection.final class
The SQRT function takes a numeric argument and returns a double.final class
ASTART WITH
clause is optional and specifies the root row(s) of the hierarchy.final class
Asingle_valued_association_field
is designated by the name of an association-field in a one-to-one or many-to-one relationship.final class
A string literal is enclosed in single quotes.final class
This expression wraps a sub-expression within parenthesis.final class
The second and third arguments of the SUBSTRING function denote the starting position and length of the substring to be returned.final class
One of the four binary operators.final class
One of the aggregate functions.final class
Defines a table expression.final class
Defines a table expression.final class
Returns an expression that allows to treat its base as if it were a subclass of the class returned by the base.final class
The TRIM function trims the specified character from a string.final class
An entity type expression can be used to restrict query polymorphism.final class
The UNION clause allows the results of two queries to be combined.final class
This expression contains a portion of the query that is unknown to the parser.final class
This is the update clause of the update statement.final class
Thenew_value
specified for an update operation must be compatible in type with the field to which it is assigned.final class
The UPDATE clause of a query consists of a conditional expression used to select objects or values that satisfy the expression.final class
The UPPER function converts a string to upper case and it returns a string.final class
An identification variable qualified by theVALUE
operator is a path expression.final class
A WHEN predicate is used to calculate a condition and when it's true, its THEN will be executed.final class
The WHERE clause of a query consists of a conditional expression used to select objects or values that satisfy the expression.Modifier and TypeMethodDescriptionprotected final Expression
AbstractExpression.buildStringExpression
(char value) Creates a newExpression
wrapping the given character value.protected final Expression
AbstractExpression.buildStringExpression
(String value) Creates a newExpression
wrapping the given string value.final Expression
AbstractFromClause.getAsOfClause()
Returns theExpression
representing the AS OF clause.CaseExpression.getCaseOperand()
Returns theExpression
that represents the CASE operand.CollectionExpression.getChild
(int index) Retrieves the childExpression
at the given position.CollectionMemberDeclaration.getCollectionValuedPathExpression()
Returns theExpression
representing the collection member, which is declared by an identification variable.CollectionMemberExpression.getCollectionValuedPathExpression()
Returns theExpression
representing the collection-valued path expression.TreatExpression.getCollectionValuedPathExpression()
Returns theExpression
that represents the collection-valued path expression.final Expression
AbstractConditionalClause.getConditionalExpression()
Returns the expression representing the composition of the conditional expressions.HierarchicalQueryClause.getConnectByClause()
Returns theExpression
representing the CONNECT BY clause.ConstructorExpression.getConstructorItems()
Returns the constructor items aggregated into a single expression and separated by commas or a single expression.CastExpression.getDatabaseType()
Returns the database type to cast to.LocalExpression.getDateType()
Returns theExpression
representing the expression with date type.final Expression
AbstractFromClause.getDeclaration()
Returns theExpression
that represents the declaration of this clause.CollectionMemberExpression.getEntityExpression()
Returns theExpression
representing the entity expression.TreatExpression.getEntityType()
Returns theExpression
that represents the entity type that will be used to downcast the type of the elements in the collection.LikeExpression.getEscapeCharacter()
Returns theExpression
that represents the escape character, which is either a single character or an input parameter.final Expression
AbstractSingleEncapsulatedExpression.getExpression()
Returns theExpression
that is encapsulated within parenthesis.ArithmeticFactor.getExpression()
Returns theExpression
representing the arithmetic primary.AsOfClause.getExpression()
Returns theExpression
representing the timestamp or change number.BadExpression.getExpression()
Returns theExpression
that was parsed but grammatically, it is not a valid location.BetweenExpression.getExpression()
Returns theExpression
representing the expression to be tested for a range of values.ConnectByClause.getExpression()
Returns theExpression
representing the relationship expression.EmptyCollectionComparisonExpression.getExpression()
Returns theExpression
that represents the collection-valued path expression if it was parsed.InExpression.getExpression()
Returns theExpression
that represents the state field path expression or type discriminator.JPQLExpression.getExpression
(String actualQuery, int position) Returns the deepestExpression
for the given position.NotExpression.getExpression()
Returns theExpression
representing the expression that is negated.NullComparisonExpression.getExpression()
Returns the expression being tested for beingnull
.OrderByItem.getExpression()
Returns theExpression
that represents the order by expression.QueryPosition.getExpression()
Returns the childExpression
where the position of the cursor is.final Expression
AbstractDoubleEncapsulatedExpression.getFirstExpression()
Returns theExpression
that represents the first expression.final Expression
AbstractTripleEncapsulatedExpression.getFirstExpression()
Returns theExpression
that represents the first expression.final Expression
AbstractSelectStatement.getFromClause()
Returns theExpression
representing the FROM clause.final Expression
AbstractSelectStatement.getGroupByClause()
Returns theExpression
representing the GROUP BY clause.GroupByClause.getGroupByItems()
Returns theExpression
that represents the list of group by items if any was parsed.final Expression
AbstractSelectStatement.getHavingClause()
Returns theExpression
representing the HAVING clause.final Expression
AbstractFromClause.getHierarchicalQueryClause()
Returns theExpression
representing the hierarchical query clause.final Expression
AbstractPathExpression.getIdentificationVariable()
Returns the identification variable that starts the path expression, which can be a sample identification variable, a map value, map key or map entry expression.CollectionMemberDeclaration.getIdentificationVariable()
Returns theExpression
representing the identification variable, which maps the collection-valued path expression.Join.getIdentificationVariable()
Returns theExpression
that represents the identification variable.RangeVariableDeclaration.getIdentificationVariable()
Returns theExpression
that represents the identification variable.TableVariableDeclaration.getIdentificationVariable()
Returns theExpression
that represents the identification variable.InExpression.getInItems()
Returns theExpression
that represents the list if items.Join.getJoinAssociationPath()
Returns theExpression
that represents the join association path expression.IdentificationVariableDeclaration.getJoins()
Returns the unique join (fetch join) or the list of joins (fetch joins) expression.final Expression
CompoundExpression.getLeftExpression()
Returns theExpression
that represents the first expression, which is before the identifier.BetweenExpression.getLowerBoundExpression()
Returns theExpression
representing the lower bound expression.UpdateItem.getNewValue()
Returns theExpression
representing the new value, which is the new value of the property.Join.getOnClause()
Returns theExpression
that represents the ON clause if present.SelectStatement.getOrderByClause()
Returns theExpression
representing the ORDER BY clause.final Expression
AbstractOrderByClause.getOrderByItems()
Returns theExpression
representing the list of items to order.HierarchicalQueryClause.getOrderSiblingsByClause()
Returns theExpression
representing the ORDER SIBLINGS BY clause.Expression.getParent()
Returns the parent of thisExpression
.LikeExpression.getPatternValue()
Returns theExpression
that represents the pattern value.RegexpExpression.getPatternValue()
Returns theExpression
that represents the pattern value.UnionClause.getQuery()
Returns theExpression
representing the unioned query.JPQLExpression.getQueryStatement()
Returns theExpression
representing the query, which is either a SELECT, a DELETE or an UPDATE clause.DeleteClause.getRangeVariableDeclaration()
Returns theExpression
representing the range variable declaration.IdentificationVariableDeclaration.getRangeVariableDeclaration()
Returns the variable declaration, which is the abstract schema name and the identification variable.UpdateClause.getRangeVariableDeclaration()
Returns theExpression
representing the range variable declaration.ResultVariable.getResultVariable()
Returns theExpression
representing the result variable.final Expression
CompoundExpression.getRightExpression()
Returns theExpression
that represents the second expression, which is after the identifier.RangeVariableDeclaration.getRootObject()
Returns theExpression
that represents the "root" object.final Expression
AbstractDoubleEncapsulatedExpression.getSecondExpression()
Returns theExpression
that represents the second expression.final Expression
AbstractTripleEncapsulatedExpression.getSecondExpression()
Returns theExpression
that represents the second expression.final Expression
AbstractSelectStatement.getSelectClause()
Returns theAbstractSelectClause
representing the SELECT clause.final Expression
AbstractSelectClause.getSelectExpression()
Returns theExpression
representing the select items.ResultVariable.getSelectExpression()
Returns theExpression
representing the select expression.HierarchicalQueryClause.getStartWithClause()
Returns theExpression
representing the START WITH clause.UpdateItem.getStateFieldPathExpression()
Returns theExpression
representing the state field path expression, which is the property that should get updated.LikeExpression.getStringExpression()
Returns theExpression
that represents the string expression.RegexpExpression.getStringExpression()
Returns theExpression
that represents the string expression.final Expression
AbstractTripleEncapsulatedExpression.getThirdExpression()
Returns theExpression
that represents the first expression.TrimExpression.getTrimCharacter()
Returns the character used for trimming the string.SelectStatement.getUnionClauses()
Returns theExpression
representing the UNION clauses.JPQLExpression.getUnknownEndingStatement()
Returns theExpression
that may contain a portion of the query that could not be parsed, this happens when the query is either incomplete or malformed.UpdateClause.getUpdateItems()
Returns theExpression
representing the single update item or the collection of update items.BetweenExpression.getUpperBoundExpression()
Returns theExpression
representing the upper bound expression.final Expression
AbstractSelectStatement.getWhereClause()
Returns theExpression
representing the WHERE clause.DeleteStatement.getWhereClause()
Returns theExpression
representing the WHERE clause.UpdateStatement.getWhereClause()
Returns theExpression
representing the WHERE clause.Modifier and TypeMethodDescriptionfinal ListIterable
<Expression> AbstractExpression.children()
Expression.children()
Returns the children of thisExpression
.final ListIterable
<Expression> AbstractExpression.orderedChildren()
Expression.orderedChildren()
Returns the list representing thisExpression
and its children.Modifier and TypeMethodDescriptionvoid
QueryPosition.addPosition
(Expression expression, int position) Adds the position of the cursor within the givenExpression
protected final int
AbstractExpression.calculatePosition
(Expression expression, int length) Calculates the position of the givenExpression
by calculating the length of what is before.AbstractConditionalClause.findQueryBNF
(Expression expression) AbstractDoubleEncapsulatedExpression.findQueryBNF
(Expression expression) AbstractExpression.findQueryBNF
(Expression expression) final JPQLQueryBNF
AbstractFromClause.findQueryBNF
(Expression expression) final JPQLQueryBNF
AbstractOrderByClause.findQueryBNF
(Expression expression) final JPQLQueryBNF
AbstractPathExpression.findQueryBNF
(Expression expression) AbstractSelectClause.findQueryBNF
(Expression expression) AbstractSelectStatement.findQueryBNF
(Expression expression) AbstractSingleEncapsulatedExpression.findQueryBNF
(Expression expression) AbstractTripleEncapsulatedExpression.findQueryBNF
(Expression expression) ArithmeticExpression.findQueryBNF
(Expression expression) ArithmeticFactor.findQueryBNF
(Expression expression) AsOfClause.findQueryBNF
(Expression expression) BadExpression.findQueryBNF
(Expression expression) BetweenExpression.findQueryBNF
(Expression expression) CaseExpression.findQueryBNF
(Expression expression) CollectionExpression.findQueryBNF
(Expression expression) CollectionMemberDeclaration.findQueryBNF
(Expression expression) CollectionMemberExpression.findQueryBNF
(Expression expression) CompoundExpression.findQueryBNF
(Expression expression) ConnectByClause.findQueryBNF
(Expression expression) ConstructorExpression.findQueryBNF
(Expression expression) DeleteClause.findQueryBNF
(Expression expression) DeleteStatement.findQueryBNF
(Expression expression) EmptyCollectionComparisonExpression.findQueryBNF
(Expression expression) Expression.findQueryBNF
(Expression expression) Retrieves theJPQLQueryBNF
that represents the fragment of thisExpression
that was used when parsing the givenExpression
.GroupByClause.findQueryBNF
(Expression expression) HierarchicalQueryClause.findQueryBNF
(Expression expression) IdentificationVariableDeclaration.findQueryBNF
(Expression expression) InExpression.findQueryBNF
(Expression expression) Join.findQueryBNF
(Expression expression) LikeExpression.findQueryBNF
(Expression expression) NotExpression.findQueryBNF
(Expression expression) NullComparisonExpression.findQueryBNF
(Expression expression) NullExpression.findQueryBNF
(Expression expression) OrderByItem.findQueryBNF
(Expression expression) RangeVariableDeclaration.findQueryBNF
(Expression expression) RegexpExpression.findQueryBNF
(Expression expression) ResultVariable.findQueryBNF
(Expression expression) SelectStatement.findQueryBNF
(Expression expression) SubExpression.findQueryBNF
(Expression expression) TableVariableDeclaration.findQueryBNF
(Expression expression) final JPQLQueryBNF
TreatExpression.findQueryBNF
(Expression expression) UnionClause.findQueryBNF
(Expression expression) UnknownExpression.findQueryBNF
(Expression expression) UpdateClause.findQueryBNF
(Expression expression) UpdateItem.findQueryBNF
(Expression expression) UpdateStatement.findQueryBNF
(Expression expression) WhenClause.findQueryBNF
(Expression expression) int
QueryPosition.getPosition
(Expression expression) Returns the position of the cursor within the givenExpression
int
CollectionExpression.indexOf
(Expression expression) Retrieves the index of the givenExpression
.boolean
AbstractExpression.isAncestor
(Expression expression) boolean
Expression.isAncestor
(Expression expression) Determines whether thisExpression
is a parent of the givenExpression
.protected boolean
AbstractConditionalClause.isParsingComplete
(WordParser wordParser, String word, Expression expression) protected boolean
AbstractDoubleEncapsulatedExpression.isParsingComplete
(WordParser wordParser, String word, Expression expression) protected boolean
AbstractEncapsulatedExpression.isParsingComplete
(WordParser wordParser, String word, Expression expression) protected boolean
AbstractExpression.isParsingComplete
(WordParser wordParser, String word, Expression expression) Determines whether the parsing is complete based on what is left in the given text.protected boolean
AbstractFromClause.isParsingComplete
(WordParser wordParser, String word, Expression expression) protected boolean
AbstractTripleEncapsulatedExpression.isParsingComplete
(WordParser wordParser, String word, Expression expression) protected boolean
AndExpression.isParsingComplete
(WordParser wordParser, String word, Expression expression) protected boolean
ArithmeticExpression.isParsingComplete
(WordParser wordParser, String word, Expression expression) protected boolean
ArithmeticFactor.isParsingComplete
(WordParser wordParser, String word, Expression expression) protected boolean
BadExpression.isParsingComplete
(WordParser wordParser, String word, Expression expression) protected boolean
BetweenExpression.isParsingComplete
(WordParser wordParser, String word, Expression expression) protected boolean
CaseExpression.isParsingComplete
(WordParser wordParser, String word, Expression expression) protected boolean
CastExpression.isParsingComplete
(WordParser wordParser, String word, Expression expression) protected boolean
CollectionMemberDeclaration.isParsingComplete
(WordParser wordParser, String word, Expression expression) protected boolean
ComparisonExpression.isParsingComplete
(WordParser wordParser, String word, Expression expression) protected boolean
ConstructorExpression.isParsingComplete
(WordParser wordParser, String word, Expression expression) protected boolean
DivisionExpression.isParsingComplete
(WordParser wordParser, String word, Expression expression) protected boolean
ExtractExpression.isParsingComplete
(WordParser wordParser, String word, Expression expression) protected boolean
IdentificationVariableDeclaration.isParsingComplete
(WordParser wordParser, String word, Expression expression) protected boolean
InExpression.isParsingComplete
(WordParser wordParser, String word, Expression expression) protected boolean
Join.isParsingComplete
(WordParser wordParser, String word, Expression expression) protected boolean
LikeExpression.isParsingComplete
(WordParser wordParser, String word, Expression expression) protected boolean
LogicalExpression.isParsingComplete
(WordParser wordParser, String word, Expression expression) protected boolean
MultiplicationExpression.isParsingComplete
(WordParser wordParser, String word, Expression expression) protected boolean
NotExpression.isParsingComplete
(WordParser wordParser, String word, Expression expression) protected boolean
OnClause.isParsingComplete
(WordParser wordParser, String word, Expression expression) protected boolean
OrderByItem.isParsingComplete
(WordParser wordParser, String word, Expression expression) protected boolean
RangeVariableDeclaration.isParsingComplete
(WordParser wordParser, String word, Expression expression) protected boolean
RegexpExpression.isParsingComplete
(WordParser wordParser, String word, Expression expression) protected boolean
SelectStatement.isParsingComplete
(WordParser wordParser, String word, Expression expression) protected boolean
TableVariableDeclaration.isParsingComplete
(WordParser wordParser, String word, Expression expression) protected boolean
TreatExpression.isParsingComplete
(WordParser wordParser, String word, Expression expression) protected boolean
UnionClause.isParsingComplete
(WordParser wordParser, String word, Expression expression) protected boolean
UpdateClause.isParsingComplete
(WordParser wordParser, String word, Expression expression) protected boolean
UpdateItem.isParsingComplete
(WordParser wordParser, String word, Expression expression) protected boolean
WhenClause.isParsingComplete
(WordParser wordParser, String word, Expression expression) protected boolean
WhereClause.isParsingComplete
(WordParser wordParser, String word, Expression expression) void
QueryPosition.setExpression
(Expression expression) Sets the deepest leaf where the cursor is located.protected final void
AbstractTraverseChildrenVisitor.visit
(Expression expression) protected void
AbstractTraverseParentVisitor.visit
(Expression expression) protected void
AnonymousExpressionVisitor.visit
(Expression expression) Blindly visit the givenExpression
.protected void
ExpressionVisitorWrapper.visit
(Expression expression) Modifier and TypeMethodDescriptionprotected final void
AbstractConditionalClause.addChildrenTo
(Collection<Expression> children) protected void
AbstractDoubleEncapsulatedExpression.addChildrenTo
(Collection<Expression> children) protected void
AbstractExpression.addChildrenTo
(Collection<Expression> children) Adds the children of thisAbstractExpression
to the given collection.protected void
AbstractFromClause.addChildrenTo
(Collection<Expression> children) protected void
AbstractOrderByClause.addChildrenTo
(Collection<Expression> children) protected void
AbstractPathExpression.addChildrenTo
(Collection<Expression> children) protected void
AbstractSelectClause.addChildrenTo
(Collection<Expression> children) protected void
AbstractSelectStatement.addChildrenTo
(Collection<Expression> children) protected final void
AbstractSingleEncapsulatedExpression.addChildrenTo
(Collection<Expression> children) protected void
AbstractTripleEncapsulatedExpression.addChildrenTo
(Collection<Expression> children) protected void
ArithmeticFactor.addChildrenTo
(Collection<Expression> children) protected void
AsOfClause.addChildrenTo
(Collection<Expression> children) protected void
BadExpression.addChildrenTo
(Collection<Expression> children) protected void
BetweenExpression.addChildrenTo
(Collection<Expression> children) protected void
CaseExpression.addChildrenTo
(Collection<Expression> children) protected void
CollectionExpression.addChildrenTo
(Collection<Expression> children) protected void
CollectionMemberDeclaration.addChildrenTo
(Collection<Expression> children) protected void
CollectionMemberExpression.addChildrenTo
(Collection<Expression> children) protected final void
CompoundExpression.addChildrenTo
(Collection<Expression> children) protected void
ConnectByClause.addChildrenTo
(Collection<Expression> children) protected void
ConstructorExpression.addChildrenTo
(Collection<Expression> children) protected void
DeleteClause.addChildrenTo
(Collection<Expression> children) protected void
DeleteStatement.addChildrenTo
(Collection<Expression> children) protected void
EmptyCollectionComparisonExpression.addChildrenTo
(Collection<Expression> children) protected void
GroupByClause.addChildrenTo
(Collection<Expression> children) protected void
HierarchicalQueryClause.addChildrenTo
(Collection<Expression> children) protected void
IdentificationVariableDeclaration.addChildrenTo
(Collection<Expression> children) protected void
InExpression.addChildrenTo
(Collection<Expression> children) protected void
Join.addChildrenTo
(Collection<Expression> children) protected void
JPQLExpression.addChildrenTo
(Collection<Expression> children) protected void
LikeExpression.addChildrenTo
(Collection<Expression> children) protected void
LocalDateTime.addChildrenTo
(Collection<Expression> children) protected void
LocalExpression.addChildrenTo
(Collection<Expression> children) protected void
NotExpression.addChildrenTo
(Collection<Expression> children) protected void
NullComparisonExpression.addChildrenTo
(Collection<Expression> children) protected void
OrderByItem.addChildrenTo
(Collection<Expression> children) protected void
RangeVariableDeclaration.addChildrenTo
(Collection<Expression> children) protected void
RegexpExpression.addChildrenTo
(Collection<Expression> children) protected void
ResultVariable.addChildrenTo
(Collection<Expression> children) protected void
SelectStatement.addChildrenTo
(Collection<Expression> children) protected void
TableVariableDeclaration.addChildrenTo
(Collection<Expression> children) protected void
TreatExpression.addChildrenTo
(Collection<Expression> children) protected void
UnionClause.addChildrenTo
(Collection<Expression> children) protected void
UpdateClause.addChildrenTo
(Collection<Expression> children) protected void
UpdateItem.addChildrenTo
(Collection<Expression> children) protected void
UpdateStatement.addChildrenTo
(Collection<Expression> children) protected void
WhenClause.addChildrenTo
(Collection<Expression> children) protected final void
AbstractConditionalClause.addOrderedChildrenTo
(List<Expression> children) protected final void
AbstractEncapsulatedExpression.addOrderedChildrenTo
(List<Expression> children) protected void
AbstractExpression.addOrderedChildrenTo
(List<Expression> children) Adds the children of thisAbstractExpression
to the given list.protected void
AbstractFromClause.addOrderedChildrenTo
(List<Expression> children) protected void
AbstractOrderByClause.addOrderedChildrenTo
(List<Expression> children) protected final void
AbstractPathExpression.addOrderedChildrenTo
(List<Expression> children) protected void
AbstractSchemaName.addOrderedChildrenTo
(List<Expression> children) protected void
AbstractSelectClause.addOrderedChildrenTo
(List<Expression> children) protected void
AbstractSelectStatement.addOrderedChildrenTo
(List<Expression> children) protected void
ArithmeticFactor.addOrderedChildrenTo
(List<Expression> children) protected void
AsOfClause.addOrderedChildrenTo
(List<Expression> children) protected void
BadExpression.addOrderedChildrenTo
(List<Expression> children) protected void
BetweenExpression.addOrderedChildrenTo
(List<Expression> children) protected void
CaseExpression.addOrderedChildrenTo
(List<Expression> children) protected void
CollectionExpression.addOrderedChildrenTo
(List<Expression> children) protected void
CollectionMemberDeclaration.addOrderedChildrenTo
(List<Expression> children) protected void
CollectionMemberExpression.addOrderedChildrenTo
(List<Expression> children) protected final void
CompoundExpression.addOrderedChildrenTo
(List<Expression> children) protected void
ConnectByClause.addOrderedChildrenTo
(List<Expression> children) protected void
ConstructorExpression.addOrderedChildrenTo
(List<Expression> children) protected void
DateTime.addOrderedChildrenTo
(List<Expression> children) protected void
DeleteClause.addOrderedChildrenTo
(List<Expression> children) protected void
DeleteStatement.addOrderedChildrenTo
(List<Expression> children) protected void
EmptyCollectionComparisonExpression.addOrderedChildrenTo
(List<Expression> children) protected void
EntityTypeLiteral.addOrderedChildrenTo
(List<Expression> children) protected void
GroupByClause.addOrderedChildrenTo
(List<Expression> children) protected void
HierarchicalQueryClause.addOrderedChildrenTo
(List<Expression> children) protected void
IdentificationVariable.addOrderedChildrenTo
(List<Expression> children) protected void
IdentificationVariableDeclaration.addOrderedChildrenTo
(List<Expression> children) protected void
InExpression.addOrderedChildrenTo
(List<Expression> children) protected void
InputParameter.addOrderedChildrenTo
(List<Expression> children) protected void
Join.addOrderedChildrenTo
(List<Expression> children) protected void
JPQLExpression.addOrderedChildrenTo
(List<Expression> children) protected void
KeywordExpression.addOrderedChildrenTo
(List<Expression> children) protected void
LikeExpression.addOrderedChildrenTo
(List<Expression> children) protected void
LocalDateTime.addOrderedChildrenTo
(List<Expression> children) protected void
LocalExpression.addOrderedChildrenTo
(List<Expression> children) protected void
NotExpression.addOrderedChildrenTo
(List<Expression> children) protected void
NullComparisonExpression.addOrderedChildrenTo
(List<Expression> children) protected void
NumericLiteral.addOrderedChildrenTo
(List<Expression> children) protected void
OrderByItem.addOrderedChildrenTo
(List<Expression> children) protected void
RangeVariableDeclaration.addOrderedChildrenTo
(List<Expression> children) protected void
RegexpExpression.addOrderedChildrenTo
(List<Expression> children) protected void
ResultVariable.addOrderedChildrenTo
(List<Expression> children) protected void
SelectStatement.addOrderedChildrenTo
(List<Expression> children) protected void
StringLiteral.addOrderedChildrenTo
(List<Expression> children) protected void
TableVariableDeclaration.addOrderedChildrenTo
(List<Expression> children) protected void
UnionClause.addOrderedChildrenTo
(List<Expression> children) protected void
UnknownExpression.addOrderedChildrenTo
(List<Expression> children) protected void
UpdateClause.addOrderedChildrenTo
(List<Expression> children) protected void
UpdateItem.addOrderedChildrenTo
(List<Expression> children) protected void
UpdateStatement.addOrderedChildrenTo
(List<Expression> children) protected void
WhenClause.addOrderedChildrenTo
(List<Expression> children) protected void
AbstractDoubleEncapsulatedExpression.addOrderedEncapsulatedExpressionTo
(List<Expression> children) protected abstract void
AbstractEncapsulatedExpression.addOrderedEncapsulatedExpressionTo
(List<Expression> children) Adds theExpressions
representing the encapsulatedExpression
.protected void
AbstractSingleEncapsulatedExpression.addOrderedEncapsulatedExpressionTo
(List<Expression> children) protected void
AbstractTripleEncapsulatedExpression.addOrderedEncapsulatedExpressionTo
(List<Expression> children) protected void
AggregateFunction.addOrderedEncapsulatedExpressionTo
(List<Expression> children) protected void
CastExpression.addOrderedEncapsulatedExpressionTo
(List<Expression> children) protected void
ExtractExpression.addOrderedEncapsulatedExpressionTo
(List<Expression> children) protected void
FunctionExpression.addOrderedEncapsulatedExpressionTo
(List<Expression> children) protected void
TreatExpression.addOrderedEncapsulatedExpressionTo
(List<Expression> children) protected void
TrimExpression.addOrderedEncapsulatedExpressionTo
(List<Expression> children) -
Uses of Expression in org.eclipse.persistence.jpa.jpql.tools
Modifier and TypeClassDescriptionprotected static class
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 static interface
This helper is used to determine how to add proposals within a collection of expressions.protected static interface
This helper helps to add JPQL identifiers for the clauses that make up a query statement and also chains the clauses within the query.Modifier and TypeFieldDescriptionprotected Expression
AbstractContentAssistVisitor.FollowingInvalidExpressionVisitor.expression
TheExpression
used to determine if it follows an invalid fragment or not.protected Expression
AbstractContentAssistVisitor.InvalidExpressionVisitor.expression
protected Expression
EclipseLinkContentAssistVisitor.TableExpressionVisitor.expression
TheExpression
being visited.protected Expression
JPQLQueryContext.QueryExpressionVisitor.expression
TheExpression
that is the beginning of a query.protected Expression
AbstractContentAssistVisitor.EndingQueryPositionBuilder.invalidExpression
TheExpression
containing the invalid fragment.Modifier and TypeFieldDescriptionprotected Map
<String, Filter<Expression>> AbstractContentAssistVisitor.identifierFilters
This map contains theFilter
that is used to determine when an identifier is a valid proposal, some of them depends on the expression's type.protected static final Filter
<Expression> AbstractContentAssistVisitor.INVALID_IDENTIFIER_FILTER
ThisFilter
is used to say theExpression
is invalid without doing anything.protected Stack
<Expression> AbstractContentAssistVisitor.lockedExpressions
Used to prevent and infinite recursion when one of the visit method is virtually asking a child expression to be visited.protected static final Filter
<Expression> AbstractContentAssistVisitor.VALID_IDENTIFIER_FILTER
ThisFilter
is used to say theExpression
is valid without doing anything.Modifier and TypeMethodDescriptionprotected <T extends Expression>
voidAbstractContentAssistVisitor.visitCollectionExpression
(T expression, String identifier, AbstractContentAssistVisitor.CollectionExpressionHelper<T> helper) Adds the possible proposals for the givenexpression
based on the location of the cursor and the content of the expression.protected <T extends Expression>
voidAbstractContentAssistVisitor.visitStatement
(T expression, AbstractContentAssistVisitor.StatementHelper<T> helper) Visits the givenAbstractSelectStatement
and checks to see if the identifiers of the following clauses can be added a valid proposals.Modifier and TypeMethodDescriptionJPQLQueryContext.getActualCurrentQuery()
Returns the currentExpression
being manipulated, which is either the top-level query or a subquery.AbstractContentAssistVisitor.AbstractSelectClauseStatementHelper.getClause
(AbstractSelectStatement expression) AbstractContentAssistVisitor.DeleteClauseStatementHelper.getClause
(DeleteStatement expression) AbstractContentAssistVisitor.OrderByClauseStatementHelper.getClause
(SelectStatement expression) Returns the clause being scanned by this helper.AbstractContentAssistVisitor.UpdateClauseStatementHelper.getClause
(UpdateStatement expression) AbstractContentAssistVisitor.WhereClauseDeleteStatementHelper.getClause
(DeleteStatement expression) AbstractContentAssistVisitor.WhereClauseUpdateStatementHelper.getClause
(UpdateStatement expression) EclipseLinkContentAssistVisitor.UnionClauseStatementHelper.getClause
(SelectStatement expression) JPQLQueryContext.getCurrentQuery()
Returns the currentExpression
being manipulated, which is either the top-level query or a subquery.JPQLQueryContext.getQueryExpression
(Expression expression) Retrieves theExpression
representing the query statement (either the top-level queryJPQLExpression
or the subquerySimpleSelectStatement
) owning the givenExpression
.Modifier and TypeMethodDescriptionprotected Filter
<Expression> AbstractContentAssistVisitor.buildCollectionCompoundTypeFilter()
protected Filter
<Expression> AbstractContentAssistVisitor.buildDifferentComparisonFilter()
protected Filter
<Expression> AbstractContentAssistVisitor.buildNonCollectionCompoundTypeFilter()
protected Filter
<Expression> Modifier and TypeMethodDescriptionboolean
AbstractContentAssistVisitor.DifferentComparisonFilter.accept
(Expression expression) protected abstract boolean
AbstractContentAssistVisitor.IdentificationVariableType.add
(AbstractContentAssistVisitor contentAssist, Declaration declaration, Expression expression) Adds the identification variables defined in the givenDeclaration
.void
AbstractContentAssistVisitor.AbstractConditionalClauseCollectionHelper.addAtTheEndOfChild
(Expression expression, CollectionExpression collectionExpression, int index, boolean hasComma, boolean virtualSpace) protected void
AbstractContentAssistVisitor.addComparisonIdentifiers
(Expression expression) Adds the JPQL identifiers which correspond to the comparison operators as valid proposals.protected void
AbstractContentAssistVisitor.addCompoundIdentifier
(String identifier, Expression expression, boolean hasIs, boolean hasNot) Adds the given JPQL identifier as a valid proposal if its role isIdentifierRole.COMPOUND_FUNCTION
and the beginning starts with the current word.protected void
AbstractContentAssistVisitor.addCompoundIdentifiers
(String queryBNFId, Expression expression, boolean hasIs, boolean hasNot) Adds the JPQL identifiers that are registered with the givenJPQLQueryBNF
as valid proposals if their role isIdentifierRole.COMPOUND_FUNCTION
and the beginning starts with the current word.protected void
AbstractContentAssistVisitor.addCompoundIdentifiers
(JPQLQueryBNF queryBNF, Expression expression, boolean hasIs, boolean hasNot) Adds the JPQL identifiers that are registered with the givenJPQLQueryBNF
as valid proposals if their role isIdentifierRole.COMPOUND_FUNCTION
and the beginning starts with the current word.protected void
AbstractContentAssistVisitor.addFunctionIdentifiers
(Expression expression) Adds the JPQL identifiers for which their role isFUNCTION
by determining theJPQLQueryBNF
that represents the fragment for which the givenExpression
was parsed.protected void
AbstractContentAssistVisitor.addIdentificationVariables
(Expression expression, AbstractContentAssistVisitor.IdentificationVariableType type) Adds the possible identification variables as valid proposals but filter them based on the given type.void
AbstractContentAssistVisitor.AbstractConditionalClauseCollectionHelper.addIdentifier
(Expression expression, String identifier) protected void
AbstractContentAssistVisitor.addLeftIdentificationVariables
(Expression expression) Adds the identification variables defined in the current query's FROM clause that are declared before the givenExpression
.protected void
BasicRefactoringTool.AbstractRenamer.addTextEdit
(Expression expression, int extraOffset, String oldValue, String newValue) Adds a newTextEdit
with the given information.protected void
BasicRefactoringTool.AbstractRenamer.addTextEdit
(Expression expression, String oldValue, String newValue) Adds a newTextEdit
with the given information.void
AbstractContentAssistVisitor.AbstractConditionalClauseCollectionHelper.addTheBeginningOfChild
(Expression expression, CollectionExpression collectionExpression, int index, boolean hasComma) protected boolean
AbstractContentAssistVisitor.areArithmeticSymbolsAppendable
(Expression expression) Determines whether the givenExpression
can be followed by an arithmetic operator.protected boolean
AbstractContentAssistVisitor.areComparisonSymbolsAppendable
(Expression expression) Determines whether the givenExpression
can be followed by a comparison operator.protected boolean
AbstractContentAssistVisitor.areLogicalSymbolsAppendable
(Expression expression) Determines whether the givenExpression
can be followed by a logical operator.protected QueryPosition
AbstractContentAssistVisitor.buildEndingPositionFromInvalidExpression
(Expression invalidExpression, Expression startingPointExpression, boolean[] virtualSpace) Creates a newQueryPosition
containing the corrected positions starting at the givenExpression
and traversing the children at is always at the right side of the tree.protected JPQLQueryContext
DefaultJPQLQueryContext.buildJPQLQueryContext
(JPQLQueryContext currentContext, Expression currentQuery) protected JPQLQueryContext
EclipseLinkJPQLQueryContext.buildJPQLQueryContext
(JPQLQueryContext currentContext, Expression currentQuery) protected abstract JPQLQueryContext
JPQLQueryContext.buildJPQLQueryContext
(JPQLQueryContext currentContext, Expression currentQuery) AbstractContentAssistVisitor.buildMappingFilter
(Expression expression) boolean
AbstractContentAssistVisitor.AbstractConditionalClauseCollectionHelper.canContinue
(Expression expression, CollectionExpression collectionExpression, int index) protected IType
AbstractContentAssistVisitor.getAcceptableType
(Expression expression) Determines the rootIType
that any type should be assignable.protected CollectionExpression
AbstractContentAssistVisitor.getCollectionExpression
(Expression expression) Casts the givenExpression
to aCollectionExpression
if it is actually an object of that type.JPQLQueryContext.getDeclarationResolver
(Expression expression) Returns theDeclarationResolver
of the current query's declaration.protected IdentificationVariable
GenericSemanticValidatorHelper.getIdentificationVariable
(Expression expression) GenericSemanticValidatorHelper.getManagedType
(Expression expression) JPQLQueryContext.getMapping
(Expression expression) Returns theIMapping
for the field represented by the givenExpression
.JPQLQueryContext.getQueryExpression
(Expression expression) Retrieves theExpression
representing the query statement (either the top-level queryJPQLExpression
or the subquerySimpleSelectStatement
) owning the givenExpression
.JPQLQueryContext.getResolver
(Expression expression) Creates or retrieved the cachedResolver
for the givenExpression
.protected Object
DefaultSemanticValidator.getType
(Expression expression) GenericSemanticValidatorHelper.getType
(Expression expression) JPQLQueryContext.getType
(Expression expression) Returns theIType
of the givenExpression
.GenericSemanticValidatorHelper.getTypeDeclaration
(Expression expression) JPQLQueryContext.getTypeDeclaration
(Expression expression) Returns theITypeDeclaration
of the field handled by thisResolver
.protected boolean
AbstractContentAssistVisitor.hasClausesDefinedBetween
(Expression expression, String afterIdentifier, String beforeIdentifier) protected boolean
AbstractContentAssistVisitor.isAppendable
(Expression expression, AbstractContentAssistVisitor.AppendableType appendableType) Determines whether a certain type of JPQL identifiers can be appended to the JPQL query based on the givenExpression
.protected boolean
AbstractContentAssistVisitor.isAppendableToCollection
(Expression expression) Determines whetherprotected boolean
DefaultSemanticValidator.isBooleanType
(Expression expression) Determines whether the givenExpression
is of the correct type based on these rules: TheExpression
returns a boolean value;protected boolean
AbstractContentAssistVisitor.isClauseAppendable
(Expression expression) Determines whether the identifiers identifying clauses can be appended to the JPQL query based on the givenExpression
.protected boolean
DefaultSemanticValidator.isComparisonEquivalentType
(Expression expression1, Expression expression2) protected boolean
AbstractContentAssistVisitor.isComplete
(Expression expression) Determines whether the givenExpression
is grammatically complete.protected boolean
AbstractContentAssistVisitor.isCompoundable
(Expression expression) Determines whether the givenExpression
can be used as the left side of a compound expression.protected boolean
AbstractContentAssistVisitor.isEncapsulated
(Expression expression) Determines whether the givenExpression
is being encapsulated or not.protected boolean
DefaultSemanticValidator.isEquivalentBetweenType
(Expression expression1, Expression expression2) protected boolean
AbstractContentAssistVisitor.isFollowingInvalidExpression
(Expression expression) Determines whether the givenExpression
is preceded by an invalid expression.protected boolean
AbstractContentAssistVisitor.isInSubquery
(Expression expression) Determines whether the givenExpression
is in a subquery or in the top-level query.protected boolean
DefaultSemanticValidator.isIntegralType
(Expression expression) Determines whether the givenExpression
is of the correct type based on these rules: TheExpression
's type is an integral type (long or integer).protected boolean
AbstractContentAssistVisitor.isInvalidExpression
(Expression expression) Determines whether the givenExpression
represents an invalid fragment.protected boolean
AbstractContentAssistVisitor.isLocked
(Expression expression) Determines whether the givenExpression
has been set has the lock to prevent an infinite recursion.protected boolean
AbstractContentAssistVisitor.isNotExpression
(Expression expression) Determines whether the givenExpression
represents the negated expression.protected boolean
DefaultSemanticValidator.isNullValue
(Expression expression) protected boolean
DefaultSemanticValidator.isNumericType
(Expression expression) Determines whether the givenExpression
is of the correct type based on these rules: TheExpression
returns a numeric value;protected boolean
DefaultSemanticValidator.isStringType
(Expression expression) Determines whether the givenExpression
is of the correct type based on these rules: TheExpression
's type is a string type.protected boolean
AbstractContentAssistVisitor.isSubqueryAppendable
(Expression expression) Determines whether the JPQL identifier starting a subquery (SELECT
) can be appended based on the givenExpression
which is preceding the position of the cursor.protected boolean
EclipseLinkContentAssistVisitor.isTableExpression
(Expression expression) protected boolean
AbstractContentAssistVisitor.isValid
(Expression expression, String queryBNFId) Determines whether the givenExpression
part is an expression of the given query BNF.protected boolean
AbstractContentAssistVisitor.isValid
(Expression expression, JPQLQueryBNF queryBNF) Determines whether the givenExpression
part is an expression of the given query BNF.protected boolean
DefaultSemanticValidator.isValid
(Expression expression, Class<? extends DefaultSemanticValidator.TypeValidator> validatorClass) Determines whether the givenExpression
is of the correct type by using theDefaultSemanticValidator.TypeValidator
.protected boolean
AbstractContentAssistVisitor.isWithinInvalidExpression
(Expression expression) Determines whether the givenExpression
is part of an invalid fragmentJPQLQueryContext.literal
(Expression expression, LiteralType type) Retrieves the "literal" from the givenExpression
.int
AbstractContentAssistVisitor.AbstractConditionalClauseCollectionHelper.maxCollectionSize
(Expression expression) void
JPQLQueryContext.newSubqueryContext
(Expression currentQuery) Changes the state of this context to use the given subquery.int
AbstractContentAssistVisitor.AbstractConditionalClauseCollectionHelper.preExpressionLength
(Expression expression) void
AbstractContentAssistVisitor.EndingQueryPositionBuilder.prepare
(Expression invalidExpression) Prepares this visitor before visiting anExpression
.AbstractContentAssistVisitor.AbstractConditionalClauseCollectionHelper.queryBNF
(Expression expression, int index) GenericSemanticValidatorHelper.resolveMapping
(Expression expression) protected void
JPQLQueryContext.store
(JPQLQueryContext parent, Expression currentQuery) Stores the information contained in the given parent into this one.void
AbstractJPQLQueryHelper.validate
(Expression expression, List<JPQLQueryProblem> problems) Validates the query by introspecting it grammatically and semantically.protected boolean
DefaultSemanticValidator.validateBooleanType
(Expression expression, String messageKey) Determines whether the givenExpression
is of the correct type based on these rules: TheExpression
returns a boolean value; TheExpression
's type is a boolean type.void
AbstractJPQLQueryHelper.validateGrammar
(Expression expression, List<JPQLQueryProblem> problems) Validates the query by only introspecting it grammatically.protected boolean
DefaultSemanticValidator.validateIntegralType
(Expression expression, String queryBNF, String messageKey) Determines whether the givenExpression
is of the correct type based on these rules: TheExpression
returns a integral value; TheExpression
's type is an integral type (long or integer).protected boolean
DefaultSemanticValidator.validateNumericType
(Expression expression, String messageKey) Determines whether the givenExpression
is of the correct type based on these rules: TheExpression
returns a numeric value; TheExpression
's type is an numeric type.void
AbstractJPQLQueryHelper.validateSemantic
(Expression expression, List<JPQLQueryProblem> problems) Validates the query by only introspecting it semantically.protected boolean
DefaultSemanticValidator.validateStringType
(Expression expression, String messageKey) Determines whether the givenExpression
is of the correct type based on these rules: TheExpression
returns a String value; TheExpression
's type is a String type.protected void
AbstractContentAssistVisitor.AppendableExpressionVisitor.visit
(Expression expression) protected void
AbstractContentAssistVisitor.DifferentComparisonFilter.visit
(Expression expression) protected void
AbstractContentAssistVisitor.EncapsulatedExpressionVisitor.visit
(Expression expression) protected void
AbstractContentAssistVisitor.FollowingInvalidExpressionVisitor.visit
(Expression expression) protected void
AbstractContentAssistVisitor.visit
(Expression expression) protected void
AbstractContentAssistVisitor.VisitParentVisitor.visit
(Expression expression) protected void
BasicRefactoringTool.ClassNameRenamer.visit
(Expression expression, String value, int extraOffset) Visits the given and if its value is the same as the old class name or if the value represents an inner class of that old class name, then the givenStateObjectUpdater
will be notified to replace the value.protected void
AbstractContentAssistVisitor.visitEndingExpression
(Expression expression) protected void
AbstractContentAssistVisitor.visitInvalidExpression
(Expression expression) ModifierConstructorDescriptionprotected
DefaultJPQLQueryContext
(JPQLQueryContext parent, Expression currentQuery) Creates a new sub-DefaultJPQLQueryContext
.protected
EclipseLinkJPQLQueryContext
(JPQLQueryContext parent, Expression currentQuery) Creates a newEclipseLinkJPQLQueryContext
.protected
JPQLQueryContext
(JPQLQueryContext parent, Expression currentQuery) Creates a new sub-JPQLQueryContext
. -
Uses of Expression in org.eclipse.persistence.jpa.jpql.tools.model
Modifier and TypeMethodDescriptionprotected <T extends Expression>
List<T> BasicStateObjectBuilder.children
(Expression expression) Modifier and TypeMethodDescriptionprotected <T extends StateObject>
List<T> BasicStateObjectBuilder.buildChildren
(Expression expression) BasicStateObjectBuilder.AbstractRangeDeclarationBuilder.buildStateObject
(S parent, Expression expression) BasicStateObjectBuilder.AbstractSelectStatementBuilder.buildStateObject
(P parent, Expression expression) BasicStateObjectBuilder.CollectionMemberDeclarationBuilder.buildStateObject
(AbstractFromClauseStateObject parent, Expression expression) BasicStateObjectBuilder.DeleteStatementBuilder.buildStateObject
(JPQLQueryStateObject parent, Expression expression) BasicStateObjectBuilder.JoinBuilder.buildStateObject
(AbstractIdentificationVariableDeclarationStateObject parent, Expression expression) BasicStateObjectBuilder.SelectItemBuilder.buildStateObject
(SelectClauseStateObject parent, Expression expression) BasicStateObjectBuilder.UpdateStatementBuilder.buildStateObject
(JPQLQueryStateObject parent, Expression expression) BasicStateObjectBuilder.WhenClauseBuilder.buildStateObject
(CaseExpressionStateObject parent, Expression expression) IBuilder.buildStateObject
(S parent, Expression expression) Creates theStateObject
representation of the givenExpression
.protected final StateObject
BasicStateObjectBuilder.buildStateObjectImp
(Expression expression) Visits the givenExpression
and returned itsStateObject
.protected <T extends Expression>
List<T> BasicStateObjectBuilder.children
(Expression expression) protected String
BasicStateObjectBuilder.literal
(Expression expression, LiteralType type) Retrieves the "literal" from the givenExpression
.protected boolean
AbstractActualJPQLQueryFormatter.shouldOutput
(Expression expression) protected void
BasicStateObjectBuilder.CollectionExpressionVisitor.visit
(Expression expression) protected void
BasicStateObjectBuilder.SelectItemBuilder.visit
(Expression expression) -
Uses of Expression in org.eclipse.persistence.jpa.jpql.tools.model.query
Modifier and TypeMethodDescriptionAbstractStateObject.getExpression()
StateObject.getExpression()
Returns the actual parsed object if thisStateObject
representation of the JPQL query was created by parsing an existing JPQL query.Modifier and TypeMethodDescriptionvoid
AbstractStateObject.setExpression
(Expression expression) Sets the actual parsed object if thisStateObject
representation of the JPQL query is created by converting the parsed representation of the JPQL query. -
Uses of Expression in org.eclipse.persistence.jpa.jpql.tools.resolver
Modifier and TypeFieldDescriptionprotected Expression
Declaration.baseExpression
Either the range variable declaration if this is a range declaration otherwise the collection-valued path expression when this is a collection member declaration.protected Expression
Declaration.declarationExpression
The declaration expression, which is either anIdentificationVariableDeclaration
or aCollectionMemberDeclaration
when part of a FROM clause, otherwise it's either theDeleteClause
or theUpdateClause
.Modifier and TypeMethodDescriptionDeclaration.getBaseExpression()
Declaration.getDeclarationExpression()
Modifier and TypeMethodDescriptionprotected CollectionExpression
ResolverBuilder.getCollectionExpression
(Expression expression) Casts the givenExpression
to aCollectionExpression
if it is actually an object of that type.protected DeclarationResolver
ResolverBuilder.getDeclarationResolver
(Expression expression) Returns theDeclarationResolver
of the current query's declaration.void
DeclarationResolver.populate
(Expression expression) Visits the current query (which is either the top-level query or a subquery) and gathers the information from the declaration clause.protected Resolver
DeclarationResolver.resolveRootObject
(Expression expression) Resolves the "root" object represented by the givenExpression
.protected void
DeclarationResolver.RootObjectExpressionVisitor.visit
(Expression expression) protected void
ResolverBuilder.visitCollectionEquivalentExpression
(Expression expression, Expression extraExpression) Visits the givenExpression
and creates aResolver
that will check the type for each of its children.protected String
DeclarationResolver.visitDeclaration
(Expression expression, Expression identificationVariable)