Package org.eclipse.persistence.jpa.jpql
Interface AbstractGrammarValidator.AbstractEncapsulatedExpressionHelper<T extends AbstractEncapsulatedExpression>
- All Known Implementing Classes:
AbstractGrammarValidator.AbstractDoubleEncapsulatedExpressionHelper,AbstractGrammarValidator.AbstractSingleEncapsulatedExpressionHelper,AbstractGrammarValidator.AbstractTripleEncapsulatedExpressionHelper
- Enclosing class:
- AbstractGrammarValidator
protected static interface AbstractGrammarValidator.AbstractEncapsulatedExpressionHelper<T extends AbstractEncapsulatedExpression>
The root helper that validates any
AbstractEncapsulatedExpression.-
Method Summary
Modifier and TypeMethodDescriptionString[]Returns the arguments that can help to format the localized problem.booleanhasLeftParenthesis(T expression) Determines whether the givenAbstractEncapsulatedExpressionhas the left parenthesis.booleanhasRightParenthesis(T expression) Determines whether the givenAbstractEncapsulatedExpressionhas the right parenthesis.identifier(T expression) Returns the JPQL identifier of the givenAbstractEncapsulatedExpression.leftParenthesisMissingKey(T expression) Returns the message key for the problem describing that the left parenthesis is missing.rightParenthesisMissingKey(T expression) Returns the message key for the problem describing that the right parenthesis is missing.
-
Method Details
-
arguments
Returns the arguments that can help to format the localized problem.- Parameters:
expression- TheAbstractEncapsulatedExpressionbeing validated- Returns:
- The list of arguments used to complete the localized problem
-
hasLeftParenthesis
Determines whether the givenAbstractEncapsulatedExpressionhas the left parenthesis.- Parameters:
expression- TheAbstractEncapsulatedExpressionbeing validated- Returns:
trueif the left parenthesis was parsed
-
hasRightParenthesis
Determines whether the givenAbstractEncapsulatedExpressionhas the right parenthesis.- Parameters:
expression- TheAbstractEncapsulatedExpressionbeing validated- Returns:
trueif the right parenthesis was parsed
-
identifier
Returns the JPQL identifier of the givenAbstractEncapsulatedExpression.- Parameters:
expression- TheAbstractEncapsulatedExpressionbeing validated- Returns:
- The JPQL identifier of the given
AbstractEncapsulatedExpression
-
leftParenthesisMissingKey
Returns the message key for the problem describing that the left parenthesis is missing.- Parameters:
expression- TheAbstractEncapsulatedExpressionbeing validated- Returns:
- The key used to retrieve the localized message
-
rightParenthesisMissingKey
Returns the message key for the problem describing that the right parenthesis is missing.- Parameters:
expression- TheAbstractEncapsulatedExpressionbeing validated- Returns:
- The key used to retrieve the localized message
-