| Package | Description |
|---|---|
| org.eclipse.persistence.jpa.jpql |
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.
|
| org.eclipse.persistence.jpa.jpql.parser |
This is the core of Hermes, this package contains the classes that can parse a JPQL query.
|
| org.eclipse.persistence.jpa.jpql.tools | |
| org.eclipse.persistence.jpa.jpql.tools.model |
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.
|
| org.eclipse.persistence.jpa.jpql.tools.model.query |
This package contains the
StateObject classes that represents a JPQL query. |
| org.eclipse.persistence.jpa.jpql.tools.resolver |
| Modifier and Type | Field and Description |
|---|---|
protected Expression |
ParameterTypeVisitor.expression
The
Expression that will help to determine the type of the input parameter. |
protected Expression |
AbstractEclipseLinkSemanticValidator.TableExpressionVisitor.expression
The
Expression being visited. |
| Modifier and Type | Field and Description |
|---|---|
protected List<Expression> |
AbstractValidator.ChildrenCollectorVisitor.expressions
The unique
Expression that was visited or the children of CollectionExpression. |
protected Set<Expression> |
ParameterTypeVisitor.visitedExpressions
This is used to prevent an infinite loop.
|
| Modifier and Type | Method and Description |
|---|---|
Expression |
JPQLQueryDeclaration.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.
|
Expression |
JPQLQueryDeclaration.getDeclarationExpression()
Returns the declaration expression, which is either an
IdentificationVariableDeclaration
or a CollectionMemberDeclaration
when part of a FROM clause, otherwise it's either the DeleteClause or the UpdateClause. |
Expression |
JPQLQueryProblem.getExpression()
Returns the parsed tree representing the JPQL query.
|
| Modifier and Type | Method and Description |
|---|---|
protected List<Expression> |
AbstractValidator.getChildren(Expression expression)
Returns a list containing either the given
Expression if it's not a CollectionExpression or the children of the given CollectionExpression. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
AbstractValidator.addProblem(Expression expression,
int startPosition,
int endPosition,
String messageKey,
String... messageArguments)
Adds a new validation problem that was found in the given
Expression. |
protected void |
AbstractValidator.addProblem(Expression expression,
int startPosition,
String messageKey,
String... messageArguments)
Adds a new validation problem that was found in the given
Expression. |
protected void |
AbstractValidator.addProblem(Expression expression,
String messageKey)
Adds a new validation problem that was found in the given
Expression. |
protected void |
AbstractValidator.addProblem(Expression expression,
String messageKey,
String... arguments)
Adds a new validation problem that was found in the given
Expression. |
protected JPQLQueryProblem |
AbstractValidator.buildProblem(Expression expression,
int startPosition,
int endPosition,
String messageKey,
String... messageArguments)
Creates a new validation problem that was found in the given
Expression. |
protected List<Expression> |
AbstractValidator.getChildren(Expression expression)
Returns a list containing either the given
Expression if it's not a CollectionExpression or the children of the given CollectionExpression. |
protected CollectionExpression |
AbstractGrammarValidator.getCollectionExpression(Expression expression)
Casts the given
Expression to a CollectionExpression if it is actually an
object of that type. |
protected CollectionValuedPathExpression |
AbstractSemanticValidator.getCollectionValuedPathExpression(Expression expression) |
Object |
SemanticValidatorHelper.getManagedType(Expression expression)
Returns the managed type by resolving the given
Expression. |
protected StateFieldPathExpression |
AbstractSemanticValidator.getStateFieldPathExpression(Expression expression) |
Object |
SemanticValidatorHelper.getType(Expression expression)
Returns the type by resolving the given
Expression. |
Object |
SemanticValidatorHelper.getTypeDeclaration(Expression expression)
Returns the type declaration for the given
Expression's type. |
protected boolean |
AbstractGrammarValidator.isCollectionExpression(Expression expression)
Determines whether the given
Expression is a CollectionExpression. |
protected boolean |
AbstractGrammarValidator.isDateTimeConstant(Expression leftExpression)
Determines whether the given
Expression represents one of the three date constants or not. |
protected boolean |
AbstractValidator.isNestedArray(Expression expression)
Determines whether the given
Expression represents a nested array or not. |
protected boolean |
AbstractGrammarValidator.isOwnedByConditionalClause(Expression expression)
Determines whether the given
Expression is a child of the WHERE or HAVING
clause of the top-level query. |
protected boolean |
AbstractGrammarValidator.isOwnedByFromClause(Expression expression)
Determines whether the given
Expression 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 given
Expression is a child of the FROM clause of a
subquery. |
protected boolean |
EclipseLinkGrammarValidator.isOwnedByUnionClause(Expression expression)
Determines whether the given
Expression is a child of the UNION clause. |
protected boolean |
AbstractValidator.isSubquery(Expression expression)
Determines whether the given
Expression is a subquery. |
protected boolean |
AbstractEclipseLinkSemanticValidator.isTableExpression(Expression expression) |
protected boolean |
AbstractValidator.isValid(Expression expression,
JPQLQueryBNF queryBNF)
Determines whether the given
Expression is valid by checking its JPQLQueryBNF
with the given JPQLQueryBNF. |
protected boolean |
AbstractValidator.isValid(Expression expression,
String... queryBNFIds)
Determines whether the given
Expression is valid by checking its JPQLQueryBNF
with the list of JPQLQueryBNF associated with the given unique identifiers. |
protected boolean |
AbstractValidator.isValid(Expression expression,
String queryBNFId)
Determines whether the given
Expression is valid by checking its JPQLQueryBNF
with the JPQLQueryBNF associated with the given unique identifier. |
protected boolean |
AbstractValidator.isValidWithChildCollectionBypass(Expression expression,
String queryBNF)
Determines whether the given
Expression part is an expression of the given query BNF. |
protected boolean |
AbstractValidator.isWithinSubquery(Expression expression)
Determines whether the given
Expression is part of a subquery. |
protected boolean |
AbstractValidator.isWithinTopLevelQuery(Expression expression)
Determines whether the given
Expression is part of the top-level query. |
protected int |
AbstractValidator.length(Expression expression)
Returns the length of the string representation of the given
Expression. |
protected String |
AbstractValidator.literal(Expression expression,
LiteralType type)
Retrieves the "literal" from the given
Expression. |
protected int |
AbstractValidator.nestedArraySize(Expression expression)
Returns the number of items in the nested array if the given
Expression represents one. |
protected int |
AbstractValidator.position(Expression expression)
Calculates the position of the given expression by calculating the length of what is before.
|
protected int |
AbstractGrammarValidator.position(Expression expression,
int... extras) |
Object |
SemanticValidatorHelper.resolveMapping(Expression expression)
Returns the mapping for the field represented by the given
Expression. |
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 given
Expression by making sure each child is separated by a comma. |
protected void |
AbstractGrammarValidator.validateCollectionSeparatedBySpace(Expression expression,
String endsWithCommaProblemKey,
String hasCommaProblemKey)
Validates the given
Expression by making sure each child is separated by a whitespace. |
protected boolean |
AbstractSemanticValidator.validateCollectionValuedPathExpression(Expression expression,
boolean collectionTypeOnly)
Validates the given
Expression 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 given
Expression and makes sure it's a valid collection value path expression. |
protected void |
AbstractValidator.visit(Expression expression)
Blindly visit the given
Expression. |
protected void |
AbstractValidator.BypassChildCollectionExpressionVisitor.visit(Expression expression)
Blindly visit the given
Expression. |
protected void |
AbstractValidator.BypassParentSubExpressionVisitor.visit(Expression expression)
Blindly visit the given
Expression. |
protected void |
AbstractValidator.ChildrenCollectorVisitor.visit(Expression expression)
Blindly visit the given
Expression. |
protected void |
AbstractValidator.JPQLQueryBNFValidator.visit(Expression expression)
Blindly visit the given
Expression. |
protected void |
AbstractSemanticValidator.ComparisonExpressionVisitor.visit(Expression expression)
Blindly visit the given
Expression. |
protected void |
AbstractSemanticValidator.FirstDeclarationVisitor.visit(Expression expression)
Blindly visit the given
Expression. |
protected void |
AbstractSemanticValidator.InItemsVisitor.visit(Expression expression)
Blindly visit the given
Expression. |
protected void |
AbstractEclipseLinkSemanticValidator.SubquerySelectItemCalculator.visit(Expression expression)
Blindly visit the given
Expression. |
protected void |
ParameterTypeVisitor.visitDoubleExpressions(Expression expression,
Expression firstExpression,
Expression secondExpression,
boolean traverseParent) |
| Modifier and Type | Class and Description |
|---|---|
class |
AbsExpression
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 |
AbstractConditionalClause
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 |
AbstractDoubleEncapsulatedExpression
This
Expression takes care of parsing an expression that encapsulates two expressions
separated by a comma. |
class |
AbstractEncapsulatedExpression
This expression handles parsing the identifier followed by an expression encapsulated within
parenthesis.
|
class |
AbstractExpression
This is the abstract definition of all the parts used to create the tree hierarchy representing
the parsed JPQL query.
|
class |
AbstractFromClause
The FROM clause of a query defines the domain of the query by declaring identification
variables.
|
class |
AbstractOrderByClause
An ordering clause allows the objects or values that are returned by the query to be ordered.
|
class |
AbstractPathExpression
An identification variable followed by the navigation operator (.) and a state field or
association field is a path expression.
|
class |
AbstractSchemaName
An abstract schema name designates the abstract schema type over which the query ranges.
|
class |
AbstractSelectClause
The SELECT clause denotes the query result.
|
class |
AbstractSelectStatement
A query is an operation that retrieves data from one or more tables or views.
|
class |
AbstractSingleEncapsulatedExpression
This expression handles parsing a JPQL identifier followed by an expression encapsulated within
parenthesis.
|
class |
AbstractTripleEncapsulatedExpression
This
Expression takes care of parsing an expression that encapsulates three expressions
separated by a comma. |
class |
AdditionExpression
One of the four binary operators.
|
class |
AggregateFunction
In the SELECT clause the result of a query may be the result of an aggregate function
applied to a path expression.
|
class |
AllOrAnyExpression
An ALL conditional expression is a predicate that is
true if the comparison
operation is true for all values in the result of the subquery or the result of the
subquery is empty. |
class |
AndExpression
The AND logical operator chains multiple criteria together.
|
class |
ArithmeticExpression
This expression represents an arithmetic expression, which means the first and second expressions
are aggregated with an arithmetic sign.
|
class |
ArithmeticFactor
This expression simply adds a plus or minus sign to the arithmetic primary expression.
|
class |
AsOfClause
An
AS 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. |
class |
AvgFunction
One of the aggregate functions.
|
class |
BadExpression
This wraps another
Expression that was correctly parsed by it is located in an invalid
location within the JPQL query. |
class |
BetweenExpression
Used in conditional expression to determine whether the result of an expression falls within an
inclusive range of values.
|
class |
CaseExpression
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 |
class |
CastExpression
The CAST function cast value to a different type.
|
class |
CoalesceExpression
A COALESCE expression returns
null if all its arguments evaluate to
null, and the value of the first non-null argument otherwise. |
class |
CollectionExpression
A
CollectionExpression wraps many expression which they are separated by spaces
and/or commas. |
class |
CollectionMemberDeclaration
An identification variable declared by a collection member declaration ranges over values of a
collection obtained by navigation using a path expression.
|
class |
CollectionMemberExpression
This expression tests whether the designated value is a member of the collection specified by the
collection-valued path expression.
|
class |
CollectionValuedPathExpression
A
collection_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. |
class |
ComparisonExpression
Only the values of like types are permitted to be compared.
|
class |
CompoundExpression
A compound expression has a left and right expressions combined by an identifier.
|
class |
ConcatExpression
The CONCAT function returns a string that is a concatenation of its arguments.
|
class |
ConnectByClause
The CONNECT BY clause allows selecting rows in a hierarchical order using the hierarchical
query clause.
|
class |
ConstructorExpression
In the SELECT clause a constructor may be used in the SELECT list to return one or
more Java instances.
|
class |
CountFunction
One of the aggregate functions.
|
class |
DatabaseType
This expression represents the database specific data type, which may include size and scale.
|
class |
DateTime
This
Expression represents a date or time. |
class |
DefaultStringExpression
An implementation of an
Expression that wraps a string. |
class |
DeleteClause
This is the delete clause of the delete statement.
|
class |
DeleteStatement
Bulk delete operation apply to entities of a single entity class (together with its subclasses,
if any).
|
class |
DivisionExpression
One of the four binary operators.
|
class |
EmptyCollectionComparisonExpression
This expression tests whether or not the collection designated by the collection-valued path
expression is empty (i.e, has no elements).
|
class |
EncapsulatedIdentificationVariableExpression
This
Expression represents an identification variable that maps a Map
property, either the key, the value or a Map.Entry). |
class |
EntityTypeLiteral
This
Expression wraps the name of an entity type. |
class |
EntryExpression
An identification variable qualified by the
ENTRY operator is a path
expression. |
class |
ExistsExpression
An EXISTS expression is a predicate that is
true only if the result of the
subquery consists of one or more values and that is false otherwise. |
class |
ExtractExpression
The EXTRACT function extracts a date part from a date/time value.
|
class |
FromClause
The FROM clause of a query defines the domain of the query by declaring identification
variables.
|
class |
FunctionExpression
This expression adds support to call native database functions.
|
class |
GroupByClause
The GROUP BY construct enables the aggregation of values according to the properties of an
entity class.
|
class |
HavingClause
The HAVING construct enables conditions to be specified that further restrict the query
result as restrictions upon the groups.
|
class |
HierarchicalQueryClause
If a table contains hierarchical data, then rows can be selected in a hierarchical order using
the hierarchical query clause.
|
class |
IdentificationVariable
An identification variable is a valid identifier declared in the FROM clause of a query.
|
class |
IdentificationVariableDeclaration
An identification variable is a valid identifier declared in the FROM clause of a query.
|
class |
IndexExpression
The INDEX function returns an integer value corresponding to the position of its argument
in an ordered list.
|
class |
InExpression
The state field path expression must have a string, numeric, or enum value.
|
class |
InputParameter
Either positional or named parameters may be used.
|
class |
Join
A JOIN enables the fetching of an association as a side effect of the execution of a query.
|
class |
JPQLExpression
A
JPQLExpression is the root of the parsed tree representation of a JPQL query. |
class |
KeyExpression
An identification variable qualified by the
KEY operator is a path
expression. |
class |
KeywordExpression
The expression representing some keywords:
TRUE, FALSE or NULL. |
class |
LengthExpression
The LENGTH function returns the length of the string in characters as an integer.
|
class |
LikeExpression
The LIKE condition is used to specify a search for a pattern.
|
class |
LocateExpression
The LOCATE function returns the position of a given string within a string, starting the
search at a specified position.
|
class |
LogicalExpression
This expression represents a logical expression, which means the first and second expressions are
aggregated with either AND or OR.
|
class |
LowerExpression
The LOWER function converts a string to lower case and it returns a string.
|
class |
MaxFunction
One of the aggregate functions.
|
class |
MinFunction
One of the aggregate functions.
|
class |
ModExpression
The modulo operation finds the remainder of division of one number by another.
|
class |
MultiplicationExpression
One of the four binary operators.
|
class |
NotExpression
BNF:
expression ::= NOT conditional_primary |
class |
NullComparisonExpression
A null comparison tests whether or not the single-valued path expression or input parameter is a
NULL value.
|
class |
NullExpression
A
null Expression is used instead of a true null, which allows
operations to be performed without doing a null check first. |
class |
NullIfExpression
NULLIF returns the first expression if the two expressions are not equal.
|
class |
NumericLiteral
Exact numeric literals support the use of Java integer literal syntax as well as SQL exact
numeric literal syntax.
|
class |
ObjectExpression
Stand-alone identification variables in the SELECT clause may optionally be qualified by
the OBJECT operator.
|
class |
OnClause
Returns an expression that allows a join ON clause to be defined.
|
class |
OrderByClause
The ORDER BY clause allows the objects or values that are returned by the query to be ordered.
|
class |
OrderByItem
An orderby_item must be one of the following:
A
state_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
A state_field_path_expression that evaluates to the same
state field of the same entity or embeddable abstract schema type as a state_field_path_expression in the SELECT clause
A result_variable that refers to an orderable item in the SELECT
clause for which the same result_variable has been specified. |
class |
OrderSiblingsByClause
In a hierarchical query, if the rows of siblings of the same parent need to be ordered, then the
ORDER SIBLINGS BY clause should be used. |
class |
OrExpression
The OR logical operator chains multiple criteria together.
|
class |
RangeVariableDeclaration
Range variable declarations allow the developer to designate a "root" for objects which may not
be reachable by navigation.
|
class |
RegexpExpression
The REGEXP condition is used to specify a search for a pattern.
|
class |
ResultVariable
A result variable may be used to name a select item in the query result.
|
class |
SelectClause
The SELECT clause queries data from entities.
|
class |
SelectStatement
A
SELECT query is an operation that retrieves data from one or more tables or
views. |
class |
SimpleFromClause
The FROM clause of a query defines the domain of the query by declaring identification
variables.
|
class |
SimpleSelectClause
The SELECT statement queries data from entities.
|
class |
SimpleSelectStatement
BNFL
subquery ::= simple_select_clause subquery_from_clause [where_clause] [groupby_clause] [having_clause] |
class |
SizeExpression
The SIZE function returns an integer value, the number of elements of the collection.
|
class |
SqrtExpression
The SQRT function takes a numeric argument and returns a double.
|
class |
StartWithClause
A
START WITH clause is optional and specifies the root row(s) of the hierarchy. |
class |
StateFieldPathExpression
A
single_valued_association_field is designated by the name of an association-field
in a one-to-one or many-to-one relationship. |
class |
StringLiteral
A string literal is enclosed in single quotes.
|
class |
SubExpression
This expression wraps a sub-expression within parenthesis.
|
class |
SubstringExpression
The second and third arguments of the SUBSTRING function denote the starting position and
length of the substring to be returned.
|
class |
SubtractionExpression
One of the four binary operators.
|
class |
SumFunction
One of the aggregate functions.
|
class |
TableExpression
Defines a table expression.
|
class |
TableVariableDeclaration
Defines a table expression.
|
class |
TreatExpression
Returns an expression that allows to treat its base as if it were a subclass of the class
returned by the base.
|
class |
TrimExpression
The TRIM function trims the specified character from a string.
|
class |
TypeExpression
An entity type expression can be used to restrict query polymorphism.
|
class |
UnionClause
The UNION clause allows the results of two queries to be combined.
|
class |
UnknownExpression
This expression contains a portion of the query that is unknown to the parser.
|
class |
UpdateClause
This is the update clause of the update statement.
|
class |
UpdateItem
The
new_value specified for an update operation must be compatible in type with the
field to which it is assigned. |
class |
UpdateStatement
The UPDATE clause of a query consists of a conditional expression used to select objects
or values that satisfy the expression.
|
class |
UpperExpression
The UPPER function converts a string to upper case and it returns a string.
|
class |
ValueExpression
An identification variable qualified by the
VALUE operator is a path
expression. |
class |
WhenClause
A WHEN predicate is used to calculate a condition and when it's true, its THEN will
be executed.
|
class |
WhereClause
The WHERE clause of a query consists of a conditional expression used to select objects or
values that satisfy the expression.
|
| Modifier and Type | Method and Description |
|---|---|
protected Expression |
AbstractExpression.buildStringExpression(char value)
Creates a new
Expression wrapping the given character value. |
protected Expression |
AbstractExpression.buildStringExpression(String value)
Creates a new
Expression wrapping the given string value. |
Expression |
AbstractFromClause.getAsOfClause()
Returns the
Expression representing the AS OF clause. |
Expression |
CaseExpression.getCaseOperand()
Returns the
Expression that represents the CASE operand. |
Expression |
CollectionExpression.getChild(int index)
Retrieves the child
Expression at the given position. |
Expression |
TreatExpression.getCollectionValuedPathExpression()
Returns the
Expression that represents the collection-valued path expression. |
Expression |
CollectionMemberExpression.getCollectionValuedPathExpression()
Returns the
Expression representing the collection-valued path expression. |
Expression |
CollectionMemberDeclaration.getCollectionValuedPathExpression()
Returns the
Expression representing the collection member, which is declared by an
identification variable. |
Expression |
AbstractConditionalClause.getConditionalExpression()
Returns the expression representing the composition of the conditional expressions.
|
Expression |
HierarchicalQueryClause.getConnectByClause()
Returns the
Expression representing the CONNECT BY clause. |
Expression |
ConstructorExpression.getConstructorItems()
Returns the constructor items aggregated into a single expression and separated by commas or
a single expression.
|
Expression |
CastExpression.getDatabaseType()
Returns the database type to cast to.
|
Expression |
AbstractFromClause.getDeclaration()
Returns the
Expression that represents the declaration of this clause. |
Expression |
CollectionMemberExpression.getEntityExpression()
Returns the
Expression representing the entity expression. |
Expression |
TreatExpression.getEntityType()
Returns the
Expression that represents the entity type that will be used to downcast
the type of the elements in the collection. |
Expression |
LikeExpression.getEscapeCharacter()
Returns the
Expression that represents the escape character, which is either a single
character or an input parameter. |
Expression |
QueryPosition.getExpression()
Returns the child
Expression where the position of the cursor is. |
Expression |
OrderByItem.getExpression()
Returns the
Expression that represents the order by expression. |
Expression |
NullComparisonExpression.getExpression()
Returns the expression being tested for being
null. |
Expression |
NotExpression.getExpression()
Returns the
Expression representing the expression that is negated. |
Expression |
InExpression.getExpression()
Returns the
Expression that represents the state field path expression or type
discriminator. |
Expression |
EmptyCollectionComparisonExpression.getExpression()
Returns the
Expression that represents the collection-valued path expression if it was
parsed. |
Expression |
ConnectByClause.getExpression()
Returns the
Expression representing the relationship expression. |
Expression |
BetweenExpression.getExpression()
Returns the
Expression representing the expression to be tested for a range of values. |
Expression |
BadExpression.getExpression()
Returns the
Expression that was parsed but grammatically, it is not a valid location. |
Expression |
AsOfClause.getExpression()
Returns the
Expression representing the timestamp or change number. |
Expression |
ArithmeticFactor.getExpression()
Returns the
Expression representing the arithmetic primary. |
Expression |
AbstractSingleEncapsulatedExpression.getExpression()
Returns the
Expression that is encapsulated within parenthesis. |
Expression |
JPQLExpression.getExpression(String actualQuery,
int position)
Returns the deepest
Expression for the given position. |
Expression |
AbstractTripleEncapsulatedExpression.getFirstExpression()
Returns the
Expression that represents the first expression. |
Expression |
AbstractDoubleEncapsulatedExpression.getFirstExpression()
Returns the
Expression that represents the first expression. |
Expression |
AbstractSelectStatement.getFromClause()
Returns the
Expression representing the FROM clause. |
Expression |
AbstractSelectStatement.getGroupByClause()
Returns the
Expression representing the GROUP BY clause. |
Expression |
GroupByClause.getGroupByItems()
Returns the
Expression that represents the list of group by items if any was parsed. |
Expression |
AbstractSelectStatement.getHavingClause()
Returns the
Expression representing the HAVING clause. |
Expression |
AbstractFromClause.getHierarchicalQueryClause()
Returns the
Expression representing the hierarchical query clause. |
Expression |
TableVariableDeclaration.getIdentificationVariable()
Returns the
Expression that represents the identification variable. |
Expression |
RangeVariableDeclaration.getIdentificationVariable()
Returns the
Expression that represents the identification variable. |
Expression |
Join.getIdentificationVariable()
Returns the
Expression that represents the identification variable. |
Expression |
CollectionMemberDeclaration.getIdentificationVariable()
Returns the
Expression representing the identification variable, which maps the
collection-valued path expression. |
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.
|
Expression |
InExpression.getInItems()
Returns the
Expression that represents the list if items. |
Expression |
Join.getJoinAssociationPath()
Returns the
Expression that represents the join association path expression. |
Expression |
IdentificationVariableDeclaration.getJoins()
Returns the unique join (fetch join) or the list of joins (fetch joins) expression.
|
Expression |
CompoundExpression.getLeftExpression()
Returns the
Expression that represents the first expression, which is before the
identifier. |
Expression |
BetweenExpression.getLowerBoundExpression()
Returns the
Expression representing the lower bound expression. |
Expression |
UpdateItem.getNewValue()
Returns the
Expression representing the new value, which is the new value of the property. |
Expression |
Join.getOnClause()
Returns the
Expression that represents the ON clause if present. |
Expression |
SelectStatement.getOrderByClause()
Returns the
Expression representing the ORDER BY clause. |
Expression |
AbstractOrderByClause.getOrderByItems()
Returns the
Expression representing the list of items to order. |
Expression |
HierarchicalQueryClause.getOrderSiblingsByClause()
Returns the
Expression representing the ORDER SIBLINGS BY clause. |
Expression |
Expression.getParent()
Returns the parent of this
Expression. |
Expression |
RegexpExpression.getPatternValue()
Returns the
Expression that represents the pattern value. |
Expression |
LikeExpression.getPatternValue()
Returns the
Expression that represents the pattern value. |
Expression |
UnionClause.getQuery()
Returns the
Expression representing the unioned query. |
Expression |
JPQLExpression.getQueryStatement()
Returns the
Expression representing the query, which is either a SELECT, a
DELETE or an UPDATE clause. |
Expression |
UpdateClause.getRangeVariableDeclaration()
Returns the
Expression representing the range variable declaration. |
Expression |
IdentificationVariableDeclaration.getRangeVariableDeclaration()
Returns the variable declaration, which is the abstract schema name and the identification
variable.
|
Expression |
DeleteClause.getRangeVariableDeclaration()
Returns the
Expression representing the range variable declaration. |
Expression |
ResultVariable.getResultVariable()
Returns the
Expression representing the result variable. |
Expression |
CompoundExpression.getRightExpression()
Returns the
Expression that represents the second expression, which is after the
identifier. |
Expression |
RangeVariableDeclaration.getRootObject()
Returns the
Expression that represents the "root" object. |
Expression |
AbstractTripleEncapsulatedExpression.getSecondExpression()
Returns the
Expression that represents the second expression. |
Expression |
AbstractDoubleEncapsulatedExpression.getSecondExpression()
Returns the
Expression that represents the second expression. |
Expression |
AbstractSelectStatement.getSelectClause()
Returns the
AbstractSelectClause representing the SELECT clause. |
Expression |
ResultVariable.getSelectExpression()
Returns the
Expression representing the select expression. |
Expression |
AbstractSelectClause.getSelectExpression()
Returns the
Expression representing the select items. |
Expression |
HierarchicalQueryClause.getStartWithClause()
Returns the
Expression representing the START WITH clause. |
Expression |
UpdateItem.getStateFieldPathExpression()
Returns the
Expression representing the state field path expression, which is the
property that should get updated. |
Expression |
RegexpExpression.getStringExpression()
Returns the
Expression that represents the string expression. |
Expression |
LikeExpression.getStringExpression()
Returns the
Expression that represents the string expression. |
Expression |
AbstractTripleEncapsulatedExpression.getThirdExpression()
Returns the
Expression that represents the first expression. |
Expression |
TrimExpression.getTrimCharacter()
Returns the character used for trimming the string.
|
Expression |
SelectStatement.getUnionClauses()
Returns the
Expression representing the UNION clauses. |
Expression |
JPQLExpression.getUnknownEndingStatement()
Returns the
Expression that may contain a portion of the query that could not be
parsed, this happens when the query is either incomplete or malformed. |
Expression |
UpdateClause.getUpdateItems()
Returns the
Expression representing the single update item or the collection of update items. |
Expression |
BetweenExpression.getUpperBoundExpression()
Returns the
Expression representing the upper bound expression. |
Expression |
UpdateStatement.getWhereClause()
Returns the
Expression representing the WHERE clause. |
Expression |
DeleteStatement.getWhereClause()
Returns the
Expression representing the WHERE clause. |
Expression |
AbstractSelectStatement.getWhereClause()
Returns the
Expression representing the WHERE clause. |
| Modifier and Type | Method and Description |
|---|---|
ListIterable<Expression> |
Expression.children()
Returns the children of this
Expression. |
ListIterable<Expression> |
AbstractExpression.children()
Returns the children of this
Expression. |
ListIterable<Expression> |
Expression.orderedChildren()
Returns the list representing this
Expression and its children. |
ListIterable<Expression> |
AbstractExpression.orderedChildren()
Returns the list representing this
Expression and its children. |
| Modifier and Type | Method and Description |
|---|---|
void |
QueryPosition.addPosition(Expression expression,
int position)
Adds the position of the cursor within the given
Expression |
protected int |
AbstractExpression.calculatePosition(Expression expression,
int length)
Calculates the position of the given
Expression by calculating the length of what is before. |
JPQLQueryBNF |
WhenClause.findQueryBNF(Expression expression)
Retrieves the
JPQLQueryBNF that represents the fragment of this Expression
that was used when parsing the given Expression. |
JPQLQueryBNF |
UpdateStatement.findQueryBNF(Expression expression)
Retrieves the
JPQLQueryBNF that represents the fragment of this Expression
that was used when parsing the given Expression. |
JPQLQueryBNF |
UpdateItem.findQueryBNF(Expression expression)
Retrieves the
JPQLQueryBNF that represents the fragment of this Expression
that was used when parsing the given Expression. |
JPQLQueryBNF |
UpdateClause.findQueryBNF(Expression expression)
Retrieves the
JPQLQueryBNF that represents the fragment of this Expression
that was used when parsing the given Expression. |
JPQLQueryBNF |
UnknownExpression.findQueryBNF(Expression expression)
Retrieves the
JPQLQueryBNF that represents the fragment of this Expression
that was used when parsing the given Expression. |
JPQLQueryBNF |
UnionClause.findQueryBNF(Expression expression)
Retrieves the
JPQLQueryBNF that represents the fragment of this Expression
that was used when parsing the given Expression. |
JPQLQueryBNF |
TreatExpression.findQueryBNF(Expression expression)
Retrieves the
JPQLQueryBNF that represents the fragment of this Expression
that was used when parsing the given Expression. |
JPQLQueryBNF |
TableVariableDeclaration.findQueryBNF(Expression expression)
Retrieves the
JPQLQueryBNF that represents the fragment of this Expression
that was used when parsing the given Expression. |
JPQLQueryBNF |
SubExpression.findQueryBNF(Expression expression)
Retrieves the
JPQLQueryBNF that represents the fragment of this Expression
that was used when parsing the given Expression. |
JPQLQueryBNF |
SelectStatement.findQueryBNF(Expression expression)
Retrieves the
JPQLQueryBNF that represents the fragment of this Expression
that was used when parsing the given Expression. |
JPQLQueryBNF |
ResultVariable.findQueryBNF(Expression expression)
Retrieves the
JPQLQueryBNF that represents the fragment of this Expression
that was used when parsing the given Expression. |
JPQLQueryBNF |
RegexpExpression.findQueryBNF(Expression expression)
Retrieves the
JPQLQueryBNF that represents the fragment of this Expression
that was used when parsing the given Expression. |
JPQLQueryBNF |
RangeVariableDeclaration.findQueryBNF(Expression expression)
Retrieves the
JPQLQueryBNF that represents the fragment of this Expression
that was used when parsing the given Expression. |
JPQLQueryBNF |
OrderByItem.findQueryBNF(Expression expression)
Retrieves the
JPQLQueryBNF that represents the fragment of this Expression
that was used when parsing the given Expression. |
JPQLQueryBNF |
NullExpression.findQueryBNF(Expression expression)
Retrieves the
JPQLQueryBNF that represents the fragment of this Expression
that was used when parsing the given Expression. |
JPQLQueryBNF |
NullComparisonExpression.findQueryBNF(Expression expression)
Retrieves the
JPQLQueryBNF that represents the fragment of this Expression
that was used when parsing the given Expression. |
JPQLQueryBNF |
NotExpression.findQueryBNF(Expression expression)
Retrieves the
JPQLQueryBNF that represents the fragment of this Expression
that was used when parsing the given Expression. |
JPQLQueryBNF |
LikeExpression.findQueryBNF(Expression expression)
Retrieves the
JPQLQueryBNF that represents the fragment of this Expression
that was used when parsing the given Expression. |
JPQLQueryBNF |
Join.findQueryBNF(Expression expression)
Retrieves the
JPQLQueryBNF that represents the fragment of this Expression
that was used when parsing the given Expression. |
JPQLQueryBNF |
InExpression.findQueryBNF(Expression expression)
Retrieves the
JPQLQueryBNF that represents the fragment of this Expression
that was used when parsing the given Expression. |
JPQLQueryBNF |
IdentificationVariableDeclaration.findQueryBNF(Expression expression)
Retrieves the
JPQLQueryBNF that represents the fragment of this Expression
that was used when parsing the given Expression. |
JPQLQueryBNF |
HierarchicalQueryClause.findQueryBNF(Expression expression)
Retrieves the
JPQLQueryBNF that represents the fragment of this Expression
that was used when parsing the given Expression. |
JPQLQueryBNF |
GroupByClause.findQueryBNF(Expression expression)
Retrieves the
JPQLQueryBNF that represents the fragment of this Expression
that was used when parsing the given Expression. |
JPQLQueryBNF |
Expression.findQueryBNF(Expression expression)
Retrieves the
JPQLQueryBNF that represents the fragment of this Expression
that was used when parsing the given Expression. |
JPQLQueryBNF |
EmptyCollectionComparisonExpression.findQueryBNF(Expression expression)
Retrieves the
JPQLQueryBNF that represents the fragment of this Expression
that was used when parsing the given Expression. |
JPQLQueryBNF |
DeleteStatement.findQueryBNF(Expression expression)
Retrieves the
JPQLQueryBNF that represents the fragment of this Expression
that was used when parsing the given Expression. |
JPQLQueryBNF |
DeleteClause.findQueryBNF(Expression expression)
Retrieves the
JPQLQueryBNF that represents the fragment of this Expression
that was used when parsing the given Expression. |
JPQLQueryBNF |
ConstructorExpression.findQueryBNF(Expression expression)
Retrieves the
JPQLQueryBNF that represents the fragment of this Expression
that was used when parsing the given Expression. |
JPQLQueryBNF |
ConnectByClause.findQueryBNF(Expression expression)
Retrieves the
JPQLQueryBNF that represents the fragment of this Expression
that was used when parsing the given Expression. |
JPQLQueryBNF |
CompoundExpression.findQueryBNF(Expression expression)
Retrieves the
JPQLQueryBNF that represents the fragment of this Expression
that was used when parsing the given Expression. |
JPQLQueryBNF |
CollectionMemberExpression.findQueryBNF(Expression expression)
Retrieves the
JPQLQueryBNF that represents the fragment of this Expression
that was used when parsing the given Expression. |
JPQLQueryBNF |
CollectionMemberDeclaration.findQueryBNF(Expression expression)
Retrieves the
JPQLQueryBNF that represents the fragment of this Expression
that was used when parsing the given Expression. |
JPQLQueryBNF |
CollectionExpression.findQueryBNF(Expression expression)
Retrieves the
JPQLQueryBNF that represents the fragment of this Expression
that was used when parsing the given Expression. |
JPQLQueryBNF |
CaseExpression.findQueryBNF(Expression expression)
Retrieves the
JPQLQueryBNF that represents the fragment of this Expression
that was used when parsing the given Expression. |
JPQLQueryBNF |
BetweenExpression.findQueryBNF(Expression expression)
Retrieves the
JPQLQueryBNF that represents the fragment of this Expression
that was used when parsing the given Expression. |
JPQLQueryBNF |
BadExpression.findQueryBNF(Expression expression)
Retrieves the
JPQLQueryBNF that represents the fragment of this Expression
that was used when parsing the given Expression. |
JPQLQueryBNF |
AsOfClause.findQueryBNF(Expression expression)
Retrieves the
JPQLQueryBNF that represents the fragment of this Expression
that was used when parsing the given Expression. |
JPQLQueryBNF |
ArithmeticFactor.findQueryBNF(Expression expression)
Retrieves the
JPQLQueryBNF that represents the fragment of this Expression
that was used when parsing the given Expression. |
JPQLQueryBNF |
ArithmeticExpression.findQueryBNF(Expression expression)
Retrieves the
JPQLQueryBNF that represents the fragment of this Expression
that was used when parsing the given Expression. |
JPQLQueryBNF |
AbstractTripleEncapsulatedExpression.findQueryBNF(Expression expression)
Retrieves the
JPQLQueryBNF that represents the fragment of this Expression
that was used when parsing the given Expression. |
JPQLQueryBNF |
AbstractSingleEncapsulatedExpression.findQueryBNF(Expression expression)
Retrieves the
JPQLQueryBNF that represents the fragment of this Expression
that was used when parsing the given Expression. |
JPQLQueryBNF |
AbstractSelectStatement.findQueryBNF(Expression expression)
Retrieves the
JPQLQueryBNF that represents the fragment of this Expression
that was used when parsing the given Expression. |
JPQLQueryBNF |
AbstractSelectClause.findQueryBNF(Expression expression)
Retrieves the
JPQLQueryBNF that represents the fragment of this Expression
that was used when parsing the given Expression. |
JPQLQueryBNF |
AbstractPathExpression.findQueryBNF(Expression expression)
Retrieves the
JPQLQueryBNF that represents the fragment of this Expression
that was used when parsing the given Expression. |
JPQLQueryBNF |
AbstractOrderByClause.findQueryBNF(Expression expression)
Retrieves the
JPQLQueryBNF that represents the fragment of this Expression
that was used when parsing the given Expression. |
JPQLQueryBNF |
AbstractFromClause.findQueryBNF(Expression expression)
Retrieves the
JPQLQueryBNF that represents the fragment of this Expression
that was used when parsing the given Expression. |
JPQLQueryBNF |
AbstractExpression.findQueryBNF(Expression expression)
Retrieves the
JPQLQueryBNF that represents the fragment of this Expression
that was used when parsing the given Expression. |
JPQLQueryBNF |
AbstractDoubleEncapsulatedExpression.findQueryBNF(Expression expression)
Retrieves the
JPQLQueryBNF that represents the fragment of this Expression
that was used when parsing the given Expression. |
JPQLQueryBNF |
AbstractConditionalClause.findQueryBNF(Expression expression)
Retrieves the
JPQLQueryBNF that represents the fragment of this Expression
that was used when parsing the given Expression. |
int |
QueryPosition.getPosition(Expression expression)
Returns the position of the cursor within the given
Expression |
int |
CollectionExpression.indexOf(Expression expression)
Retrieves the index of the given
Expression. |
boolean |
Expression.isAncestor(Expression expression)
Determines whether this
Expression is a parent of the given Expression. |
boolean |
AbstractExpression.isAncestor(Expression expression)
Determines whether this
Expression is a parent of the given Expression. |
protected boolean |
WhereClause.isParsingComplete(WordParser wordParser,
String word,
Expression expression)
Determines whether the parsing is complete based on what is left in the given text.
|
protected boolean |
WhenClause.isParsingComplete(WordParser wordParser,
String word,
Expression expression)
Determines whether the parsing is complete based on what is left in the given text.
|
protected boolean |
UpdateItem.isParsingComplete(WordParser wordParser,
String word,
Expression expression)
Determines whether the parsing is complete based on what is left in the given text.
|
protected boolean |
UpdateClause.isParsingComplete(WordParser wordParser,
String word,
Expression expression)
Determines whether the parsing is complete based on what is left in the given text.
|
protected boolean |
UnionClause.isParsingComplete(WordParser wordParser,
String word,
Expression expression)
Determines whether the parsing is complete based on what is left in the given text.
|
protected boolean |
TreatExpression.isParsingComplete(WordParser wordParser,
String word,
Expression expression)
Determines whether the parsing is complete based on what is left in the given text.
|
protected boolean |
TableVariableDeclaration.isParsingComplete(WordParser wordParser,
String word,
Expression expression)
Determines whether the parsing is complete based on what is left in the given text.
|
protected boolean |
SelectStatement.isParsingComplete(WordParser wordParser,
String word,
Expression expression)
Determines whether the parsing is complete based on what is left in the given text.
|
protected boolean |
RegexpExpression.isParsingComplete(WordParser wordParser,
String word,
Expression expression)
Determines whether the parsing is complete based on what is left in the given text.
|
protected boolean |
RangeVariableDeclaration.isParsingComplete(WordParser wordParser,
String word,
Expression expression)
Determines whether the parsing is complete based on what is left in the given text.
|
protected boolean |
OrderByItem.isParsingComplete(WordParser wordParser,
String word,
Expression expression)
Determines whether the parsing is complete based on what is left in the given text.
|
protected boolean |
OnClause.isParsingComplete(WordParser wordParser,
String word,
Expression expression)
Determines whether the parsing is complete based on what is left in the given text.
|
protected boolean |
NotExpression.isParsingComplete(WordParser wordParser,
String word,
Expression expression)
Determines whether the parsing is complete based on what is left in the given text.
|
protected boolean |
MultiplicationExpression.isParsingComplete(WordParser wordParser,
String word,
Expression expression)
Determines whether the parsing is complete based on what is left in the given text.
|
protected boolean |
LogicalExpression.isParsingComplete(WordParser wordParser,
String word,
Expression expression)
Determines whether the parsing is complete based on what is left in the given text.
|
protected boolean |
LikeExpression.isParsingComplete(WordParser wordParser,
String word,
Expression expression)
Determines whether the parsing is complete based on what is left in the given text.
|
protected boolean |
Join.isParsingComplete(WordParser wordParser,
String word,
Expression expression)
Determines whether the parsing is complete based on what is left in the given text.
|
protected boolean |
InExpression.isParsingComplete(WordParser wordParser,
String word,
Expression expression)
Determines whether the parsing is complete based on what is left in the given text.
|
protected boolean |
IdentificationVariableDeclaration.isParsingComplete(WordParser wordParser,
String word,
Expression expression)
Determines whether the parsing is complete based on what is left in the given text.
|
protected boolean |
ExtractExpression.isParsingComplete(WordParser wordParser,
String word,
Expression expression)
Determines whether the parsing is complete based on what is left in the given text.
|
protected boolean |
DivisionExpression.isParsingComplete(WordParser wordParser,
String word,
Expression expression)
Determines whether the parsing is complete based on what is left in the given text.
|
protected boolean |
ConstructorExpression.isParsingComplete(WordParser wordParser,
String word,
Expression expression)
Determines whether the parsing is complete based on what is left in the given text.
|
protected boolean |
ComparisonExpression.isParsingComplete(WordParser wordParser,
String word,
Expression expression)
Determines whether the parsing is complete based on what is left in the given text.
|
protected boolean |
CollectionMemberDeclaration.isParsingComplete(WordParser wordParser,
String word,
Expression expression)
Determines whether the parsing is complete based on what is left in the given text.
|
protected boolean |
CastExpression.isParsingComplete(WordParser wordParser,
String word,
Expression expression)
Determines whether the parsing is complete based on what is left in the given text.
|
protected boolean |
CaseExpression.isParsingComplete(WordParser wordParser,
String word,
Expression expression)
Determines whether the parsing is complete based on what is left in the given text.
|
protected boolean |
BetweenExpression.isParsingComplete(WordParser wordParser,
String word,
Expression expression)
Determines whether the parsing is complete based on what is left in the given text.
|
protected boolean |
BadExpression.isParsingComplete(WordParser wordParser,
String word,
Expression expression)
Determines whether the parsing is complete based on what is left in the given text.
|
protected boolean |
ArithmeticFactor.isParsingComplete(WordParser wordParser,
String word,
Expression expression)
Determines whether the parsing is complete based on what is left in the given text.
|
protected boolean |
ArithmeticExpression.isParsingComplete(WordParser wordParser,
String word,
Expression expression)
Determines whether the parsing is complete based on what is left in the given text.
|
protected boolean |
AndExpression.isParsingComplete(WordParser wordParser,
String word,
Expression expression)
Determines whether the parsing is complete based on what is left in the given text.
|
protected boolean |
AbstractTripleEncapsulatedExpression.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)
Determines whether the parsing is complete based on what is left in the given text.
|
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 |
AbstractEncapsulatedExpression.isParsingComplete(WordParser wordParser,
String word,
Expression expression)
Determines whether the parsing is complete based on what is left in the given text.
|
protected boolean |
AbstractDoubleEncapsulatedExpression.isParsingComplete(WordParser wordParser,
String word,
Expression expression)
Determines whether the parsing is complete based on what is left in the given text.
|
protected boolean |
AbstractConditionalClause.isParsingComplete(WordParser wordParser,
String word,
Expression expression)
Determines whether the parsing is complete based on what is left in the given text.
|
void |
QueryPosition.setExpression(Expression expression)
Sets the deepest leaf where the cursor is located.
|
protected void |
ExpressionVisitorWrapper.visit(Expression expression)
Blindly visit the given
Expression. |
protected void |
AnonymousExpressionVisitor.visit(Expression expression)
Blindly visit the given
Expression. |
protected void |
AbstractTraverseParentVisitor.visit(Expression expression)
Blindly visit the given
Expression. |
protected void |
AbstractTraverseChildrenVisitor.visit(Expression expression)
Blindly visit the given
Expression. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
WhenClause.addChildrenTo(Collection<Expression> children)
Adds the children of this
AbstractExpression to the given collection. |
protected void |
UpdateStatement.addChildrenTo(Collection<Expression> children)
Adds the children of this
AbstractExpression to the given collection. |
protected void |
UpdateItem.addChildrenTo(Collection<Expression> children)
Adds the children of this
AbstractExpression to the given collection. |
protected void |
UpdateClause.addChildrenTo(Collection<Expression> children)
Adds the children of this
AbstractExpression to the given collection. |
protected void |
UnionClause.addChildrenTo(Collection<Expression> children)
Adds the children of this
AbstractExpression to the given collection. |
protected void |
TreatExpression.addChildrenTo(Collection<Expression> children)
Adds the children of this
AbstractExpression to the given collection. |
protected void |
TableVariableDeclaration.addChildrenTo(Collection<Expression> children)
Adds the children of this
AbstractExpression to the given collection. |
protected void |
SelectStatement.addChildrenTo(Collection<Expression> children)
Adds the children of this
AbstractExpression to the given collection. |
protected void |
ResultVariable.addChildrenTo(Collection<Expression> children)
Adds the children of this
AbstractExpression to the given collection. |
protected void |
RegexpExpression.addChildrenTo(Collection<Expression> children)
Adds the children of this
AbstractExpression to the given collection. |
protected void |
RangeVariableDeclaration.addChildrenTo(Collection<Expression> children)
Adds the children of this
AbstractExpression to the given collection. |
protected void |
OrderByItem.addChildrenTo(Collection<Expression> children)
Adds the children of this
AbstractExpression to the given collection. |
protected void |
NullComparisonExpression.addChildrenTo(Collection<Expression> children)
Adds the children of this
AbstractExpression to the given collection. |
protected void |
NotExpression.addChildrenTo(Collection<Expression> children)
Adds the children of this
AbstractExpression to the given collection. |
protected void |
LikeExpression.addChildrenTo(Collection<Expression> children)
Adds the children of this
AbstractExpression to the given collection. |
protected void |
Join.addChildrenTo(Collection<Expression> children)
Adds the children of this
AbstractExpression to the given collection. |
protected void |
JPQLExpression.addChildrenTo(Collection<Expression> children)
Adds the children of this
AbstractExpression to the given collection. |
protected void |
InExpression.addChildrenTo(Collection<Expression> children)
Adds the children of this
AbstractExpression to the given collection. |
protected void |
IdentificationVariableDeclaration.addChildrenTo(Collection<Expression> children)
Adds the children of this
AbstractExpression to the given collection. |
protected void |
HierarchicalQueryClause.addChildrenTo(Collection<Expression> children)
Adds the children of this
AbstractExpression to the given collection. |
protected void |
GroupByClause.addChildrenTo(Collection<Expression> children)
Adds the children of this
AbstractExpression to the given collection. |
protected void |
EmptyCollectionComparisonExpression.addChildrenTo(Collection<Expression> children)
Adds the children of this
AbstractExpression to the given collection. |
protected void |
DeleteStatement.addChildrenTo(Collection<Expression> children)
Adds the children of this
AbstractExpression to the given collection. |
protected void |
DeleteClause.addChildrenTo(Collection<Expression> children)
Adds the children of this
AbstractExpression to the given collection. |
protected void |
ConstructorExpression.addChildrenTo(Collection<Expression> children)
Adds the children of this
AbstractExpression to the given collection. |
protected void |
ConnectByClause.addChildrenTo(Collection<Expression> children)
Adds the children of this
AbstractExpression to the given collection. |
protected void |
CompoundExpression.addChildrenTo(Collection<Expression> children)
Adds the children of this
AbstractExpression to the given collection. |
protected void |
CollectionMemberExpression.addChildrenTo(Collection<Expression> children)
Adds the children of this
AbstractExpression to the given collection. |
protected void |
CollectionMemberDeclaration.addChildrenTo(Collection<Expression> children)
Adds the children of this
AbstractExpression to the given collection. |
protected void |
CollectionExpression.addChildrenTo(Collection<Expression> children)
Adds the children of this
AbstractExpression to the given collection. |
protected void |
CaseExpression.addChildrenTo(Collection<Expression> children)
Adds the children of this
AbstractExpression to the given collection. |
protected void |
BetweenExpression.addChildrenTo(Collection<Expression> children)
Adds the children of this
AbstractExpression to the given collection. |
protected void |
BadExpression.addChildrenTo(Collection<Expression> children)
Adds the children of this
AbstractExpression to the given collection. |
protected void |
AsOfClause.addChildrenTo(Collection<Expression> children)
Adds the children of this
AbstractExpression to the given collection. |
protected void |
ArithmeticFactor.addChildrenTo(Collection<Expression> children)
Adds the children of this
AbstractExpression to the given collection. |
protected void |
AbstractTripleEncapsulatedExpression.addChildrenTo(Collection<Expression> children)
Adds the children of this
AbstractExpression to the given collection. |
protected void |
AbstractSingleEncapsulatedExpression.addChildrenTo(Collection<Expression> children)
Adds the children of this
AbstractExpression to the given collection. |
protected void |
AbstractSelectStatement.addChildrenTo(Collection<Expression> children)
Adds the children of this
AbstractExpression to the given collection. |
protected void |
AbstractSelectClause.addChildrenTo(Collection<Expression> children)
Adds the children of this
AbstractExpression to the given collection. |
protected void |
AbstractPathExpression.addChildrenTo(Collection<Expression> children)
Adds the children of this
AbstractExpression to the given collection. |
protected void |
AbstractOrderByClause.addChildrenTo(Collection<Expression> children)
Adds the children of this
AbstractExpression to the given collection. |
protected void |
AbstractFromClause.addChildrenTo(Collection<Expression> children)
Adds the children of this
AbstractExpression to the given collection. |
protected void |
AbstractExpression.addChildrenTo(Collection<Expression> children)
Adds the children of this
AbstractExpression to the given collection. |
protected void |
AbstractDoubleEncapsulatedExpression.addChildrenTo(Collection<Expression> children)
Adds the children of this
AbstractExpression to the given collection. |
protected void |
AbstractConditionalClause.addChildrenTo(Collection<Expression> children)
Adds the children of this
AbstractExpression to the given collection. |
protected void |
WhenClause.addOrderedChildrenTo(List<Expression> children)
Adds the children of this
AbstractExpression to the given list. |
protected void |
UpdateStatement.addOrderedChildrenTo(List<Expression> children)
Adds the children of this
AbstractExpression to the given list. |
protected void |
UpdateItem.addOrderedChildrenTo(List<Expression> children)
Adds the children of this
AbstractExpression to the given list. |
protected void |
UpdateClause.addOrderedChildrenTo(List<Expression> children)
Adds the children of this
AbstractExpression to the given list. |
protected void |
UnknownExpression.addOrderedChildrenTo(List<Expression> children)
Adds the children of this
AbstractExpression to the given list. |
protected void |
UnionClause.addOrderedChildrenTo(List<Expression> children)
Adds the children of this
AbstractExpression to the given list. |
protected void |
TableVariableDeclaration.addOrderedChildrenTo(List<Expression> children)
Adds the children of this
AbstractExpression to the given list. |
protected void |
StringLiteral.addOrderedChildrenTo(List<Expression> children)
Adds the children of this
AbstractExpression to the given list. |
protected void |
SelectStatement.addOrderedChildrenTo(List<Expression> children)
Adds the children of this
AbstractExpression to the given list. |
protected void |
ResultVariable.addOrderedChildrenTo(List<Expression> children)
Adds the children of this
AbstractExpression to the given list. |
protected void |
RegexpExpression.addOrderedChildrenTo(List<Expression> children)
Adds the children of this
AbstractExpression to the given list. |
protected void |
RangeVariableDeclaration.addOrderedChildrenTo(List<Expression> children)
Adds the children of this
AbstractExpression to the given list. |
protected void |
OrderByItem.addOrderedChildrenTo(List<Expression> children)
Adds the children of this
AbstractExpression to the given list. |
protected void |
NumericLiteral.addOrderedChildrenTo(List<Expression> children)
Adds the children of this
AbstractExpression to the given list. |
protected void |
NullComparisonExpression.addOrderedChildrenTo(List<Expression> children)
Adds the children of this
AbstractExpression to the given list. |
protected void |
NotExpression.addOrderedChildrenTo(List<Expression> children)
Adds the children of this
AbstractExpression to the given list. |
protected void |
LikeExpression.addOrderedChildrenTo(List<Expression> children)
Adds the children of this
AbstractExpression to the given list. |
protected void |
KeywordExpression.addOrderedChildrenTo(List<Expression> children)
Adds the children of this
AbstractExpression to the given list. |
protected void |
Join.addOrderedChildrenTo(List<Expression> children)
Adds the children of this
AbstractExpression to the given list. |
protected void |
JPQLExpression.addOrderedChildrenTo(List<Expression> children)
Adds the children of this
AbstractExpression to the given list. |
protected void |
InputParameter.addOrderedChildrenTo(List<Expression> children)
Adds the children of this
AbstractExpression to the given list. |
protected void |
InExpression.addOrderedChildrenTo(List<Expression> children)
Adds the children of this
AbstractExpression to the given list. |
protected void |
IdentificationVariableDeclaration.addOrderedChildrenTo(List<Expression> children)
Adds the children of this
AbstractExpression to the given list. |
protected void |
IdentificationVariable.addOrderedChildrenTo(List<Expression> children)
Adds the children of this
AbstractExpression to the given list. |
protected void |
HierarchicalQueryClause.addOrderedChildrenTo(List<Expression> children)
Adds the children of this
AbstractExpression to the given list. |
protected void |
GroupByClause.addOrderedChildrenTo(List<Expression> children)
Adds the children of this
AbstractExpression to the given list. |
protected void |
EntityTypeLiteral.addOrderedChildrenTo(List<Expression> children)
Adds the children of this
AbstractExpression to the given list. |
protected void |
EmptyCollectionComparisonExpression.addOrderedChildrenTo(List<Expression> children)
Adds the children of this
AbstractExpression to the given list. |
protected void |
DeleteStatement.addOrderedChildrenTo(List<Expression> children)
Adds the children of this
AbstractExpression to the given list. |
protected void |
DeleteClause.addOrderedChildrenTo(List<Expression> children)
Adds the children of this
AbstractExpression to the given list. |
protected void |
DateTime.addOrderedChildrenTo(List<Expression> children)
Adds the children of this
AbstractExpression to the given list. |
protected void |
ConstructorExpression.addOrderedChildrenTo(List<Expression> children)
Adds the children of this
AbstractExpression to the given list. |
protected void |
ConnectByClause.addOrderedChildrenTo(List<Expression> children)
Adds the children of this
AbstractExpression to the given list. |
protected void |
CompoundExpression.addOrderedChildrenTo(List<Expression> children)
Adds the children of this
AbstractExpression to the given list. |
protected void |
CollectionMemberExpression.addOrderedChildrenTo(List<Expression> children)
Adds the children of this
AbstractExpression to the given list. |
protected void |
CollectionMemberDeclaration.addOrderedChildrenTo(List<Expression> children)
Adds the children of this
AbstractExpression to the given list. |
protected void |
CollectionExpression.addOrderedChildrenTo(List<Expression> children)
Adds the children of this
AbstractExpression to the given list. |
protected void |
CaseExpression.addOrderedChildrenTo(List<Expression> children)
Adds the children of this
AbstractExpression to the given list. |
protected void |
BetweenExpression.addOrderedChildrenTo(List<Expression> children)
Adds the children of this
AbstractExpression to the given list. |
protected void |
BadExpression.addOrderedChildrenTo(List<Expression> children)
Adds the children of this
AbstractExpression to the given list. |
protected void |
AsOfClause.addOrderedChildrenTo(List<Expression> children)
Adds the children of this
AbstractExpression to the given list. |
protected void |
ArithmeticFactor.addOrderedChildrenTo(List<Expression> children)
Adds the children of this
AbstractExpression to the given list. |
protected void |
AbstractSelectStatement.addOrderedChildrenTo(List<Expression> children)
Adds the children of this
AbstractExpression to the given list. |
protected void |
AbstractSelectClause.addOrderedChildrenTo(List<Expression> children)
Adds the children of this
AbstractExpression to the given list. |
protected void |
AbstractSchemaName.addOrderedChildrenTo(List<Expression> children)
Adds the children of this
AbstractExpression to the given list. |
protected void |
AbstractPathExpression.addOrderedChildrenTo(List<Expression> children)
Adds the children of this
AbstractExpression to the given list. |
protected void |
AbstractOrderByClause.addOrderedChildrenTo(List<Expression> children)
Adds the children of this
AbstractExpression to the given list. |
protected void |
AbstractFromClause.addOrderedChildrenTo(List<Expression> children)
Adds the children of this
AbstractExpression to the given list. |
protected void |
AbstractExpression.addOrderedChildrenTo(List<Expression> children)
Adds the children of this
AbstractExpression to the given list. |
protected void |
AbstractEncapsulatedExpression.addOrderedChildrenTo(List<Expression> children)
Adds the children of this
AbstractExpression to the given list. |
protected void |
AbstractConditionalClause.addOrderedChildrenTo(List<Expression> children)
Adds the children of this
AbstractExpression to the given list. |
protected void |
TrimExpression.addOrderedEncapsulatedExpressionTo(List<Expression> children)
Adds the
Expressions representing the encapsulated Expression. |
protected void |
TreatExpression.addOrderedEncapsulatedExpressionTo(List<Expression> children)
Adds the
Expressions representing the encapsulated Expression. |
protected void |
FunctionExpression.addOrderedEncapsulatedExpressionTo(List<Expression> children)
Adds the
Expressions representing the encapsulated Expression. |
protected void |
ExtractExpression.addOrderedEncapsulatedExpressionTo(List<Expression> children)
Adds the
Expressions representing the encapsulated Expression. |
protected void |
CastExpression.addOrderedEncapsulatedExpressionTo(List<Expression> children)
Adds the
Expressions representing the encapsulated Expression. |
protected void |
AggregateFunction.addOrderedEncapsulatedExpressionTo(List<Expression> children)
Adds the
Expressions representing the encapsulated Expression. |
protected void |
AbstractTripleEncapsulatedExpression.addOrderedEncapsulatedExpressionTo(List<Expression> children)
Adds the
Expressions representing the encapsulated Expression. |
protected void |
AbstractSingleEncapsulatedExpression.addOrderedEncapsulatedExpressionTo(List<Expression> children)
Adds the
Expressions representing the encapsulated Expression. |
protected abstract void |
AbstractEncapsulatedExpression.addOrderedEncapsulatedExpressionTo(List<Expression> children)
Adds the
Expressions representing the encapsulated Expression. |
protected void |
AbstractDoubleEncapsulatedExpression.addOrderedEncapsulatedExpressionTo(List<Expression> children)
Adds the
Expressions representing the encapsulated Expression. |
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractContentAssistVisitor.AbstractConditionalClauseCollectionHelper<T extends Expression>
This helper handles adding proposals within a conditional expression that might be parsed as
a single expression or has a collection of expression, which means the fragment is either
incomplete or invalid.
|
protected static interface |
AbstractContentAssistVisitor.CollectionExpressionHelper<T extends Expression>
This helper is used to determine how to add proposals within a collection of expressions.
|
protected static interface |
AbstractContentAssistVisitor.StatementHelper<T extends Expression>
This helper helps to add JPQL identifiers for the clauses that make up a query statement and
also chains the clauses within the query.
|
| Modifier and Type | Field and Description |
|---|---|
protected Expression |
JPQLQueryContext.QueryExpressionVisitor.expression
The
Expression that is the beginning of a query. |
protected Expression |
EclipseLinkContentAssistVisitor.TableExpressionVisitor.expression
The
Expression being visited. |
protected Expression |
AbstractContentAssistVisitor.FollowingInvalidExpressionVisitor.expression
The
Expression used to determine if it follows an invalid fragment or not. |
protected Expression |
AbstractContentAssistVisitor.InvalidExpressionVisitor.expression
|
protected Expression |
AbstractContentAssistVisitor.EndingQueryPositionBuilder.invalidExpression
The
Expression containing the invalid fragment. |
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,Filter<Expression>> |
AbstractContentAssistVisitor.identifierFilters
This map contains the
Filter that is used to determine when an identifier is a valid
proposal, some of them depends on the expression's type. |
protected static Filter<Expression> |
AbstractContentAssistVisitor.INVALID_IDENTIFIER_FILTER
This
Filter is used to say the Expression 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 Filter<Expression> |
AbstractContentAssistVisitor.VALID_IDENTIFIER_FILTER
This
Filter is used to say the Expression is valid without doing anything. |
| Modifier and Type | Method and Description |
|---|---|
protected <T extends Expression> |
AbstractContentAssistVisitor.visitCollectionExpression(T expression,
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 <T extends Expression> |
AbstractContentAssistVisitor.visitStatement(T expression,
AbstractContentAssistVisitor.StatementHelper<T> helper)
Visits the given
AbstractSelectStatement and checks to see if the identifiers of the
following clauses can be added a valid proposals. |
| Modifier and Type | Method and Description |
|---|---|
Expression |
JPQLQueryContext.getActualCurrentQuery()
Returns the current
Expression being manipulated, which is either the top-level query
or a subquery. |
Expression |
AbstractContentAssistVisitor.AbstractSelectClauseStatementHelper.getClause(AbstractSelectStatement expression)
Returns the clause being scanned by this helper.
|
Expression |
AbstractContentAssistVisitor.DeleteClauseStatementHelper.getClause(DeleteStatement expression)
Returns the clause being scanned by this helper.
|
Expression |
AbstractContentAssistVisitor.WhereClauseDeleteStatementHelper.getClause(DeleteStatement expression)
Returns the clause being scanned by this helper.
|
Expression |
EclipseLinkContentAssistVisitor.UnionClauseStatementHelper.getClause(SelectStatement expression)
Returns the clause being scanned by this helper.
|
Expression |
AbstractContentAssistVisitor.OrderByClauseStatementHelper.getClause(SelectStatement expression)
Returns the clause being scanned by this helper.
|
Expression |
AbstractContentAssistVisitor.AbstractFromClauseStatementHelper.getClause(T expression)
Returns the clause being scanned by this helper.
|
Expression |
AbstractContentAssistVisitor.AbstractGroupByClauseStatementHelper.getClause(T expression)
Returns the clause being scanned by this helper.
|
Expression |
AbstractContentAssistVisitor.AbstractHavingClauseStatementHelper.getClause(T expression)
Returns the clause being scanned by this helper.
|
Expression |
AbstractContentAssistVisitor.AbstractWhereClauseSelectStatementHelper.getClause(T expression)
Returns the clause being scanned by this helper.
|
Expression |
AbstractContentAssistVisitor.StatementHelper.getClause(T expression)
Returns the clause being scanned by this helper.
|
Expression |
AbstractContentAssistVisitor.UpdateClauseStatementHelper.getClause(UpdateStatement expression)
Returns the clause being scanned by this helper.
|
Expression |
AbstractContentAssistVisitor.WhereClauseUpdateStatementHelper.getClause(UpdateStatement expression)
Returns the clause being scanned by this helper.
|
Expression |
JPQLQueryContext.getCurrentQuery()
Returns the current
Expression being manipulated, which is either the top-level query
or a subquery. |
Expression |
JPQLQueryContext.getQueryExpression(Expression expression)
Retrieves the
Expression representing the query statement (either the top-level query
JPQLExpression or the subquery SimpleSelectStatement) owning the given Expression. |
| Modifier and Type | Method and Description |
|---|---|
protected Filter<Expression> |
AbstractContentAssistVisitor.buildCollectionCompoundTypeFilter() |
protected Filter<Expression> |
AbstractContentAssistVisitor.buildDifferentComparisonFilter() |
protected Filter<Expression> |
AbstractContentAssistVisitor.buildNonCollectionCompoundTypeFilter() |
protected Filter<Expression> |
AbstractContentAssistVisitor.getFilter(String identifier) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
AbstractContentAssistVisitor.DifferentComparisonFilter.accept(Expression expression)
Determines whether the specified object is "accepted" by the filter.
|
protected abstract boolean |
AbstractContentAssistVisitor.IdentificationVariableType.add(AbstractContentAssistVisitor contentAssist,
Declaration declaration,
Expression expression)
Adds the identification variables defined in the given
Declaration. |
void |
AbstractContentAssistVisitor.AbstractConditionalClauseCollectionHelper.addAtTheEndOfChild(Expression expression,
CollectionExpression collectionExpression,
int index,
boolean hasComma,
boolean virtualSpace)
Adds the proposals because the cursor is at the end of the child at the given position.
|
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 is
IdentifierRole.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 given
JPQLQueryBNF as valid
proposals if their role is IdentifierRole.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 given
JPQLQueryBNF as valid
proposals if their role is IdentifierRole.COMPOUND_FUNCTION and the beginning starts
with the current word. |
protected void |
AbstractContentAssistVisitor.addFunctionIdentifiers(Expression expression)
Adds the JPQL identifiers for which their role is
FUNCTION by
determining the JPQLQueryBNF that represents the fragment for which the given Expression 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)
Adds the given JPQL identifier as a valid proposal.
|
protected void |
AbstractContentAssistVisitor.addLeftIdentificationVariables(Expression expression)
Adds the identification variables defined in the current query's FROM clause that are
declared before the given
Expression. |
protected void |
BasicRefactoringTool.AbstractRenamer.addTextEdit(Expression expression,
int extraOffset,
String oldValue,
String newValue)
Adds a new
TextEdit with the given information. |
protected void |
BasicRefactoringTool.AbstractRenamer.addTextEdit(Expression expression,
String oldValue,
String newValue)
Adds a new
TextEdit with the given information. |
void |
AbstractContentAssistVisitor.AbstractConditionalClauseCollectionHelper.addTheBeginningOfChild(Expression expression,
CollectionExpression collectionExpression,
int index,
boolean hasComma)
Adds the proposals because the cursor is at the beginning of the child
Expression
at the given position. |
protected boolean |
AbstractContentAssistVisitor.areArithmeticSymbolsAppendable(Expression expression)
Determines whether the given
Expression can be followed by an arithmetic operator. |
protected boolean |
AbstractContentAssistVisitor.areComparisonSymbolsAppendable(Expression expression)
Determines whether the given
Expression can be followed by a comparison operator. |
protected boolean |
AbstractContentAssistVisitor.areLogicalSymbolsAppendable(Expression expression)
Determines whether the given
Expression can be followed by a logical operator. |
protected QueryPosition |
AbstractContentAssistVisitor.buildEndingPositionFromInvalidExpression(Expression invalidExpression,
Expression startingPointExpression,
boolean[] virtualSpace)
Creates a new
QueryPosition containing the corrected positions starting at the given
Expression and traversing the children at is always at the right side of the tree. |
protected abstract JPQLQueryContext |
JPQLQueryContext.buildJPQLQueryContext(JPQLQueryContext currentContext,
Expression currentQuery) |
protected JPQLQueryContext |
EclipseLinkJPQLQueryContext.buildJPQLQueryContext(JPQLQueryContext currentContext,
Expression currentQuery) |
protected JPQLQueryContext |
DefaultJPQLQueryContext.buildJPQLQueryContext(JPQLQueryContext currentContext,
Expression currentQuery) |
protected Filter<IMapping> |
AbstractContentAssistVisitor.buildMappingFilter(Expression expression) |
boolean |
AbstractContentAssistVisitor.AbstractConditionalClauseCollectionHelper.canContinue(Expression expression,
CollectionExpression collectionExpression,
int index)
Asks this helper if the search can continue even though two child expressions are not
separated by a comma.
|
protected IType |
AbstractContentAssistVisitor.getAcceptableType(Expression expression)
Determines the root
IType that any type should be assignable. |
protected CollectionExpression |
AbstractContentAssistVisitor.getCollectionExpression(Expression expression)
Casts the given
Expression to a CollectionExpression if it is actually an
object of that type. |
DeclarationResolver |
JPQLQueryContext.getDeclarationResolver(Expression expression)
Returns the
DeclarationResolver of the current query's declaration. |
protected IdentificationVariable |
GenericSemanticValidatorHelper.getIdentificationVariable(Expression expression) |
IManagedType |
GenericSemanticValidatorHelper.getManagedType(Expression expression)
Returns the managed type by resolving the given
Expression. |
IMapping |
JPQLQueryContext.getMapping(Expression expression)
Returns the
IMapping for the field represented by the given Expression. |
Expression |
JPQLQueryContext.getQueryExpression(Expression expression)
Retrieves the
Expression representing the query statement (either the top-level query
JPQLExpression or the subquery SimpleSelectStatement) owning the given Expression. |
Resolver |
JPQLQueryContext.getResolver(Expression expression)
Creates or retrieved the cached
Resolver for the given Expression. |
IType |
JPQLQueryContext.getType(Expression expression)
Returns the
IType of the given Expression. |
IType |
GenericSemanticValidatorHelper.getType(Expression expression)
Returns the type by resolving the given
Expression. |
protected Object |
DefaultSemanticValidator.getType(Expression expression) |
ITypeDeclaration |
JPQLQueryContext.getTypeDeclaration(Expression expression)
Returns the
ITypeDeclaration of the field handled by this Resolver. |
ITypeDeclaration |
GenericSemanticValidatorHelper.getTypeDeclaration(Expression expression)
Returns the type declaration for the given
Expression's type. |
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 given
Expression. |
protected boolean |
AbstractContentAssistVisitor.isAppendableToCollection(Expression expression)
Determines whether
|
protected boolean |
DefaultSemanticValidator.isBooleanType(Expression expression)
Determines whether the given
Expression is of the correct type based on these rules:
The Expression 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 given
Expression. |
protected boolean |
DefaultSemanticValidator.isComparisonEquivalentType(Expression expression1,
Expression expression2) |
protected boolean |
AbstractContentAssistVisitor.isComplete(Expression expression)
Determines whether the given
Expression is grammatically complete. |
protected boolean |
AbstractContentAssistVisitor.isCompoundable(Expression expression)
Determines whether the given
Expression can be used as the left side of a compound
expression. |
protected boolean |
AbstractContentAssistVisitor.isEncapsulated(Expression expression)
Determines whether the given
Expression is being encapsulated or not. |
protected boolean |
DefaultSemanticValidator.isEquivalentBetweenType(Expression expression1,
Expression expression2) |
protected boolean |
AbstractContentAssistVisitor.isFollowingInvalidExpression(Expression expression)
Determines whether the given
Expression is preceded by an invalid expression. |
protected boolean |
AbstractContentAssistVisitor.isInSubquery(Expression expression)
Determines whether the given
Expression is in a subquery or in the top-level query. |
protected boolean |
DefaultSemanticValidator.isIntegralType(Expression expression)
Determines whether the given
Expression is of the correct type based on these rules:
The Expression's type is an integral type (long or integer).
|
protected boolean |
AbstractContentAssistVisitor.isInvalidExpression(Expression expression)
Determines whether the given
Expression represents an invalid fragment. |
protected boolean |
AbstractContentAssistVisitor.isLocked(Expression expression)
Determines whether the given
Expression has been set has the lock to prevent an
infinite recursion. |
protected boolean |
AbstractContentAssistVisitor.isNotExpression(Expression expression)
Determines whether the given
Expression represents the negated expression. |
protected boolean |
DefaultSemanticValidator.isNullValue(Expression expression) |
protected boolean |
DefaultSemanticValidator.isNumericType(Expression expression)
Determines whether the given
Expression is of the correct type based on these rules:
The Expression returns a numeric value;
|
protected boolean |
DefaultSemanticValidator.isStringType(Expression expression)
Determines whether the given
Expression is of the correct type based on these rules:
The Expression'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 given Expression which is preceding the position of the cursor. |
protected boolean |
EclipseLinkContentAssistVisitor.isTableExpression(Expression expression) |
protected boolean |
DefaultSemanticValidator.isValid(Expression expression,
Class<? extends DefaultSemanticValidator.TypeValidator> validatorClass)
Determines whether the given
Expression is of the correct type by using the
DefaultSemanticValidator.TypeValidator. |
protected boolean |
AbstractContentAssistVisitor.isValid(Expression expression,
JPQLQueryBNF queryBNF)
Determines whether the given
Expression part is an expression of the given query BNF. |
protected boolean |
AbstractContentAssistVisitor.isValid(Expression expression,
String queryBNFId)
Determines whether the given
Expression part is an expression of the given query BNF. |
protected boolean |
AbstractContentAssistVisitor.isWithinInvalidExpression(Expression expression)
Determines whether the given
Expression is part of an invalid fragment |
String |
JPQLQueryContext.literal(Expression expression,
LiteralType type)
Retrieves the "literal" from the given
Expression. |
int |
AbstractContentAssistVisitor.AbstractConditionalClauseCollectionHelper.maxCollectionSize(Expression expression)
Returns the maximum number of encapsulated
expressions the Expression
allows. |
void |
JPQLQueryContext.newSubqueryContext(Expression currentQuery)
Changes the state of this context to use the given subquery.
|
int |
AbstractContentAssistVisitor.AbstractConditionalClauseCollectionHelper.preExpressionLength(Expression expression)
Returns the length of anything that can be defined before the first child.
|
void |
AbstractContentAssistVisitor.EndingQueryPositionBuilder.prepare(Expression invalidExpression)
Prepares this visitor before visiting an
Expression. |
JPQLQueryBNF |
AbstractContentAssistVisitor.AbstractConditionalClauseCollectionHelper.queryBNF(Expression expression,
int index)
Returns the
JPQLQueryBNF that defines the fragment at the given position. |
IMapping |
GenericSemanticValidatorHelper.resolveMapping(Expression expression)
Returns the mapping for the field represented by the given
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 given
Expression is of the correct type based on these rules:
The Expression returns a boolean value;
The Expression'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 given
Expression is of the correct type based on these rules:
The Expression returns a integral value;
The Expression's type is an integral type (long or integer).
|
protected boolean |
DefaultSemanticValidator.validateNumericType(Expression expression,
String messageKey)
Determines whether the given
Expression is of the correct type based on these rules:
The Expression returns a numeric value;
The Expression'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 given
Expression is of the correct type based on these rules:
The Expression returns a String value;
The Expression's type is a String type.
|
protected void |
AbstractContentAssistVisitor.visit(Expression expression)
Blindly visit the given
Expression. |
protected void |
AbstractContentAssistVisitor.AppendableExpressionVisitor.visit(Expression expression)
Blindly visit the given
Expression. |
protected void |
AbstractContentAssistVisitor.DifferentComparisonFilter.visit(Expression expression)
Blindly visit the given
Expression. |
protected void |
AbstractContentAssistVisitor.EncapsulatedExpressionVisitor.visit(Expression expression)
Blindly visit the given
Expression. |
protected void |
AbstractContentAssistVisitor.FollowingInvalidExpressionVisitor.visit(Expression expression)
Blindly visit the given
Expression. |
protected void |
AbstractContentAssistVisitor.VisitParentVisitor.visit(Expression expression)
Blindly visit the given
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 given
StateObjectUpdater
will be notified to replace the value. |
protected void |
AbstractContentAssistVisitor.visitEndingExpression(Expression expression) |
protected void |
AbstractContentAssistVisitor.visitInvalidExpression(Expression expression) |
| Constructor and Description |
|---|
DefaultJPQLQueryContext(JPQLQueryContext parent,
Expression currentQuery)
Creates a new sub-
DefaultJPQLQueryContext. |
EclipseLinkJPQLQueryContext(JPQLQueryContext parent,
Expression currentQuery)
Creates a new
EclipseLinkJPQLQueryContext. |
JPQLQueryContext(JPQLQueryContext parent,
Expression currentQuery)
Creates a new sub-
JPQLQueryContext. |
| Modifier and Type | Method and Description |
|---|---|
protected <T extends Expression> |
BasicStateObjectBuilder.children(Expression expression) |
| Modifier and Type | Method and Description |
|---|---|
protected <T extends StateObject> |
BasicStateObjectBuilder.buildChildren(Expression expression) |
CollectionMemberDeclarationStateObject |
BasicStateObjectBuilder.CollectionMemberDeclarationBuilder.buildStateObject(AbstractFromClauseStateObject parent,
Expression expression)
Creates the
StateObject representation of the given Expression. |
JoinStateObject |
BasicStateObjectBuilder.JoinBuilder.buildStateObject(AbstractIdentificationVariableDeclarationStateObject parent,
Expression expression)
Creates the
StateObject representation of the given Expression. |
CaseExpressionStateObject |
BasicStateObjectBuilder.WhenClauseBuilder.buildStateObject(CaseExpressionStateObject parent,
Expression expression)
Creates the
StateObject representation of the given Expression. |
DeleteStatementStateObject |
BasicStateObjectBuilder.DeleteStatementBuilder.buildStateObject(JPQLQueryStateObject parent,
Expression expression)
Creates the
StateObject representation of the given Expression. |
UpdateStatementStateObject |
BasicStateObjectBuilder.UpdateStatementBuilder.buildStateObject(JPQLQueryStateObject parent,
Expression expression)
Creates the
StateObject representation of the given Expression. |
T |
BasicStateObjectBuilder.AbstractSelectStatementBuilder.buildStateObject(P parent,
Expression expression)
Creates the
StateObject representation of the given Expression. |
StateObject |
BasicStateObjectBuilder.SelectItemBuilder.buildStateObject(SelectClauseStateObject parent,
Expression expression)
Creates the
StateObject representation of the given Expression. |
T |
IBuilder.buildStateObject(S parent,
Expression expression)
Creates the
StateObject representation of the given Expression. |
AbstractIdentificationVariableDeclarationStateObject |
BasicStateObjectBuilder.AbstractRangeDeclarationBuilder.buildStateObject(S parent,
Expression expression)
Creates the
StateObject representation of the given Expression. |
protected StateObject |
BasicStateObjectBuilder.buildStateObjectImp(Expression expression)
Visits the given
Expression and returned its StateObject. |
protected <T extends Expression> |
BasicStateObjectBuilder.children(Expression expression) |
protected String |
BasicStateObjectBuilder.literal(Expression expression,
LiteralType type)
Retrieves the "literal" from the given
Expression. |
protected boolean |
AbstractActualJPQLQueryFormatter.shouldOutput(Expression expression) |
protected void |
BasicStateObjectBuilder.CollectionExpressionVisitor.visit(Expression expression)
Blindly visit the given
Expression. |
protected void |
BasicStateObjectBuilder.SelectItemBuilder.visit(Expression expression)
Blindly visit the given
Expression. |
| Modifier and Type | Method and Description |
|---|---|
Expression |
StateObject.getExpression()
Returns the actual parsed object if this
StateObject representation of the JPQL query
was created by parsing an existing JPQL query. |
Expression |
AbstractStateObject.getExpression()
Returns the actual parsed object if this
StateObject representation of the JPQL query
was created by parsing an existing JPQL query. |
| Modifier and Type | Method and Description |
|---|---|
void |
AbstractStateObject.setExpression(Expression expression)
Sets the actual parsed object if this
StateObject representation of the JPQL query
is created by converting the parsed representation of the JPQL query. |
| Modifier and Type | Field and Description |
|---|---|
protected 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 an
IdentificationVariableDeclaration or
a CollectionMemberDeclaration when part
of a FROM clause, otherwise it's either the DeleteClause or the UpdateClause. |
| Modifier and Type | Method and Description |
|---|---|
Expression |
Declaration.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.
|
Expression |
Declaration.getDeclarationExpression()
Returns the declaration expression, which is either an
IdentificationVariableDeclaration
or a CollectionMemberDeclaration
when part of a FROM clause, otherwise it's either the DeleteClause or the UpdateClause. |
| Modifier and Type | Method and Description |
|---|---|
protected CollectionExpression |
ResolverBuilder.getCollectionExpression(Expression expression)
Casts the given
Expression to a CollectionExpression if it is actually an
object of that type. |
protected DeclarationResolver |
ResolverBuilder.getDeclarationResolver(Expression expression)
Returns the
DeclarationResolver 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 given
Expression. |
protected void |
DeclarationResolver.RootObjectExpressionVisitor.visit(Expression expression)
Blindly visit the given
Expression. |
protected void |
ResolverBuilder.visitCollectionEquivalentExpression(Expression expression,
Expression extraExpression)
Visits the given
Expression and creates a Resolver that will check the type
for each of its children. |
protected String |
DeclarationResolver.visitDeclaration(Expression expression,
Expression identificationVariable) |
Copyright © 2007–2021 Eclipse.org - EclipseLink Project. All rights reserved.