Package org.eclipse.persistence.jpa.jpql
Class AbstractGrammarValidator.AbstractDoubleEncapsulatedExpressionHelper<T extends AbstractDoubleEncapsulatedExpression>
java.lang.Object
org.eclipse.persistence.jpa.jpql.AbstractGrammarValidator.AbstractDoubleEncapsulatedExpressionHelper<T>
- All Implemented Interfaces:
AbstractGrammarValidator.AbstractEncapsulatedExpressionHelper<T>
- Enclosing class:
AbstractGrammarValidator
protected abstract static class AbstractGrammarValidator.AbstractDoubleEncapsulatedExpressionHelper<T extends AbstractDoubleEncapsulatedExpression>
extends Object
implements AbstractGrammarValidator.AbstractEncapsulatedExpressionHelper<T>
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
-
Method Summary
Modifier and TypeMethodDescriptionString[]
Returns the arguments that can help to format the localized problem.protected abstract String
protected int
firstExpressionLength
(T expression) protected abstract String
protected boolean
protected boolean
hasFirstExpression
(T expression) boolean
hasLeftParenthesis
(T expression) Determines whether the givenAbstractEncapsulatedExpression
has the left parenthesis.boolean
hasRightParenthesis
(T expression) Determines whether the givenAbstractEncapsulatedExpression
has the right parenthesis.protected boolean
hasSecondExpression
(T expression) identifier
(T expression) Returns the JPQL identifier of the givenAbstractEncapsulatedExpression
.protected final boolean
isFirstExpressionValid
(T expression) protected final boolean
isSecondExpressionValid
(T expression) protected abstract String
protected abstract String
protected int
secondExpressionLength
(T expression) protected abstract String
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.persistence.jpa.jpql.AbstractGrammarValidator.AbstractEncapsulatedExpressionHelper
leftParenthesisMissingKey, rightParenthesisMissingKey
-
Field Details
-
validator
-
-
Constructor Details
-
AbstractDoubleEncapsulatedExpressionHelper
-
-
Method Details
-
arguments
Description copied from interface:AbstractGrammarValidator.AbstractEncapsulatedExpressionHelper
Returns the arguments that can help to format the localized problem.- Specified by:
arguments
in interfaceAbstractGrammarValidator.AbstractEncapsulatedExpressionHelper<T extends AbstractDoubleEncapsulatedExpression>
- Parameters:
expression
- TheAbstractEncapsulatedExpression
being validated- Returns:
- The list of arguments used to complete the localized problem
-
firstExpressionInvalidKey
-
firstExpressionLength
-
firstExpressionMissingKey
-
hasComma
-
hasFirstExpression
-
hasLeftParenthesis
Description copied from interface:AbstractGrammarValidator.AbstractEncapsulatedExpressionHelper
Determines whether the givenAbstractEncapsulatedExpression
has the left parenthesis.- Specified by:
hasLeftParenthesis
in interfaceAbstractGrammarValidator.AbstractEncapsulatedExpressionHelper<T extends AbstractDoubleEncapsulatedExpression>
- Parameters:
expression
- TheAbstractEncapsulatedExpression
being validated- Returns:
true
if the left parenthesis was parsed
-
hasRightParenthesis
Description copied from interface:AbstractGrammarValidator.AbstractEncapsulatedExpressionHelper
Determines whether the givenAbstractEncapsulatedExpression
has the right parenthesis.- Specified by:
hasRightParenthesis
in interfaceAbstractGrammarValidator.AbstractEncapsulatedExpressionHelper<T extends AbstractDoubleEncapsulatedExpression>
- Parameters:
expression
- TheAbstractEncapsulatedExpression
being validated- Returns:
true
if the right parenthesis was parsed
-
hasSecondExpression
-
identifier
Description copied from interface:AbstractGrammarValidator.AbstractEncapsulatedExpressionHelper
Returns the JPQL identifier of the givenAbstractEncapsulatedExpression
.- Specified by:
identifier
in interfaceAbstractGrammarValidator.AbstractEncapsulatedExpressionHelper<T extends AbstractDoubleEncapsulatedExpression>
- Parameters:
expression
- TheAbstractEncapsulatedExpression
being validated- Returns:
- The JPQL identifier of the given
AbstractEncapsulatedExpression
-
isFirstExpressionValid
-
isSecondExpressionValid
-
missingCommaKey
-
secondExpressionInvalidKey
-
secondExpressionLength
-
secondExpressionMissingKey
-