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 java.lang.Object implements AbstractGrammarValidator.AbstractEncapsulatedExpressionHelper<T>
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractDoubleEncapsulatedExpressionHelper(AbstractGrammarValidator validator)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.lang.String[]
arguments(T expression)
Returns the arguments that can help to format the localized problem.protected abstract java.lang.String
firstExpressionInvalidKey()
protected int
firstExpressionLength(T expression)
protected abstract java.lang.String
firstExpressionMissingKey()
protected boolean
hasComma(T expression)
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)
java.lang.String
identifier(T expression)
Returns the JPQL identifier of the givenAbstractEncapsulatedExpression
.protected boolean
isFirstExpressionValid(T expression)
protected boolean
isSecondExpressionValid(T expression)
protected abstract java.lang.String
missingCommaKey()
protected abstract java.lang.String
secondExpressionInvalidKey()
protected int
secondExpressionLength(T expression)
protected abstract java.lang.String
secondExpressionMissingKey()
-
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
-
-
-
-
Constructor Detail
-
AbstractDoubleEncapsulatedExpressionHelper
protected AbstractDoubleEncapsulatedExpressionHelper(AbstractGrammarValidator validator)
-
-
Method Detail
-
arguments
public java.lang.String[] arguments(T expression)
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
protected abstract java.lang.String firstExpressionInvalidKey()
-
firstExpressionLength
protected int firstExpressionLength(T expression)
-
firstExpressionMissingKey
protected abstract java.lang.String firstExpressionMissingKey()
-
hasComma
protected boolean hasComma(T expression)
-
hasFirstExpression
protected boolean hasFirstExpression(T expression)
-
hasLeftParenthesis
public boolean hasLeftParenthesis(T expression)
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
public boolean hasRightParenthesis(T expression)
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
protected boolean hasSecondExpression(T expression)
-
identifier
public java.lang.String identifier(T expression)
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
protected final boolean isFirstExpressionValid(T expression)
-
isSecondExpressionValid
protected final boolean isSecondExpressionValid(T expression)
-
missingCommaKey
protected abstract java.lang.String missingCommaKey()
-
secondExpressionInvalidKey
protected abstract java.lang.String secondExpressionInvalidKey()
-
secondExpressionLength
protected int secondExpressionLength(T expression)
-
secondExpressionMissingKey
protected abstract java.lang.String secondExpressionMissingKey()
-
-