Package org.eclipse.persistence.jpa.jpql
Class AbstractGrammarValidator.AbstractTripleEncapsulatedExpressionHelper<T extends AbstractTripleEncapsulatedExpression>
java.lang.Object
org.eclipse.persistence.jpa.jpql.AbstractGrammarValidator.AbstractTripleEncapsulatedExpressionHelper<T>
- All Implemented Interfaces:
AbstractGrammarValidator.AbstractEncapsulatedExpressionHelper<T>
- Enclosing class:
AbstractGrammarValidator
protected abstract static class AbstractGrammarValidator.AbstractTripleEncapsulatedExpressionHelper<T extends AbstractTripleEncapsulatedExpression>
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 abstract String
protected int
firstExpressionLength
(T expression) protected abstract String
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) protected boolean
hasThirdExpression
(T expression) protected boolean
isFirstExpressionValid
(T expression) protected boolean
isRightParenthesisMissing
(T expression) Determines whether the right parenthesis is missing from the given expression.protected boolean
isSecondExpressionValid
(T expression) protected boolean
isThirdExpressionValid
(T expression) protected abstract String
protected abstract String
protected int
secondExpressionLength
(T expression) protected abstract String
protected abstract String
protected int
thirdExpressionLength
(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
identifier, leftParenthesisMissingKey, rightParenthesisMissingKey
-
Field Details
-
validator
-
-
Constructor Details
-
AbstractTripleEncapsulatedExpressionHelper
-
-
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 AbstractTripleEncapsulatedExpression>
- Parameters:
expression
- TheAbstractEncapsulatedExpression
being validated- Returns:
- The list of arguments used to complete the localized problem
-
firstCommaMissingKey
-
firstExpressionInvalidKey
-
firstExpressionLength
-
firstExpressionMissingKey
-
hasFirstExpression
-
hasLeftParenthesis
Description copied from interface:AbstractGrammarValidator.AbstractEncapsulatedExpressionHelper
Determines whether the givenAbstractEncapsulatedExpression
has the left parenthesis.- Specified by:
hasLeftParenthesis
in interfaceAbstractGrammarValidator.AbstractEncapsulatedExpressionHelper<T extends AbstractTripleEncapsulatedExpression>
- 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 AbstractTripleEncapsulatedExpression>
- Parameters:
expression
- TheAbstractEncapsulatedExpression
being validated- Returns:
true
if the right parenthesis was parsed
-
hasSecondExpression
-
hasThirdExpression
-
isFirstExpressionValid
-
isRightParenthesisMissing
Determines whether the right parenthesis is missing from the given expression.- Parameters:
expression
- TheExpression
to verify for the existence of the right parenthesis by determining if the encapsulated information has been parsed or not- Returns:
true
if the encapsulated information was parsed and the right parenthesis is missing;false
in any other case
-
isSecondExpressionValid
-
isThirdExpressionValid
-
secondCommaMissingKey
-
secondExpressionInvalidKey
-
secondExpressionLength
-
secondExpressionMissingKey
-
thirdExpressionInvalidKey
-
thirdExpressionLength
-
thirdExpressionMissingKey
-