Uses of Interface
org.eclipse.persistence.jpa.jpql.parser.ExpressionVisitor
Package
Description
This package contains the Hermes features (except the parser itself): semantic and grammatical
validations, content assist support, calculating the query result type or the possible type of
an input parameter, refactoring tools.
This is the core of Hermes, this package contains the classes that can parse a JPQL query.
The classes defined in this package define the state model API, a state model can be used to
manually or programmatically create and edit a JPQL query.
-
Uses of ExpressionVisitor in org.eclipse.persistence.jpa.jpql
Modifier and TypeClassDescriptionclass
This visitor calculates the type of an input parameter.class
This validator is responsible to gather the problems found in a JPQL query by validating the content to make sure it is semantically valid for EclipseLink.static final class
This visitor retrieves the clause owning the visitedExpression
.protected static final class
protected static final class
protected static final class
class
The base validator responsible to gather the problems found in a JPQL query by validating it against the provided JPQL grammar.protected static class
This validate is responsible to validate the collection ofExpressions
: Making sure they are all separated by a comma or by a space (depending on which one is required); Making sure it does not end with a comma; There is no empty expression between two commas.protected static final class
This visitor retrieves theCollectionExpression
if it is visited.protected static final class
This validator validates aCollectionExpression
by making sure each item is separated by a comma.protected static final class
This validator validates aCollectionExpression
by making sure each item is not separated by a comma.protected static final class
protected static final class
protected static final class
This visitor checks to see if the visited expression isNullExpression
.class
The base validator responsible to gather the problems found in a JPQL query by validating the content to make sure it is semantically valid, i.e.protected static final class
This visitor is meant to retrieve anCollectionValuedPathExpression
if the visitedExpression
is that object.protected static final class
protected static final class
This visitor compares the left and right expressions of a comparison expression and gathers information about those expressions if they are an identification variable or a path expression.protected static class
protected static final class
protected static final class
This visitor is meant to retrieve anAbstractSemanticValidator.StateFieldPathExpressionVisitor
if the visitedExpression
is that object.protected static final class
protected static class
class
The abstract definition of a validator, which provides helper methods and visitors.static class
This visitor is responsible to traverse the children of aCollectionExpression
in order to properly validate theExpression
.static class
This visitor is responsible to traverse the parent hierarchy and to skipSubExpression
if it's a parent.static class
This visitor gathers the children of aCollectionExpression
or a single visitedExpression
.static class
This visitor validates anyExpression
by checking its BNF against some BNFs.protected static class
static class
This visitor retrieves the clause owning the visitedExpression
.protected static class
This visitor retrieves the statement owning the visitedExpression
.protected static class
This visitor retrieves the statement owning the visitedExpression
.class
This visitor traverses the parsed tree and retrieves theIdentificationVariable
defined in the base range variable declaration for the top-level statement if and only if the query is aDELETE
orUPDATE
query.class
This validator adds EclipseLink extension over what the JPA functional specification had defined.protected static class
protected static final class
class
This visitor traverses anExpression
and retrieves the "literal" value.class
This visitor traverses anExpression
and retrieves the "literal" value.class
This visitor calculates the type of an input parameter.Modifier and TypeFieldDescriptionAbstractValidator.BypassParentSubExpressionVisitor.visitor
TheExpressionVisitor
that will visit theExpression
. -
Uses of ExpressionVisitor in org.eclipse.persistence.jpa.jpql.parser
Modifier and TypeInterfaceDescriptioninterface
TheExpressionVisitor
that adds support for the additional JPQL identifiers supported by EclipseLink that is not defined in the JPA function specification.Modifier and TypeClassDescriptionclass
The abstract implementation ofEclipseLinkExpressionVisitor
.class
ThisExpressionVisitor
traverses the entire hierarchy of the JPQL parsed tree by going down into each of the children of any givenExpression
.class
ThisEclipseLinkExpressionVisitor
traverses up the hierarchy.class
The abstract definition ofExpressionVisitor
, which implements all the methods but does nothing.class
ThisExpressionVisitor
traverses the entire hierarchy of the JPQL parsed tree by going down into each of the children of any givenExpression
.class
ThisExpressionVisitor
traverses up the hierarchy.class
This visitor allows a subclass to simply overrideAnonymousExpressionVisitor.visit(Expression)
and perform the same task for all visitedexpressions
.class
This visitor allows a subclass to simply overrideAnonymousExpressionVisitor.visit(Expression)
and perform the same task for all visitedexpressions
including those defined by EclipseLink.class
ThisExpressionVisitor
wraps anotherExpressionVisitor
and delegates all its calls to it (the delegate).final class
This visitor makes sure that all path expressions are fully qualified with a "virtual" identification variable if the range variable declaration does not define one.Modifier and TypeMethodDescriptionprotected ExpressionVisitor
ExpressionVisitorWrapper.getDelegate()
Returns the delegateExpressionVisitor
that is receiving all the calls from this one.Modifier and TypeMethodDescriptionvoid
AbsExpression.accept
(ExpressionVisitor visitor) void
AbstractSchemaName.accept
(ExpressionVisitor visitor) void
AdditionExpression.accept
(ExpressionVisitor visitor) void
AllOrAnyExpression.accept
(ExpressionVisitor visitor) void
AndExpression.accept
(ExpressionVisitor visitor) void
ArithmeticFactor.accept
(ExpressionVisitor visitor) void
AsOfClause.accept
(ExpressionVisitor visitor) void
AvgFunction.accept
(ExpressionVisitor visitor) void
BadExpression.accept
(ExpressionVisitor visitor) void
BetweenExpression.accept
(ExpressionVisitor visitor) void
CaseExpression.accept
(ExpressionVisitor visitor) void
CastExpression.accept
(ExpressionVisitor visitor) void
CoalesceExpression.accept
(ExpressionVisitor visitor) void
CollectionExpression.accept
(int index, ExpressionVisitor visitor) Visits the childExpression
at the given position by the givenvisitor
.void
CollectionExpression.accept
(ExpressionVisitor visitor) void
CollectionMemberDeclaration.accept
(ExpressionVisitor visitor) void
CollectionMemberExpression.accept
(ExpressionVisitor visitor) void
CollectionValuedPathExpression.accept
(ExpressionVisitor visitor) void
ComparisonExpression.accept
(ExpressionVisitor visitor) void
ConcatExpression.accept
(ExpressionVisitor visitor) void
ConnectByClause.accept
(ExpressionVisitor visitor) void
ConstructorExpression.accept
(ExpressionVisitor visitor) void
CountFunction.accept
(ExpressionVisitor visitor) void
DatabaseType.accept
(ExpressionVisitor visitor) void
DateTime.accept
(ExpressionVisitor visitor) void
DefaultStringExpression.accept
(ExpressionVisitor visitor) void
DeleteClause.accept
(ExpressionVisitor visitor) void
DeleteStatement.accept
(ExpressionVisitor visitor) void
DivisionExpression.accept
(ExpressionVisitor visitor) void
EmptyCollectionComparisonExpression.accept
(ExpressionVisitor visitor) void
EntityTypeLiteral.accept
(ExpressionVisitor visitor) void
EntryExpression.accept
(ExpressionVisitor visitor) void
ExistsExpression.accept
(ExpressionVisitor visitor) void
Expression.accept
(ExpressionVisitor visitor) Visits thisExpression
by the givenvisitor
.void
ExtractExpression.accept
(ExpressionVisitor visitor) void
FromClause.accept
(ExpressionVisitor visitor) void
FunctionExpression.accept
(ExpressionVisitor visitor) void
GroupByClause.accept
(ExpressionVisitor visitor) void
HavingClause.accept
(ExpressionVisitor visitor) void
HierarchicalQueryClause.accept
(ExpressionVisitor visitor) void
IdentificationVariable.accept
(ExpressionVisitor visitor) void
IdentificationVariableDeclaration.accept
(ExpressionVisitor visitor) void
IndexExpression.accept
(ExpressionVisitor visitor) void
InExpression.accept
(ExpressionVisitor visitor) void
InputParameter.accept
(ExpressionVisitor visitor) void
Join.accept
(ExpressionVisitor visitor) void
JPQLExpression.accept
(ExpressionVisitor visitor) void
KeyExpression.accept
(ExpressionVisitor visitor) void
KeywordExpression.accept
(ExpressionVisitor visitor) void
LengthExpression.accept
(ExpressionVisitor visitor) void
LikeExpression.accept
(ExpressionVisitor visitor) void
LocalDateTime.accept
(ExpressionVisitor visitor) void
LocalExpression.accept
(ExpressionVisitor visitor) void
LocateExpression.accept
(ExpressionVisitor visitor) void
LowerExpression.accept
(ExpressionVisitor visitor) void
MathDoubleExpression.Power.accept
(ExpressionVisitor visitor) void
MathDoubleExpression.Round.accept
(ExpressionVisitor visitor) void
MathSingleExpression.Ceiling.accept
(ExpressionVisitor visitor) void
MathSingleExpression.Exp.accept
(ExpressionVisitor visitor) void
MathSingleExpression.Floor.accept
(ExpressionVisitor visitor) void
MathSingleExpression.Ln.accept
(ExpressionVisitor visitor) void
MathSingleExpression.Sign.accept
(ExpressionVisitor visitor) void
MaxFunction.accept
(ExpressionVisitor visitor) void
MinFunction.accept
(ExpressionVisitor visitor) void
ModExpression.accept
(ExpressionVisitor visitor) void
MultiplicationExpression.accept
(ExpressionVisitor visitor) void
NotExpression.accept
(ExpressionVisitor visitor) void
NullComparisonExpression.accept
(ExpressionVisitor visitor) void
NullExpression.accept
(ExpressionVisitor visitor) void
NullIfExpression.accept
(ExpressionVisitor visitor) void
NumericLiteral.accept
(ExpressionVisitor visitor) void
ObjectExpression.accept
(ExpressionVisitor visitor) void
OnClause.accept
(ExpressionVisitor visitor) void
OrderByClause.accept
(ExpressionVisitor visitor) void
OrderByItem.accept
(ExpressionVisitor visitor) void
OrderSiblingsByClause.accept
(ExpressionVisitor visitor) void
OrExpression.accept
(ExpressionVisitor visitor) void
RangeVariableDeclaration.accept
(ExpressionVisitor visitor) void
RegexpExpression.accept
(ExpressionVisitor visitor) void
ResultVariable.accept
(ExpressionVisitor visitor) void
SelectClause.accept
(ExpressionVisitor visitor) void
SelectStatement.accept
(ExpressionVisitor visitor) void
SimpleFromClause.accept
(ExpressionVisitor visitor) void
SimpleSelectClause.accept
(ExpressionVisitor visitor) void
SimpleSelectStatement.accept
(ExpressionVisitor visitor) void
SizeExpression.accept
(ExpressionVisitor visitor) void
SqrtExpression.accept
(ExpressionVisitor visitor) void
StartWithClause.accept
(ExpressionVisitor visitor) void
StateFieldPathExpression.accept
(ExpressionVisitor visitor) void
StringLiteral.accept
(ExpressionVisitor visitor) void
SubExpression.accept
(ExpressionVisitor visitor) void
SubstringExpression.accept
(ExpressionVisitor visitor) void
SubtractionExpression.accept
(ExpressionVisitor visitor) void
SumFunction.accept
(ExpressionVisitor visitor) void
TableExpression.accept
(ExpressionVisitor visitor) void
TableVariableDeclaration.accept
(ExpressionVisitor visitor) void
TreatExpression.accept
(ExpressionVisitor visitor) void
TrimExpression.accept
(ExpressionVisitor visitor) void
TypeExpression.accept
(ExpressionVisitor visitor) void
UnionClause.accept
(ExpressionVisitor visitor) void
UnknownExpression.accept
(ExpressionVisitor visitor) void
UpdateClause.accept
(ExpressionVisitor visitor) void
UpdateItem.accept
(ExpressionVisitor visitor) void
UpdateStatement.accept
(ExpressionVisitor visitor) void
UpperExpression.accept
(ExpressionVisitor visitor) void
ValueExpression.accept
(ExpressionVisitor visitor) void
WhenClause.accept
(ExpressionVisitor visitor) void
WhereClause.accept
(ExpressionVisitor visitor) void
AbstractConditionalClause.acceptChildren
(ExpressionVisitor visitor) void
AbstractDoubleEncapsulatedExpression.acceptChildren
(ExpressionVisitor visitor) void
AbstractFromClause.acceptChildren
(ExpressionVisitor visitor) void
AbstractOrderByClause.acceptChildren
(ExpressionVisitor visitor) void
AbstractPathExpression.acceptChildren
(ExpressionVisitor visitor) void
AbstractSchemaName.acceptChildren
(ExpressionVisitor visitor) void
AbstractSelectClause.acceptChildren
(ExpressionVisitor visitor) void
AbstractSelectStatement.acceptChildren
(ExpressionVisitor visitor) void
AbstractSingleEncapsulatedExpression.acceptChildren
(ExpressionVisitor visitor) void
AbstractTripleEncapsulatedExpression.acceptChildren
(ExpressionVisitor visitor) void
ArithmeticFactor.acceptChildren
(ExpressionVisitor visitor) void
AsOfClause.acceptChildren
(ExpressionVisitor visitor) void
BadExpression.acceptChildren
(ExpressionVisitor visitor) void
BetweenExpression.acceptChildren
(ExpressionVisitor visitor) void
CaseExpression.acceptChildren
(ExpressionVisitor visitor) void
CollectionExpression.acceptChildren
(ExpressionVisitor visitor) void
CollectionMemberDeclaration.acceptChildren
(ExpressionVisitor visitor) void
CollectionMemberExpression.acceptChildren
(ExpressionVisitor visitor) void
CompoundExpression.acceptChildren
(ExpressionVisitor visitor) void
ConnectByClause.acceptChildren
(ExpressionVisitor visitor) void
ConstructorExpression.acceptChildren
(ExpressionVisitor visitor) void
DateTime.acceptChildren
(ExpressionVisitor visitor) void
DefaultStringExpression.acceptChildren
(ExpressionVisitor visitor) void
DeleteClause.acceptChildren
(ExpressionVisitor visitor) void
DeleteStatement.acceptChildren
(ExpressionVisitor visitor) void
EmptyCollectionComparisonExpression.acceptChildren
(ExpressionVisitor visitor) void
EntityTypeLiteral.acceptChildren
(ExpressionVisitor visitor) void
Expression.acceptChildren
(ExpressionVisitor visitor) Visits the children of thisExpression
.void
GroupByClause.acceptChildren
(ExpressionVisitor visitor) void
HierarchicalQueryClause.acceptChildren
(ExpressionVisitor visitor) void
IdentificationVariable.acceptChildren
(ExpressionVisitor visitor) void
IdentificationVariableDeclaration.acceptChildren
(ExpressionVisitor visitor) void
InExpression.acceptChildren
(ExpressionVisitor visitor) void
InputParameter.acceptChildren
(ExpressionVisitor visitor) void
Join.acceptChildren
(ExpressionVisitor visitor) void
JPQLExpression.acceptChildren
(ExpressionVisitor visitor) void
KeywordExpression.acceptChildren
(ExpressionVisitor visitor) void
LikeExpression.acceptChildren
(ExpressionVisitor visitor) void
LocalDateTime.acceptChildren
(ExpressionVisitor visitor) void
LocalExpression.acceptChildren
(ExpressionVisitor visitor) void
NotExpression.acceptChildren
(ExpressionVisitor visitor) void
NullComparisonExpression.acceptChildren
(ExpressionVisitor visitor) void
NullExpression.acceptChildren
(ExpressionVisitor visitor) void
NumericLiteral.acceptChildren
(ExpressionVisitor visitor) void
OrderByItem.acceptChildren
(ExpressionVisitor visitor) void
RangeVariableDeclaration.acceptChildren
(ExpressionVisitor visitor) void
RegexpExpression.acceptChildren
(ExpressionVisitor visitor) void
ResultVariable.acceptChildren
(ExpressionVisitor visitor) void
SelectStatement.acceptChildren
(ExpressionVisitor visitor) void
StringLiteral.acceptChildren
(ExpressionVisitor visitor) void
TableVariableDeclaration.acceptChildren
(ExpressionVisitor visitor) void
TreatExpression.acceptChildren
(ExpressionVisitor visitor) void
TrimExpression.acceptChildren
(ExpressionVisitor visitor) void
UnionClause.acceptChildren
(ExpressionVisitor visitor) void
UnknownExpression.acceptChildren
(ExpressionVisitor visitor) void
UpdateClause.acceptChildren
(ExpressionVisitor visitor) void
UpdateItem.acceptChildren
(ExpressionVisitor visitor) void
UpdateStatement.acceptChildren
(ExpressionVisitor visitor) void
WhenClause.acceptChildren
(ExpressionVisitor visitor) protected boolean
AbstractExpression.acceptUnknownVisitor
(ExpressionVisitor visitor) The givenExpressionVisitor
needs to visit this class but it is defined by a third- party provider.protected void
AbstractExpression.acceptUnknownVisitor
(ExpressionVisitor visitor, Class<?> type, Class<?> parameterType) The givenExpressionVisitor
needs to visit this class but it is defined by a third- party provider.ModifierConstructorDescriptionprotected
ExpressionVisitorWrapper
(ExpressionVisitor delegate) Creates a newExpressionVisitorWrapper
. -
Uses of ExpressionVisitor in org.eclipse.persistence.jpa.jpql.tools
Modifier and TypeClassDescriptionclass
The visitor provides support for finding the possible proposals within a JPQL query at a certain position.protected static class
protected static class
This visitor retrieves the permitted type from the path expression's parent.protected static class
This visitor scans the visitedExpression
and determines if a JPQL identifier can be added ("appended") when the position of the cursor is at the end of the expression.protected static final class
This visitor retrieves theCollectionExpression
if it is visited.protected static final class
protected static final class
protected static final class
protected static class
This builder populates aQueryPosition
by traversing the valid portion of the JPQL query.protected static final class
This visitor determines whether a path expression can be resolved as a fully qualified enum type and an enum constant.protected static class
protected static final class
protected static class
This visitor is used when a clause or a compound expression was parsed with a collection of expressions representing an invalid fragment.protected static final class
This visitor determines if the visitedExpression
is one of the two that represents an invalid expression.protected static final class
This visitor is responsible to create the rightFilter
based on the type of theExpression
.protected static final class
protected static final class
protected static final class
protected static final class
protected static final class
This visitor determines if anExpression
is in a subquery.protected static final class
This visitor is meant to adjust the corrections stack when traversing anExpression
in order to increase the list of valid proposals.protected static final class
protected class
The abstract class that all refactoring classes should extend, it automatically provides the MultiTextEdit that will hold theTextEdit
objects that are related to the same refactoring event.protected class
This visitor renames any segment of a path expression.protected class
This visitor renames a fully qualified class name.protected class
This visitor renames an entity name.protected class
This visitor renames an enum constant.protected class
This visitor renames all the result variables found in the JPQL query.protected class
This visitor renames all the identification variables found in the JPQL query.class
This visitor traverses the JPQL parsed tree and gathers the possible proposals at a given position.protected class
The concrete instance that determines the return type of a function expression.class
This validator is responsible to validate a JPQL query grammatically purely based on the JPA specification document.class
This visitor traverses anExpression
and retrieves the "literal" value.class
This visitor calculates the type of an input parameter.class
This validator is responsible to gather the problems found in a JPQL query by validating the content to make sure it is semantically valid.protected class
This visitor validates expression that is a boolean literal to make sure the type is a Boolean.protected static class
protected class
This visitor validates expression that is a numeric literal to make sure the type is an instance of Number.protected static class
protected class
This visitor validates that theExpression
is a string primary and to make sure the type is String.protected class
The basic validator for validating the type of anExpression
.protected static class
class
This extension over the default content assist visitor adds the additional support EclipseLink provides.protected static final class
protected static final class
protected static final class
protected static final class
This visitor adds support for the additional clauses provided by EclipseLink, such as theprotected class
This subclass adds support for EclipseLink specific support.protected class
class
This visitor calculates the type of an input parameter.class
An implementation of aResolverBuilder
that adds support for EclipseLink extension.class
This validator is responsible to gather the problems found in a JPQL query by validating the content to make sure it is semantically valid for EclipseLink.protected static class
protected class
This visitor is responsible to find theInputParameters
with a certain parameter name.protected static class
This visitor is responsible to retrieve theExpression
that is the beginning of a query. -
Uses of ExpressionVisitor in org.eclipse.persistence.jpa.jpql.tools.model
Modifier and TypeClassDescriptionclass
The default implementation of aIBuilder
, which creates aStateObject
representation of theExpression
being visited.protected class
This builder is responsible to create a new identification variable declaration and to add it to the state object representing theFROM
clause.protected class
BasicStateObjectBuilder.AbstractSelectStatementBuilder<T extends AbstractSelectStatementStateObject,
P extends StateObject> The abstract definition of the builder that is responsible to create theStateObject
representation of theSELECT
statement.protected static class
protected static class
protected class
This builder is responsible to create theStateObject
representation of theDELETE
query statement.protected class
protected class
This builder is responsible to create a new identification variable declaration and to add it to the state object representing theFROM
clause of the top-level query.protected class
This builder is responsible to create the items owned by the top-levelSELECT
clause.protected class
This builder is responsible to create theStateObject
representation of theSELECT
query statement.protected class
This builder is responsible to create a new identification variable declaration and to add it to the state object representing theFROM
clause of a subquery.protected class
This builder is responsible to create theStateObject
representation of theSELECT
subquery.protected class
This builder is responsible to create theStateObject
representation of theUPDATE
query statement.protected class
This builder is responsible to create theWHEN
clauses for aCASE
expression.class
The default implementation ofBasicStateObjectBuilder
, which provides support for creating aStateObject
representation of anyExpression
.class
The default implementation ofBasicStateObjectBuilder
, which provides support based on the JPQL grammar defined in the Java Persistence functional specification and for the additional support provided by EclipseLink.Modifier and TypeMethodDescriptionprotected ExpressionVisitor
AbstractJPQLQueryBuilder.wrap
(BasicStateObjectBuilder builder) If a subclass needs to wrap the givenBasicStateObjectBuilder
with another visitor can do so by simply overriding this method. -
Uses of ExpressionVisitor in org.eclipse.persistence.jpa.jpql.tools.resolver
Modifier and TypeClassDescriptionprotected class
protected static class
protected class
This visitor takes care to support a subquery defined as a "root" object.final class
The default implementation of aResolverBuilder
, which follows the JPA functional specification.protected class
protected class
This visitor will traverse theSELECT
clause and create virtual mappings for the state field path expressions and any expression aliased with a result variable.class
This visitor creates aResolver
that gives information about the visitedExpression
.protected static final class
This visitor is used to check if the expression visited is aCollectionExpression
.