Package org.eclipse.persistence.jpa.jpql
Class AbstractGrammarValidator
java.lang.Object
org.eclipse.persistence.jpa.jpql.parser.AnonymousExpressionVisitor
org.eclipse.persistence.jpa.jpql.AbstractValidator
org.eclipse.persistence.jpa.jpql.AbstractGrammarValidator
- All Implemented Interfaces:
ExpressionVisitor
- Direct Known Subclasses:
DefaultGrammarValidator
,EclipseLinkGrammarValidator
The base validator responsible to gather the problems found in a JPQL query by validating it
against the provided JPQL grammar. The semantic of the JPQL query is not validated by this visitor.
Provisional API: This interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected 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 class
AbstractGrammarValidator.AbstractDoubleEncapsulatedExpressionHelper<T extends AbstractDoubleEncapsulatedExpression>
protected static interface
AbstractGrammarValidator.AbstractEncapsulatedExpressionHelper<T extends AbstractEncapsulatedExpression>
The root helper that validates anyAbstractEncapsulatedExpression
.protected static class
AbstractGrammarValidator.AbstractSingleEncapsulatedExpressionHelper<T extends AbstractSingleEncapsulatedExpression>
The abstract implementation ofAbstractGrammarValidator.AbstractSingleEncapsulatedExpressionHelper
which implements some of the methods since the behavior is the same for all subclasses ofAbstractSingleEncapsulatedExpression
.protected static class
AbstractGrammarValidator.AbstractTripleEncapsulatedExpressionHelper<T extends AbstractTripleEncapsulatedExpression>
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
.Nested classes/interfaces inherited from class org.eclipse.persistence.jpa.jpql.AbstractValidator
AbstractValidator.BypassChildCollectionExpressionVisitor, AbstractValidator.BypassParentSubExpressionVisitor, AbstractValidator.ChildrenCollectorVisitor, AbstractValidator.JPQLQueryBNFValidator, AbstractValidator.NestedArrayVisitor, AbstractValidator.OwningClauseVisitor, AbstractValidator.OwningStatementVisitor, AbstractValidator.SubqueryVisitor
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractGrammarValidator
(JPQLGrammar jpqlGrammar) Creates a newAbstractGrammarValidator
. -
Method Summary
Modifier and TypeMethodDescriptionCreates a visitor that collects theCollectionExpression
if it's been visited.protected AbstractGrammarValidator.DateTimeVisitor
Creates a visitor that collects theNullExpression
if it's been visited.void
dispose()
Disposes this visitor.protected CollectionExpression
getCollectionExpression
(Expression expression) Casts the givenExpression
to aCollectionExpression
if it is actually an object of that type.Returns the visitor that collects theCollectionExpression
if it's been visited.protected AbstractGrammarValidator.DateTimeVisitor
protected JPQLGrammar
Returns theJPQLGrammar
that defines how the JPQL query was parsed.protected <T> T
Returns the registered helper that was cached with the given id.protected void
Initializes this validator.protected boolean
isChildOfComparisonExpession
(AllOrAnyExpression expression) protected boolean
isCollectionExpression
(Expression expression) Determines whether the givenExpression
is aCollectionExpression
.protected boolean
isDateTimeConstant
(Expression leftExpression) Determines whether the givenExpression
represents one of the three date constants or not.protected boolean
isInputParameterInValidLocation
(InputParameter expression) protected abstract boolean
Determines whether aJOIN FETCH
expression can be identified by with an identification variable or not.protected boolean
isJPA1_0()
Determines whether the JPA version defined by the JPQL grammar is 1.0.protected boolean
isJPA2_0()
Determines whether the JPA version defined by the JPQL grammar is 2.0.protected boolean
isJPA2_1()
Determines whether the JPA version defined by the JPQL grammar is 2.1.protected boolean
Determines whether the given subquerySELECT
clause can return more than one item or just a single.protected final boolean
isNewerThan
(JPAVersion version) Determines whether the JPA version for which the JPQL grammar was defined represents a version that is newer than the given version.protected final boolean
isNewerThanOrEqual
(JPAVersion version) Determines whether the JPA version for which the JPQL grammar was defined represents a version that is newer than the given version or if it's the same version.protected boolean
isNumericLiteral
(String text) Determines whether the given sequence of characters is a numeric literal or not.protected final boolean
isOlderThan
(JPAVersion version) Determines whether the JPA version for which the JPQL grammar was defined represents a version that is older than the given version.protected final boolean
isOlderThanOrEqual
(JPAVersion version) Determines whether the JPA version for which the JPQL grammar was defined represents a version that is older than the given version or if it's the same version.protected boolean
isOwnedByConditionalClause
(Expression expression) Determines whether the givenExpression
is a child of the WHERE or HAVING clause of the top-level query.protected boolean
isOwnedByFromClause
(Expression expression) Determines whether the givenExpression
is a child of the FROM clause of the top-level query.protected boolean
isOwnedBySubFromClause
(Expression expression) Determines whether the givenExpression
is a child of the FROM clause of a subquery.protected abstract boolean
Determines whether a subquery can be used in any clause of the top-level query.protected boolean
isValidJavaIdentifier
(String variable) Determines whether the given variable is a valid Java identifier, which means it follows the Java specification.protected int
position
(Expression expression, int... extras) protected void
registerHelper
(String id, Object helper) Registers the given helper.protected void
validateAbstractConditionalClause
(AbstractConditionalClause expression, String missingConditionalExpressionMessageKey, String invalidConditionalExpressionMessageKey) protected <T extends AbstractDoubleEncapsulatedExpression>
voidvalidateAbstractDoubleEncapsulatedExpression
(T expression, AbstractGrammarValidator.AbstractDoubleEncapsulatedExpressionHelper<T> helper) Validates the content of anAbstractDoubleEncapsulatedExpression
, which encapsulates two expressions separated by a comma.protected void
validateAbstractFromClause
(AbstractFromClause expression) protected void
validateAbstractSelectClause
(AbstractSelectClause expression, boolean multipleSelectItemsAllowed) Validates the select expression of the givenSELECT
clause.protected void
protected <T extends AbstractSingleEncapsulatedExpression>
voidvalidateAbstractSingleEncapsulatedExpression
(T expression, AbstractGrammarValidator.AbstractSingleEncapsulatedExpressionHelper<T> helper) protected <T extends AbstractTripleEncapsulatedExpression>
voidvalidateAbstractTripleEncapsulatedExpression
(T expression, AbstractGrammarValidator.AbstractTripleEncapsulatedExpressionHelper<T> helper) protected <T extends AggregateFunction>
voidvalidateAggregateFunctionLocation
(T expression, AbstractGrammarValidator.AbstractSingleEncapsulatedExpressionHelper<T> helper) protected void
validateArithmeticExpression
(ArithmeticExpression expression) protected void
validateCollectionSeparatedByComma
(Expression expression, String endsWithCommaProblemKey, String missingCommaProblemKey) Validates the givenExpression
by making sure each child is separated by a comma.protected void
validateCollectionSeparatedBySpace
(Expression expression, String endsWithCommaProblemKey, String hasCommaProblemKey) Validates the givenExpression
by making sure each child is separated by a whitespace.protected void
validateCompoundExpression
(CompoundExpression expression, String identifier, String missingLeftExpression, String invalidLeftExpression, String missingRightExpression, String invalidRightExpression, String leftExpressionQueryBNF, String rightExpressionQueryBNF) protected void
protected void
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 void
validateInputParameters
(JPQLExpression expression) protected void
validateJoins
(IdentificationVariableDeclaration expression) protected void
validateLikeExpressionEscapeCharacter
(LikeExpression expression) protected void
validateLogicalExpression
(LogicalExpression expression, String leftExpressionQueryBNF, String rightExpressionQueryBNF) protected void
validateOwningClause
(InputParameter expression, String parameter) protected void
validatePathExpression
(AbstractPathExpression expression) protected void
validateSimpleSelectStatement
(SimpleSelectStatement expression) void
visit
(AbsExpression expression) Visits theAbsExpression
expression.void
visit
(AbstractSchemaName expression) Visits theAbstractSchemaName
expression.void
visit
(AdditionExpression expression) Visits theAdditionExpression
expression.void
visit
(AllOrAnyExpression expression) Visits theAllOrAnyExpression
expression.void
visit
(AndExpression expression) Visits theAndExpression
expression.void
visit
(ArithmeticFactor expression) Visits theArithmeticFactor
expression.void
visit
(AvgFunction expression) Visits theAvgFunction
expression.void
visit
(BadExpression expression) Visits theBadExpression
expression.void
visit
(BetweenExpression expression) Visits theBetweenExpression
expression.void
visit
(CaseExpression expression) Visits theCaseExpression
expression.void
visit
(CoalesceExpression expression) Visits theCoalesceExpression
expression.void
visit
(CollectionExpression expression) Visits theCollectionExpression
expression.void
visit
(CollectionMemberDeclaration expression) Visits theCollectionMemberDeclaration
expression.void
visit
(CollectionMemberExpression expression) Visits theCollectionMemberExpression
expression.void
visit
(CollectionValuedPathExpression expression) Visits theCollectionValuedPathExpression
expression.void
visit
(ComparisonExpression expression) Visits theComparisonExpression
expression.void
visit
(ConcatExpression expression) Visits theConcatExpression
expression.void
visit
(ConstructorExpression expression) Visits theConstructorExpression
expression.void
visit
(CountFunction expression) Visits theCountFunction
expression.void
Visits theDateTime
expression.void
visit
(DeleteClause expression) Visits theDeleteClause
expression.void
visit
(DeleteStatement expression) Visits theDeleteStatement
expression.void
visit
(DivisionExpression expression) Visits theDivisionExpression
expression.void
visit
(EmptyCollectionComparisonExpression expression) Visits theEmptyCollectionComparisonExpression
expression.void
visit
(EntityTypeLiteral expression) Visits theEntityTypeLiteral
expression.void
visit
(EntryExpression expression) Visits theEntryExpression
expression.void
visit
(ExistsExpression expression) Visits theExistsExpression
expression.void
visit
(FromClause expression) Visits theFromClause
expression.void
visit
(FunctionExpression expression) Visits theFunctionExpression
expression.void
visit
(GroupByClause expression) Visits theGroupByClause
expression.void
visit
(HavingClause expression) Visits theHavingClause
expression.void
visit
(IdentificationVariable expression) Visits theIdentificationVariable
expression.void
visit
(IdentificationVariableDeclaration expression) Visits theIdentificationVariableDeclaration
expression.void
visit
(IndexExpression expression) Visits theIndexExpression
expression.void
visit
(InExpression expression) Visits theInExpression
expression.void
visit
(InputParameter expression) Visits theInputParameter
expression.void
Visits theJoin
expression.void
visit
(JPQLExpression expression) Visits theJPQLExpression
expression.void
visit
(KeyExpression expression) Visits theKeyExpression
expression.void
visit
(KeywordExpression expression) Visits theKeywordExpression
expression.void
visit
(LengthExpression expression) Visits theLengthExpression
expression.void
visit
(LikeExpression expression) Visits theLikeExpression
expression.void
visit
(LocateExpression expression) Visits theLocateExpression
expression.void
visit
(LowerExpression expression) Visits theLowerExpression
expression.void
visit
(MaxFunction expression) Visits theMaxFunction
expression.void
visit
(MinFunction expression) Visits theMinFunction
expression.void
visit
(ModExpression expression) Visits theModExpression
expression.void
visit
(MultiplicationExpression expression) Visits theMultiplicationExpression
expression.void
visit
(NotExpression expression) Visits theNotExpression
expression.void
visit
(NullComparisonExpression expression) Visits theNullComparisonExpression
expression.void
visit
(NullExpression expression) Visits theNullExpression
expression.void
visit
(NullIfExpression expression) Visits theNullIfExpression
expression.void
visit
(NumericLiteral expression) Visits theNumericLiteral
expression.void
visit
(ObjectExpression expression) Visits theObjectExpression
expression.void
Visits theOnClause
expression.void
visit
(OrderByClause expression) Visits theOrderByClause
expression.void
visit
(OrderByItem expression) Visits theOrderByItem
expression.void
visit
(OrExpression expression) Visits theOrExpression
expression.void
visit
(RangeVariableDeclaration expression) Visits theRangeVariableDeclaration
expression.void
visit
(ResultVariable expression) Visits theResultVariable
expression.void
visit
(SelectClause expression) Visits theSelectClause
expression.void
visit
(SelectStatement expression) Visits theSelectStatement
expression.void
visit
(SimpleFromClause expression) Visits theSimpleFromClause
expression.void
visit
(SimpleSelectClause expression) Visits theSimpleSelectClause
expression.void
visit
(SimpleSelectStatement expression) Visits theSimpleSelectStatement
expression.void
visit
(SizeExpression expression) Visits theSizeExpression
expression.void
visit
(SqrtExpression expression) Visits theSqrtExpression
expression.void
visit
(StateFieldPathExpression expression) Visits theStateFieldPathExpression
expression.void
visit
(StringLiteral expression) Visits theStringLiteral
expression.void
visit
(SubExpression expression) Visits theSubExpression
expression.void
visit
(SubstringExpression expression) Visits theSubstringExpression
expression.void
visit
(SubtractionExpression expression) Visits theSubtractionExpression
expression.void
visit
(SumFunction expression) Visits theSumFunction
expression.void
visit
(TreatExpression expression) Visits theTreatExpression
expression.void
visit
(TrimExpression expression) Visits theTrimExpression
expression.void
visit
(TypeExpression expression) Visits theTypeExpression
expression.void
visit
(UnknownExpression expression) Visits theUnknownExpression
expression.void
visit
(UpdateClause expression) Visits theUpdateClause
expression.void
visit
(UpdateItem expression) Visits theUpdateItem
expression.void
visit
(UpdateStatement expression) Visits theUpdateStatement
expression.void
visit
(UpperExpression expression) Visits theUpperExpression
expression.void
visit
(ValueExpression expression) Visits theValueExpression
expression.void
visit
(WhenClause expression) Visits theWhenClause
expression.void
visit
(WhereClause expression) Visits theWhereClause
expression.Methods inherited from class org.eclipse.persistence.jpa.jpql.AbstractValidator
addProblem, addProblem, addProblem, addProblem, buildChildrenCollector, buildLiteralVisitor, buildNestedArrayVisitor, buildOwningClauseVisitor, buildOwningStatementVisitor, buildProblem, buildSubqueryVisitor, getBypassChildCollectionExpressionVisitor, getBypassParentSubExpressionVisitor, getChildren, getChildrenCollectorVisitor, getExpressionRegistry, getExpressionValidator, getJPAVersion, getJPQLQueryBNFValidator, getJPQLQueryBNFValidator, getLiteralVisitor, getNestedArrayVisitor, getOwningClauseVisitor, getOwningStatementVisitor, getProvider, getProviderVersion, getQueryBNF, getSubqueryVisitor, isNestedArray, isSubquery, isValid, isValid, isValid, isValidWithChildCollectionBypass, isWithinSubquery, isWithinTopLevelQuery, length, literal, nestedArraySize, position, problemsSize, setProblems, visit
-
Constructor Details
-
AbstractGrammarValidator
Creates a newAbstractGrammarValidator
.- Parameters:
jpqlGrammar
- TheJPQLGrammar
that defines how the JPQL query was parsed, which cannot benull
- Throws:
NullPointerException
- If the givenJPQLGrammar
isnull
-
-
Method Details
-
absExpressionHelper
protected AbstractGrammarValidator.AbstractSingleEncapsulatedExpressionHelper<AbsExpression> absExpressionHelper() -
allOrAnyExpressionHelper
protected AbstractGrammarValidator.AbstractSingleEncapsulatedExpressionHelper<AllOrAnyExpression> allOrAnyExpressionHelper() -
avgFunctionHelper
protected AbstractGrammarValidator.AbstractSingleEncapsulatedExpressionHelper<AvgFunction> avgFunctionHelper() -
buildAbsExpressionHelper
protected AbstractGrammarValidator.AbstractSingleEncapsulatedExpressionHelper<AbsExpression> buildAbsExpressionHelper() -
buildAllOrAnyExpressionHelper
protected AbstractGrammarValidator.AbstractSingleEncapsulatedExpressionHelper<AllOrAnyExpression> buildAllOrAnyExpressionHelper() -
buildAvgFunctionHelper
protected AbstractGrammarValidator.AbstractSingleEncapsulatedExpressionHelper<AvgFunction> buildAvgFunctionHelper() -
buildCoalesceExpressionHelper
protected AbstractGrammarValidator.AbstractSingleEncapsulatedExpressionHelper<CoalesceExpression> buildCoalesceExpressionHelper() -
buildCollectionExpressionVisitor
Creates a visitor that collects theCollectionExpression
if it's been visited.- Returns:
- A new
AbstractGrammarValidator.CollectionExpressionVisitor
-
buildConcatExpressionHelper
protected AbstractGrammarValidator.AbstractSingleEncapsulatedExpressionHelper<ConcatExpression> buildConcatExpressionHelper() -
buildCountFunctionHelper
protected AbstractGrammarValidator.AbstractSingleEncapsulatedExpressionHelper<CountFunction> buildCountFunctionHelper() -
buildDateTimeVisitor
-
buildEntryExpressionHelper
protected AbstractGrammarValidator.AbstractSingleEncapsulatedExpressionHelper<EntryExpression> buildEntryExpressionHelper() -
buildExistsExpressionHelper
protected AbstractGrammarValidator.AbstractSingleEncapsulatedExpressionHelper<ExistsExpression> buildExistsExpressionHelper() -
buildFunctionExpressionHelper
protected AbstractGrammarValidator.AbstractSingleEncapsulatedExpressionHelper<FunctionExpression> buildFunctionExpressionHelper() -
buildIndexExpressionHelper
protected AbstractGrammarValidator.AbstractSingleEncapsulatedExpressionHelper<IndexExpression> buildIndexExpressionHelper() -
buildKeyExpressionHelper
protected AbstractGrammarValidator.AbstractSingleEncapsulatedExpressionHelper<KeyExpression> buildKeyExpressionHelper() -
buildLengthExpressionHelper
protected AbstractGrammarValidator.AbstractSingleEncapsulatedExpressionHelper<LengthExpression> buildLengthExpressionHelper() -
buildLocateExpressionHelper
protected AbstractGrammarValidator.AbstractTripleEncapsulatedExpressionHelper<LocateExpression> buildLocateExpressionHelper() -
buildLowerExpressionHelper
protected AbstractGrammarValidator.AbstractSingleEncapsulatedExpressionHelper<LowerExpression> buildLowerExpressionHelper() -
buildMaxFunctionHelper
protected AbstractGrammarValidator.AbstractSingleEncapsulatedExpressionHelper<MaxFunction> buildMaxFunctionHelper() -
buildMinFunctionHelper
protected AbstractGrammarValidator.AbstractSingleEncapsulatedExpressionHelper<MinFunction> buildMinFunctionHelper() -
buildModExpressionHelper
protected AbstractGrammarValidator.AbstractDoubleEncapsulatedExpressionHelper<ModExpression> buildModExpressionHelper() -
buildNullExpressionVisitor
Creates a visitor that collects theNullExpression
if it's been visited.- Returns:
- A new
AbstractGrammarValidator.NullExpressionVisitor
-
buildNullIfExpressionHelper
protected AbstractGrammarValidator.AbstractDoubleEncapsulatedExpressionHelper<NullIfExpression> buildNullIfExpressionHelper() -
buildObjectExpressionHelper
protected AbstractGrammarValidator.AbstractSingleEncapsulatedExpressionHelper<ObjectExpression> buildObjectExpressionHelper() -
buildSizeExpressionHelper
protected AbstractGrammarValidator.AbstractSingleEncapsulatedExpressionHelper<SizeExpression> buildSizeExpressionHelper() -
buildSqrtExpressionHelper
protected AbstractGrammarValidator.AbstractSingleEncapsulatedExpressionHelper<SqrtExpression> buildSqrtExpressionHelper() -
buildSubstringExpressionHelper
protected AbstractGrammarValidator.AbstractTripleEncapsulatedExpressionHelper<SubstringExpression> buildSubstringExpressionHelper() -
buildSumFunctionHelper
protected AbstractGrammarValidator.AbstractSingleEncapsulatedExpressionHelper<SumFunction> buildSumFunctionHelper() -
buildTrimExpressionHelper
protected AbstractGrammarValidator.AbstractSingleEncapsulatedExpressionHelper<TrimExpression> buildTrimExpressionHelper() -
buildTypeExpressionHelper
protected AbstractGrammarValidator.AbstractSingleEncapsulatedExpressionHelper<TypeExpression> buildTypeExpressionHelper() -
buildUpperExpressionHelper
protected AbstractGrammarValidator.AbstractSingleEncapsulatedExpressionHelper<UpperExpression> buildUpperExpressionHelper() -
buildValueExpressionHelper
protected AbstractGrammarValidator.AbstractSingleEncapsulatedExpressionHelper<ValueExpression> buildValueExpressionHelper() -
coalesceExpressionHelper
protected AbstractGrammarValidator.AbstractSingleEncapsulatedExpressionHelper<CoalesceExpression> coalesceExpressionHelper() -
collectionSeparatedByCommaValidator
protected AbstractGrammarValidator.CollectionSeparatedByCommaValidator collectionSeparatedByCommaValidator() -
collectionSeparatedBySpaceValidator
protected AbstractGrammarValidator.CollectionSeparatedBySpaceValidator collectionSeparatedBySpaceValidator() -
comparisonExpressionVisitor
-
concatExpressionHelper
protected AbstractGrammarValidator.AbstractSingleEncapsulatedExpressionHelper<ConcatExpression> concatExpressionHelper() -
countFunctionHelper
protected AbstractGrammarValidator.AbstractSingleEncapsulatedExpressionHelper<CountFunction> countFunctionHelper() -
dispose
public void dispose()Description copied from class:AbstractValidator
Disposes this visitor.- Overrides:
dispose
in classAbstractValidator
-
entryExpressionHelper
protected AbstractGrammarValidator.AbstractSingleEncapsulatedExpressionHelper<EntryExpression> entryExpressionHelper() -
existsExpressionHelper
protected AbstractGrammarValidator.AbstractSingleEncapsulatedExpressionHelper<ExistsExpression> existsExpressionHelper() -
functionExpressionHelper
protected AbstractGrammarValidator.AbstractSingleEncapsulatedExpressionHelper<FunctionExpression> functionExpressionHelper() -
getCollectionExpression
Casts the givenExpression
to aCollectionExpression
if it is actually an object of that type.- Parameters:
expression
- TheExpression
to cast- Returns:
- The given
Expression
if it is aCollectionExpression
ornull
if it is any other object
-
getCollectionExpressionVisitor
Returns the visitor that collects theCollectionExpression
if it's been visited.- Returns:
- The
AbstractGrammarValidator.CollectionExpressionVisitor
- See Also:
-
getDateTimeVisitor
-
getGrammar
Description copied from class:AbstractValidator
Returns theJPQLGrammar
that defines how the JPQL query was parsed.- Specified by:
getGrammar
in classAbstractValidator
- Returns:
- The
JPQLGrammar
that was used to parse the JPQL query
-
getHelper
Returns the registered helper that was cached with the given id.- Type Parameters:
T
- This is the type parameter- Parameters:
id
- The key used to retrieve the cached helper, if one was cached- Returns:
- Either the cached helper or
null
if no helper was previously cached for the given id
-
indexExpressionHelper
protected AbstractGrammarValidator.AbstractSingleEncapsulatedExpressionHelper<IndexExpression> indexExpressionHelper() -
initialize
protected void initialize()Description copied from class:AbstractValidator
Initializes this validator.- Overrides:
initialize
in classAbstractValidator
-
isChildOfComparisonExpession
-
isCollectionExpression
Determines whether the givenExpression
is aCollectionExpression
.- Parameters:
expression
- TheExpression
to verify- Returns:
true
if the given givenExpression
is aCollectionExpression
;false
otherwise
-
isDateTimeConstant
Determines whether the givenExpression
represents one of the three date constants or not.- Parameters:
leftExpression
- TheExpression
to visit- Returns:
true
if the givenExpression
represents one of the tree date constants;false
otherwise
-
isInputParameterInValidLocation
-
isJoinFetchIdentifiable
protected abstract boolean isJoinFetchIdentifiable()Determines whether aJOIN FETCH
expression can be identified by with an identification variable or not.- Returns:
true
if the expression can have an identification variable;false
otherwise
-
isJPA1_0
protected boolean isJPA1_0()Determines whether the JPA version defined by the JPQL grammar is 1.0.- Returns:
true
if the JPQL grammar was defined for JPA 1.0;false
if it was defined for a more recent version
-
isJPA2_0
protected boolean isJPA2_0()Determines whether the JPA version defined by the JPQL grammar is 2.0.- Returns:
true
if the JPQL grammar was defined for JPA 2.0;false
if it was defined for a more recent version
-
isJPA2_1
protected boolean isJPA2_1()Determines whether the JPA version defined by the JPQL grammar is 2.1.- Returns:
true
if the JPQL grammar was defined for JPA 2.1;false
if it was defined for a more recent version
-
isMultipleSubquerySelectItemsAllowed
Determines whether the given subquerySELECT
clause can return more than one item or just a single. By default, only one item can be returned.- Parameters:
expression
- The subquerySELECT
clause- Returns:
true
if it can return more than one item;false
if it needs to return only one item
-
isNewerThan
Determines whether the JPA version for which the JPQL grammar was defined represents a version that is newer than the given version.- Parameters:
version
- The constant to verify if it's representing a version that is older than this one- Returns:
true
if this constant represents a newer version and the given constant represents a version that is older;false
if the given constant represents a newer and this constant represents an older version
-
isNewerThanOrEqual
Determines whether the JPA version for which the JPQL grammar was defined represents a version that is newer than the given version or if it's the same version.- Parameters:
version
- The constant to verify if it's representing a version that is older than this one or if it's the same than this one- Returns:
true
if this constant represents a newer version and the given constant represents a version that is older or if it's the same constant;false
if the given constant represents a newer and this constant represents an older version
-
isNumericLiteral
Determines whether the given sequence of characters is a numeric literal or not. There are two types of numeric literal that is supported:- Decimal literal
- Hexadecimal literal
- Parameters:
text
- The sequence of characters to validate- Returns:
true
if the given sequence of characters is a valid numeric literal;false
otherwise
-
isOlderThan
Determines whether the JPA version for which the JPQL grammar was defined represents a version that is older than the given version.- Parameters:
version
- The constant to verify if it's representing a version that is more recent than this one- Returns:
true
if this constant represents an earlier version and the given constant represents a version that is more recent;false
if the given constant represents an earlier version and this constant represents a more recent version
-
isOlderThanOrEqual
Determines whether the JPA version for which the JPQL grammar was defined represents a version that is older than the given version or if it's the same version.- Parameters:
version
- The constant to verify if it's representing a version that is more recent than this one or if it's the same than this one- Returns:
true
if this constant represents an earlier version and the given constant represents a version that is more recent or if it's the same constant;false
if the given constant represents an earlier version and this constant represents a more recent version
-
isOwnedByConditionalClause
Determines whether the givenExpression
is a child of the WHERE or HAVING clause of the top-level query.- Parameters:
expression
- TheExpression
to visit its parent hierarchy up to the clause- Returns:
true
if the first parent being a clause is the WHERE or HAVING clause;false
otherwise
-
isOwnedByFromClause
Determines whether the givenExpression
is a child of the FROM clause of the top-level query.- Parameters:
expression
- TheExpression
to visit its parent hierarchy up to the clause- Returns:
true
if the first parent being a clause is the top-level FROM clause;false
otherwise
-
isOwnedBySubFromClause
Determines whether the givenExpression
is a child of the FROM clause of a subquery.- Parameters:
expression
- TheExpression
to visit its parent hierarchy up to the clause- Returns:
true
if the first parent being a clause is the FROM clause of a subquery;false
otherwise
-
isSubqueryAllowedAnywhere
protected abstract boolean isSubqueryAllowedAnywhere()Determines whether a subquery can be used in any clause of the top-level query.- Returns:
true
if a subquery can be defined in any clause;false
if it can only be used within theWHERE
andHAVING
defined by the JPA 1.0 and 2.0 specification document
-
isValidJavaIdentifier
Determines whether the given variable is a valid Java identifier, which means it follows the Java specification. The first letter has to be a Java identifier start and the others have to be Java identifier parts.- Parameters:
variable
- The variable to validate- Returns:
true
if the given variable follows the Java identifier specification;false
otherwise
-
keyExpressionHelper
protected AbstractGrammarValidator.AbstractSingleEncapsulatedExpressionHelper<KeyExpression> keyExpressionHelper() -
lengthExpressionHelper
protected AbstractGrammarValidator.AbstractSingleEncapsulatedExpressionHelper<LengthExpression> lengthExpressionHelper() -
locateExpressionHelper
protected AbstractGrammarValidator.AbstractTripleEncapsulatedExpressionHelper<LocateExpression> locateExpressionHelper() -
lowerExpressionHelper
protected AbstractGrammarValidator.AbstractSingleEncapsulatedExpressionHelper<LowerExpression> lowerExpressionHelper() -
maxFunctionHelper
protected AbstractGrammarValidator.AbstractSingleEncapsulatedExpressionHelper<MaxFunction> maxFunctionHelper() -
minFunctionHelper
protected AbstractGrammarValidator.AbstractSingleEncapsulatedExpressionHelper<MinFunction> minFunctionHelper() -
modExpressionHelper
protected AbstractGrammarValidator.AbstractDoubleEncapsulatedExpressionHelper<ModExpression> modExpressionHelper() -
nullIfExpressionHelper
protected AbstractGrammarValidator.AbstractDoubleEncapsulatedExpressionHelper<NullIfExpression> nullIfExpressionHelper() -
objectExpressionHelper
protected AbstractGrammarValidator.AbstractSingleEncapsulatedExpressionHelper<ObjectExpression> objectExpressionHelper() -
position
-
registerHelper
Registers the given helper.- Parameters:
id
- The key used to cache the given helperhelper
- The helper to cache for future use
-
sizeExpressionHelper
protected AbstractGrammarValidator.AbstractSingleEncapsulatedExpressionHelper<SizeExpression> sizeExpressionHelper() -
sqrtExpressionHelper
protected AbstractGrammarValidator.AbstractSingleEncapsulatedExpressionHelper<SqrtExpression> sqrtExpressionHelper() -
substringExpressionHelper
protected AbstractGrammarValidator.AbstractTripleEncapsulatedExpressionHelper<SubstringExpression> substringExpressionHelper() -
sumFunctionHelper
protected AbstractGrammarValidator.AbstractSingleEncapsulatedExpressionHelper<SumFunction> sumFunctionHelper() -
trimExpressionHelper
protected AbstractGrammarValidator.AbstractSingleEncapsulatedExpressionHelper<TrimExpression> trimExpressionHelper() -
typeExpressionHelper
protected AbstractGrammarValidator.AbstractSingleEncapsulatedExpressionHelper<TypeExpression> typeExpressionHelper() -
upperExpressionHelper
protected AbstractGrammarValidator.AbstractSingleEncapsulatedExpressionHelper<UpperExpression> upperExpressionHelper() -
validateAbstractConditionalClause
protected void validateAbstractConditionalClause(AbstractConditionalClause expression, String missingConditionalExpressionMessageKey, String invalidConditionalExpressionMessageKey) -
validateAbstractDoubleEncapsulatedExpression
protected <T extends AbstractDoubleEncapsulatedExpression> void validateAbstractDoubleEncapsulatedExpression(T expression, AbstractGrammarValidator.AbstractDoubleEncapsulatedExpressionHelper<T> helper) Validates the content of anAbstractDoubleEncapsulatedExpression
, which encapsulates two expressions separated by a comma.- Type Parameters:
T
- This is the type parameter- Parameters:
expression
- TheAbstractDoubleEncapsulatedExpression
to validatehelper
- This helper is used to retrieve specific information related to theexpression
being validated
-
validateAbstractFromClause
-
validateAbstractSelectClause
protected void validateAbstractSelectClause(AbstractSelectClause expression, boolean multipleSelectItemsAllowed) Validates the select expression of the givenSELECT
clause. The select expression will only be visited if its JPQL query BNF is part of the select item BNF.- Parameters:
expression
- TheAbstractSelectClause
to validatemultipleSelectItemsAllowed
- Determines whether theSELECT
can have one or more select expression or not
-
validateAbstractSelectStatement
-
validateAbstractSingleEncapsulatedExpression
protected <T extends AbstractSingleEncapsulatedExpression> void validateAbstractSingleEncapsulatedExpression(T expression, AbstractGrammarValidator.AbstractSingleEncapsulatedExpressionHelper<T> helper) -
validateAbstractTripleEncapsulatedExpression
protected <T extends AbstractTripleEncapsulatedExpression> void validateAbstractTripleEncapsulatedExpression(T expression, AbstractGrammarValidator.AbstractTripleEncapsulatedExpressionHelper<T> helper) -
validateAggregateFunctionLocation
protected <T extends AggregateFunction> void validateAggregateFunctionLocation(T expression, AbstractGrammarValidator.AbstractSingleEncapsulatedExpressionHelper<T> helper) -
validateArithmeticExpression
-
validateCollectionSeparatedByComma
protected void validateCollectionSeparatedByComma(Expression expression, String endsWithCommaProblemKey, String missingCommaProblemKey) Validates the givenExpression
by making sure each child is separated by a comma.- Parameters:
expression
- TheExpression
to validate its children, which should be a series ofExpression
separated by a commaendsWithCommaProblemKey
- The problem key describing theCollectionExpression
is ending with a commamissingCommaProblemKey
- The problem key describing theCollectionExpression
has two items not separated by a comma
-
validateCollectionSeparatedBySpace
protected void validateCollectionSeparatedBySpace(Expression expression, String endsWithCommaProblemKey, String hasCommaProblemKey) Validates the givenExpression
by making sure each child is separated by a whitespace.- Parameters:
expression
- TheExpression
to validate its children, which should be a series ofExpression
separated by a whitespaceendsWithCommaProblemKey
- The problem key describing theCollectionExpression
is ending with a commahasCommaProblemKey
- The problem key describing theCollectionExpression
has two items separated by a comma
-
validateCompoundExpression
-
validateIdentificationVariableDeclaration
protected void validateIdentificationVariableDeclaration(IdentificationVariableDeclaration expression) -
validateIdentifier
protected void 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.
- Parameters:
expression
- The expression to validatevariableName
- The text to actually validatevariableLength
- The actual length of the text, which can be longer than the text that is validatedreservedWordProblemKey
- The problem key used when the variable name is a reserved JPQL identifierinvalidJavaIdentifierProblemKey
- The problem key used when the variable name is not a valid Java identifier
-
validateInputParameters
-
validateJoins
-
validateLikeExpressionEscapeCharacter
-
validateLogicalExpression
protected void validateLogicalExpression(LogicalExpression expression, String leftExpressionQueryBNF, String rightExpressionQueryBNF) -
validateOwningClause
-
validatePathExpression
-
validateSimpleSelectStatement
-
valueExpressionHelper
protected AbstractGrammarValidator.AbstractSingleEncapsulatedExpressionHelper<ValueExpression> valueExpressionHelper() -
visit
Description copied from interface:ExpressionVisitor
Visits theAbsExpression
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theAbstractSchemaName
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theAdditionExpression
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theAllOrAnyExpression
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theAndExpression
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theArithmeticFactor
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theAvgFunction
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theBadExpression
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theBetweenExpression
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theCaseExpression
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theCoalesceExpression
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theCollectionExpression
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theCollectionMemberDeclaration
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theCollectionMemberExpression
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theCollectionValuedPathExpression
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theComparisonExpression
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theConcatExpression
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theConstructorExpression
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theCountFunction
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theDateTime
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theDeleteClause
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theDeleteStatement
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theDivisionExpression
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theEmptyCollectionComparisonExpression
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theEntityTypeLiteral
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theEntryExpression
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theExistsExpression
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theFromClause
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theFunctionExpression
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theGroupByClause
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theHavingClause
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theIdentificationVariable
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theIdentificationVariableDeclaration
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theIndexExpression
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theInExpression
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theInputParameter
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theJoin
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theJPQLExpression
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theKeyExpression
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theKeywordExpression
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theLengthExpression
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theLikeExpression
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theLocateExpression
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theLowerExpression
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theMaxFunction
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theMinFunction
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theModExpression
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theMultiplicationExpression
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theNotExpression
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theNullComparisonExpression
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theNullExpression
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theNullIfExpression
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theNumericLiteral
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theObjectExpression
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theOnClause
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theOrderByClause
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theOrderByItem
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theOrExpression
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theRangeVariableDeclaration
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theResultVariable
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theSelectClause
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theSelectStatement
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theSimpleFromClause
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theSimpleSelectClause
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theSimpleSelectStatement
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theSizeExpression
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theSqrtExpression
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theStateFieldPathExpression
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theStringLiteral
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theSubExpression
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theSubstringExpression
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theSubtractionExpression
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theSumFunction
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theTreatExpression
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theTrimExpression
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theTypeExpression
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theUnknownExpression
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheUnknownExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theUpdateClause
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheUpdateClause
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theUpdateItem
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheUpdateItem
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theUpdateStatement
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheUpdateStatement
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theUpperExpression
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheUpperExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theValueExpression
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheValueExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theWhenClause
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheWhenClause
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theWhereClause
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheWhereClause
to visit
-