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
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected -
Method Summary
Modifier and TypeMethodDescriptionString[]Returns the arguments that can help to format the localized problem.protected abstract Stringprotected abstract Stringprotected intfirstExpressionLength(T expression) protected abstract Stringprotected booleanhasFirstExpression(T expression) booleanhasLeftParenthesis(T expression) Determines whether the givenAbstractEncapsulatedExpressionhas the left parenthesis.booleanhasRightParenthesis(T expression) Determines whether the givenAbstractEncapsulatedExpressionhas the right parenthesis.protected booleanhasSecondExpression(T expression) protected booleanhasThirdExpression(T expression) protected booleanisFirstExpressionValid(T expression) protected booleanisRightParenthesisMissing(T expression) Determines whether the right parenthesis is missing from the given expression.protected booleanisSecondExpressionValid(T expression) protected booleanisThirdExpressionValid(T expression) protected abstract Stringprotected abstract Stringprotected intsecondExpressionLength(T expression) protected abstract Stringprotected abstract Stringprotected intthirdExpressionLength(T expression) protected abstract StringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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.AbstractEncapsulatedExpressionHelperReturns the arguments that can help to format the localized problem.- Specified by:
argumentsin interfaceAbstractGrammarValidator.AbstractEncapsulatedExpressionHelper<T extends AbstractTripleEncapsulatedExpression>- Parameters:
expression- TheAbstractEncapsulatedExpressionbeing validated- Returns:
- The list of arguments used to complete the localized problem
-
firstCommaMissingKey
-
firstExpressionInvalidKey
-
firstExpressionLength
-
firstExpressionMissingKey
-
hasFirstExpression
-
hasLeftParenthesis
Description copied from interface:AbstractGrammarValidator.AbstractEncapsulatedExpressionHelperDetermines whether the givenAbstractEncapsulatedExpressionhas the left parenthesis.- Specified by:
hasLeftParenthesisin interfaceAbstractGrammarValidator.AbstractEncapsulatedExpressionHelper<T extends AbstractTripleEncapsulatedExpression>- Parameters:
expression- TheAbstractEncapsulatedExpressionbeing validated- Returns:
trueif the left parenthesis was parsed
-
hasRightParenthesis
Description copied from interface:AbstractGrammarValidator.AbstractEncapsulatedExpressionHelperDetermines whether the givenAbstractEncapsulatedExpressionhas the right parenthesis.- Specified by:
hasRightParenthesisin interfaceAbstractGrammarValidator.AbstractEncapsulatedExpressionHelper<T extends AbstractTripleEncapsulatedExpression>- Parameters:
expression- TheAbstractEncapsulatedExpressionbeing validated- Returns:
trueif the right parenthesis was parsed
-
hasSecondExpression
-
hasThirdExpression
-
isFirstExpressionValid
-
isRightParenthesisMissing
Determines whether the right parenthesis is missing from the given expression.- Parameters:
expression- TheExpressionto verify for the existence of the right parenthesis by determining if the encapsulated information has been parsed or not- Returns:
trueif the encapsulated information was parsed and the right parenthesis is missing;falsein any other case
-
isSecondExpressionValid
-
isThirdExpressionValid
-
secondCommaMissingKey
-
secondExpressionInvalidKey
-
secondExpressionLength
-
secondExpressionMissingKey
-
thirdExpressionInvalidKey
-
thirdExpressionLength
-
thirdExpressionMissingKey
-