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
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected -
Method Summary
Modifier and TypeMethodDescriptionString[]Returns the arguments that can help to format the localized problem.protected abstract Stringprotected intfirstExpressionLength(T expression) protected abstract Stringprotected booleanprotected 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) identifier(T expression) Returns the JPQL identifier of the givenAbstractEncapsulatedExpression.protected final booleanisFirstExpressionValid(T expression) protected final booleanisSecondExpressionValid(T expression) protected abstract Stringprotected abstract Stringprotected intsecondExpressionLength(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
leftParenthesisMissingKey, rightParenthesisMissingKey
-
Field Details
-
validator
-
-
Constructor Details
-
AbstractDoubleEncapsulatedExpressionHelper
-
-
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 AbstractDoubleEncapsulatedExpression>- Parameters:
expression- TheAbstractEncapsulatedExpressionbeing validated- Returns:
- The list of arguments used to complete the localized problem
-
firstExpressionInvalidKey
-
firstExpressionLength
-
firstExpressionMissingKey
-
hasComma
-
hasFirstExpression
-
hasLeftParenthesis
Description copied from interface:AbstractGrammarValidator.AbstractEncapsulatedExpressionHelperDetermines whether the givenAbstractEncapsulatedExpressionhas the left parenthesis.- Specified by:
hasLeftParenthesisin interfaceAbstractGrammarValidator.AbstractEncapsulatedExpressionHelper<T extends AbstractDoubleEncapsulatedExpression>- 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 AbstractDoubleEncapsulatedExpression>- Parameters:
expression- TheAbstractEncapsulatedExpressionbeing validated- Returns:
trueif the right parenthesis was parsed
-
hasSecondExpression
-
identifier
Description copied from interface:AbstractGrammarValidator.AbstractEncapsulatedExpressionHelperReturns the JPQL identifier of the givenAbstractEncapsulatedExpression.- Specified by:
identifierin interfaceAbstractGrammarValidator.AbstractEncapsulatedExpressionHelper<T extends AbstractDoubleEncapsulatedExpression>- Parameters:
expression- TheAbstractEncapsulatedExpressionbeing validated- Returns:
- The JPQL identifier of the given
AbstractEncapsulatedExpression
-
isFirstExpressionValid
-
isSecondExpressionValid
-
missingCommaKey
-
secondExpressionInvalidKey
-
secondExpressionLength
-
secondExpressionMissingKey
-